[2025-01-22 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:00:06 [end_date_ymd] => 2025-01-22 00:00:06 [RateCDR] => 1 ) [2025-01-22 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:00:06' and `end` < '2025-01-22 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:00:19] Production.INFO: count ==917 [2025-01-22 00:00:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:00:06 - End Time 2025-01-22 00:00:06 [2025-01-22 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301176', 'tblTempUsageDetail_20' ) start [2025-01-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301176', 'tblTempUsageDetail_20' ) end [2025-01-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301176', 'tblTempVendorCDR_20' ) start [2025-01-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301176', 'tblTempVendorCDR_20' ) end [2025-01-22 00:00:20] Production.INFO: ProcessCDR(1,14301176,1,1,2) [2025-01-22 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301176', 'tblTempUsageDetail_20' ) start [2025-01-22 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301176', 'tblTempUsageDetail_20' ) end [2025-01-22 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:00:25] Production.INFO: ==31874== Releasing lock... [2025-01-22 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:00:25] Production.INFO: 36 MB #Memory Used# [2025-01-22 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:01:05 [end_date_ymd] => 2025-01-22 00:01:05 [RateCDR] => 1 ) [2025-01-22 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:01:05' and `end` < '2025-01-22 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:01:17] Production.INFO: count ==917 [2025-01-22 00:01:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:01:05 - End Time 2025-01-22 00:01:05 [2025-01-22 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301181', 'tblTempUsageDetail_20' ) start [2025-01-22 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301181', 'tblTempUsageDetail_20' ) end [2025-01-22 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301181', 'tblTempVendorCDR_20' ) start [2025-01-22 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301181', 'tblTempVendorCDR_20' ) end [2025-01-22 00:01:17] Production.INFO: ProcessCDR(1,14301181,1,1,2) [2025-01-22 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301181', 'tblTempUsageDetail_20' ) start [2025-01-22 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301181', 'tblTempUsageDetail_20' ) end [2025-01-22 00:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:01:20] Production.INFO: ==31966== Releasing lock... [2025-01-22 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:01:20] Production.INFO: 34 MB #Memory Used# [2025-01-22 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:02:05 [end_date_ymd] => 2025-01-22 00:02:05 [RateCDR] => 1 ) [2025-01-22 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:02:05' and `end` < '2025-01-22 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:02:30] Production.INFO: count ==265 [2025-01-22 00:02:30] Production.ERROR: pbx CDR StartTime 2025-01-21 21:02:05 - End Time 2025-01-22 00:02:05 [2025-01-22 00:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301186', 'tblTempUsageDetail_20' ) start [2025-01-22 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301186', 'tblTempUsageDetail_20' ) end [2025-01-22 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301186', 'tblTempVendorCDR_20' ) start [2025-01-22 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301186', 'tblTempVendorCDR_20' ) end [2025-01-22 00:02:30] Production.INFO: ProcessCDR(1,14301186,1,1,2) [2025-01-22 00:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301186', 'tblTempUsageDetail_20' ) start [2025-01-22 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301186', 'tblTempUsageDetail_20' ) end [2025-01-22 00:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:02:33] Production.INFO: ==32044== Releasing lock... [2025-01-22 00:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:02:33] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:03:04 [end_date_ymd] => 2025-01-22 00:03:04 [RateCDR] => 1 ) [2025-01-22 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:03:04' and `end` < '2025-01-22 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:03:32] Production.INFO: count ==263 [2025-01-22 00:03:32] Production.ERROR: pbx CDR StartTime 2025-01-21 21:03:04 - End Time 2025-01-22 00:03:04 [2025-01-22 00:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301191', 'tblTempUsageDetail_20' ) start [2025-01-22 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301191', 'tblTempUsageDetail_20' ) end [2025-01-22 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301191', 'tblTempVendorCDR_20' ) start [2025-01-22 00:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301191', 'tblTempVendorCDR_20' ) end [2025-01-22 00:03:32] Production.INFO: ProcessCDR(1,14301191,1,1,2) [2025-01-22 00:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301191', 'tblTempUsageDetail_20' ) start [2025-01-22 00:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301191', 'tblTempUsageDetail_20' ) end [2025-01-22 00:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:03:37] Production.INFO: ==32123== Releasing lock... [2025-01-22 00:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:03:37] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:04:05 [end_date_ymd] => 2025-01-22 00:04:05 [RateCDR] => 1 ) [2025-01-22 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:04:05' and `end` < '2025-01-22 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:04:29] Production.INFO: count ==262 [2025-01-22 00:04:30] Production.ERROR: pbx CDR StartTime 2025-01-21 21:04:05 - End Time 2025-01-22 00:04:05 [2025-01-22 00:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301196', 'tblTempUsageDetail_20' ) start [2025-01-22 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301196', 'tblTempUsageDetail_20' ) end [2025-01-22 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301196', 'tblTempVendorCDR_20' ) start [2025-01-22 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301196', 'tblTempVendorCDR_20' ) end [2025-01-22 00:04:30] Production.INFO: ProcessCDR(1,14301196,1,1,2) [2025-01-22 00:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301196', 'tblTempUsageDetail_20' ) start [2025-01-22 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301196', 'tblTempUsageDetail_20' ) end [2025-01-22 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:04:33] Production.INFO: ==32203== Releasing lock... [2025-01-22 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:04:33] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:05:04 [end_date_ymd] => 2025-01-22 00:05:04 [RateCDR] => 1 ) [2025-01-22 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:05:04' and `end` < '2025-01-22 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:05:30] Production.INFO: count ==259 [2025-01-22 00:05:30] Production.ERROR: pbx CDR StartTime 2025-01-21 21:05:04 - End Time 2025-01-22 00:05:04 [2025-01-22 00:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301201', 'tblTempUsageDetail_20' ) start [2025-01-22 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301201', 'tblTempUsageDetail_20' ) end [2025-01-22 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301201', 'tblTempVendorCDR_20' ) start [2025-01-22 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301201', 'tblTempVendorCDR_20' ) end [2025-01-22 00:05:30] Production.INFO: ProcessCDR(1,14301201,1,1,2) [2025-01-22 00:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301201', 'tblTempUsageDetail_20' ) start [2025-01-22 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301201', 'tblTempUsageDetail_20' ) end [2025-01-22 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:05:33] Production.INFO: ==32279== Releasing lock... [2025-01-22 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:05:33] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:06:05 [end_date_ymd] => 2025-01-22 00:06:05 [RateCDR] => 1 ) [2025-01-22 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:06:05' and `end` < '2025-01-22 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:06:27] Production.INFO: count ==255 [2025-01-22 00:06:27] Production.ERROR: pbx CDR StartTime 2025-01-21 21:06:05 - End Time 2025-01-22 00:06:05 [2025-01-22 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301206', 'tblTempUsageDetail_20' ) start [2025-01-22 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301206', 'tblTempUsageDetail_20' ) end [2025-01-22 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301206', 'tblTempVendorCDR_20' ) start [2025-01-22 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301206', 'tblTempVendorCDR_20' ) end [2025-01-22 00:06:27] Production.INFO: ProcessCDR(1,14301206,1,1,2) [2025-01-22 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301206', 'tblTempUsageDetail_20' ) start [2025-01-22 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301206', 'tblTempUsageDetail_20' ) end [2025-01-22 00:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:06:30] Production.INFO: ==32355== Releasing lock... [2025-01-22 00:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:06:30] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:07:05 [end_date_ymd] => 2025-01-22 00:07:05 [RateCDR] => 1 ) [2025-01-22 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:07:05' and `end` < '2025-01-22 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:07:23] Production.INFO: count ==253 [2025-01-22 00:07:23] Production.ERROR: pbx CDR StartTime 2025-01-21 21:07:05 - End Time 2025-01-22 00:07:05 [2025-01-22 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301211', 'tblTempUsageDetail_20' ) start [2025-01-22 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301211', 'tblTempUsageDetail_20' ) end [2025-01-22 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301211', 'tblTempVendorCDR_20' ) start [2025-01-22 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301211', 'tblTempVendorCDR_20' ) end [2025-01-22 00:07:24] Production.INFO: ProcessCDR(1,14301211,1,1,2) [2025-01-22 00:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301211', 'tblTempUsageDetail_20' ) start [2025-01-22 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301211', 'tblTempUsageDetail_20' ) end [2025-01-22 00:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:07:27] Production.INFO: ==32438== Releasing lock... [2025-01-22 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:07:27] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:08:06 [end_date_ymd] => 2025-01-22 00:08:06 [RateCDR] => 1 ) [2025-01-22 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:08:06' and `end` < '2025-01-22 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:08:22] Production.INFO: count ==249 [2025-01-22 00:08:23] Production.ERROR: pbx CDR StartTime 2025-01-21 21:08:06 - End Time 2025-01-22 00:08:06 [2025-01-22 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301216', 'tblTempUsageDetail_20' ) start [2025-01-22 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301216', 'tblTempUsageDetail_20' ) end [2025-01-22 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301216', 'tblTempVendorCDR_20' ) start [2025-01-22 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301216', 'tblTempVendorCDR_20' ) end [2025-01-22 00:08:23] Production.INFO: ProcessCDR(1,14301216,1,1,2) [2025-01-22 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301216', 'tblTempUsageDetail_20' ) start [2025-01-22 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301216', 'tblTempUsageDetail_20' ) end [2025-01-22 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:08:26] Production.INFO: ==32514== Releasing lock... [2025-01-22 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:08:26] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:09:04 [end_date_ymd] => 2025-01-22 00:09:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 21:09:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 00:09:18] Production.INFO: count ==243 [2025-01-22 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:09:04 - End Time 2025-01-22 00:09:04 [2025-01-22 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301221', 'tblTempUsageDetail_20' ) start [2025-01-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301221', 'tblTempUsageDetail_20' ) end [2025-01-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301221', 'tblTempVendorCDR_20' ) start [2025-01-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301221', 'tblTempVendorCDR_20' ) end [2025-01-22 00:09:18] Production.INFO: ProcessCDR(1,14301221,1,1,2) [2025-01-22 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301221', 'tblTempUsageDetail_20' ) start [2025-01-22 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301221', 'tblTempUsageDetail_20' ) end [2025-01-22 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:09:21] Production.INFO: ==32592== Releasing lock... [2025-01-22 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:10:06 [end_date_ymd] => 2025-01-22 00:10:06 [RateCDR] => 1 ) [2025-01-22 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:10:06' and `end` < '2025-01-22 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:10:28] Production.INFO: count ==250 [2025-01-22 00:10:28] Production.ERROR: pbx CDR StartTime 2025-01-21 21:10:06 - End Time 2025-01-22 00:10:06 [2025-01-22 00:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301227', 'tblTempUsageDetail_20' ) start [2025-01-22 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301227', 'tblTempUsageDetail_20' ) end [2025-01-22 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301227', 'tblTempVendorCDR_20' ) start [2025-01-22 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301227', 'tblTempVendorCDR_20' ) end [2025-01-22 00:10:28] Production.INFO: ProcessCDR(1,14301227,1,1,2) [2025-01-22 00:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301227', 'tblTempUsageDetail_20' ) start [2025-01-22 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301227', 'tblTempUsageDetail_20' ) end [2025-01-22 00:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:10:31] Production.INFO: ==32666== Releasing lock... [2025-01-22 00:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:10:31] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:11:06 [end_date_ymd] => 2025-01-22 00:11:06 [RateCDR] => 1 ) [2025-01-22 00:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:11:06' and `end` < '2025-01-22 00:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:11:36] Production.INFO: count ==262 [2025-01-22 00:11:36] Production.ERROR: pbx CDR StartTime 2025-01-21 21:11:06 - End Time 2025-01-22 00:11:06 [2025-01-22 00:11:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301232', 'tblTempUsageDetail_20' ) start [2025-01-22 00:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301232', 'tblTempUsageDetail_20' ) end [2025-01-22 00:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301232', 'tblTempVendorCDR_20' ) start [2025-01-22 00:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301232', 'tblTempVendorCDR_20' ) end [2025-01-22 00:11:36] Production.INFO: ProcessCDR(1,14301232,1,1,2) [2025-01-22 00:11:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301232', 'tblTempUsageDetail_20' ) start [2025-01-22 00:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301232', 'tblTempUsageDetail_20' ) end [2025-01-22 00:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:11:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:11:39] Production.INFO: ==326== Releasing lock... [2025-01-22 00:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:11:39] Production.INFO: 31 MB #Memory Used# [2025-01-22 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:12:06 [end_date_ymd] => 2025-01-22 00:12:06 [RateCDR] => 1 ) [2025-01-22 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:12:06' and `end` < '2025-01-22 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:12:24] Production.INFO: count ==262 [2025-01-22 00:12:24] Production.ERROR: pbx CDR StartTime 2025-01-21 21:12:06 - End Time 2025-01-22 00:12:06 [2025-01-22 00:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301237', 'tblTempUsageDetail_20' ) start [2025-01-22 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301237', 'tblTempUsageDetail_20' ) end [2025-01-22 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301237', 'tblTempVendorCDR_20' ) start [2025-01-22 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301237', 'tblTempVendorCDR_20' ) end [2025-01-22 00:12:24] Production.INFO: ProcessCDR(1,14301237,1,1,2) [2025-01-22 00:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301237', 'tblTempUsageDetail_20' ) start [2025-01-22 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301237', 'tblTempUsageDetail_20' ) end [2025-01-22 00:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:12:28] Production.INFO: ==415== Releasing lock... [2025-01-22 00:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:12:28] Production.INFO: 31 MB #Memory Used# [2025-01-22 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:13:05 [end_date_ymd] => 2025-01-22 00:13:05 [RateCDR] => 1 ) [2025-01-22 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:13:05' and `end` < '2025-01-22 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:13:20] Production.INFO: count ==260 [2025-01-22 00:13:20] Production.ERROR: pbx CDR StartTime 2025-01-21 21:13:05 - End Time 2025-01-22 00:13:05 [2025-01-22 00:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301242', 'tblTempUsageDetail_20' ) start [2025-01-22 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301242', 'tblTempUsageDetail_20' ) end [2025-01-22 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301242', 'tblTempVendorCDR_20' ) start [2025-01-22 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301242', 'tblTempVendorCDR_20' ) end [2025-01-22 00:13:20] Production.INFO: ProcessCDR(1,14301242,1,1,2) [2025-01-22 00:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301242', 'tblTempUsageDetail_20' ) start [2025-01-22 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301242', 'tblTempUsageDetail_20' ) end [2025-01-22 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:13:23] Production.INFO: ==492== Releasing lock... [2025-01-22 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:13:23] Production.INFO: 31 MB #Memory Used# [2025-01-22 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:14:05 [end_date_ymd] => 2025-01-22 00:14:05 [RateCDR] => 1 ) [2025-01-22 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:14:05' and `end` < '2025-01-22 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:14:18] Production.INFO: count ==258 [2025-01-22 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:14:05 - End Time 2025-01-22 00:14:05 [2025-01-22 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301247', 'tblTempUsageDetail_20' ) start [2025-01-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301247', 'tblTempUsageDetail_20' ) end [2025-01-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301247', 'tblTempVendorCDR_20' ) start [2025-01-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301247', 'tblTempVendorCDR_20' ) end [2025-01-22 00:14:18] Production.INFO: ProcessCDR(1,14301247,1,1,2) [2025-01-22 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301247', 'tblTempUsageDetail_20' ) start [2025-01-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301247', 'tblTempUsageDetail_20' ) end [2025-01-22 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:14:21] Production.INFO: ==568== Releasing lock... [2025-01-22 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:15:04 [end_date_ymd] => 2025-01-22 00:15:04 [RateCDR] => 1 ) [2025-01-22 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:15:04' and `end` < '2025-01-22 00:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:15:17] Production.INFO: count ==257 [2025-01-22 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:15:04 - End Time 2025-01-22 00:15:04 [2025-01-22 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301252', 'tblTempUsageDetail_20' ) start [2025-01-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301252', 'tblTempUsageDetail_20' ) end [2025-01-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301252', 'tblTempVendorCDR_20' ) start [2025-01-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301252', 'tblTempVendorCDR_20' ) end [2025-01-22 00:15:17] Production.INFO: ProcessCDR(1,14301252,1,1,2) [2025-01-22 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301252', 'tblTempUsageDetail_20' ) start [2025-01-22 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301252', 'tblTempUsageDetail_20' ) end [2025-01-22 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:15:20] Production.INFO: ==653== Releasing lock... [2025-01-22 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:16:05 [end_date_ymd] => 2025-01-22 00:16:05 [RateCDR] => 1 ) [2025-01-22 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:16:05' and `end` < '2025-01-22 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:16:18] Production.INFO: count ==257 [2025-01-22 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:16:05 - End Time 2025-01-22 00:16:05 [2025-01-22 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301257', 'tblTempUsageDetail_20' ) start [2025-01-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301257', 'tblTempUsageDetail_20' ) end [2025-01-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301257', 'tblTempVendorCDR_20' ) start [2025-01-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301257', 'tblTempVendorCDR_20' ) end [2025-01-22 00:16:18] Production.INFO: ProcessCDR(1,14301257,1,1,2) [2025-01-22 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301257', 'tblTempUsageDetail_20' ) start [2025-01-22 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301257', 'tblTempUsageDetail_20' ) end [2025-01-22 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:16:21] Production.INFO: ==757== Releasing lock... [2025-01-22 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:17:05 [end_date_ymd] => 2025-01-22 00:17:05 [RateCDR] => 1 ) [2025-01-22 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:17:05' and `end` < '2025-01-22 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:17:19] Production.INFO: count ==254 [2025-01-22 00:17:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:17:05 - End Time 2025-01-22 00:17:05 [2025-01-22 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301262', 'tblTempUsageDetail_20' ) start [2025-01-22 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301262', 'tblTempUsageDetail_20' ) end [2025-01-22 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301262', 'tblTempVendorCDR_20' ) start [2025-01-22 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301262', 'tblTempVendorCDR_20' ) end [2025-01-22 00:17:19] Production.INFO: ProcessCDR(1,14301262,1,1,2) [2025-01-22 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301262', 'tblTempUsageDetail_20' ) start [2025-01-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301262', 'tblTempUsageDetail_20' ) end [2025-01-22 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:17:22] Production.INFO: ==835== Releasing lock... [2025-01-22 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:18:05 [end_date_ymd] => 2025-01-22 00:18:05 [RateCDR] => 1 ) [2025-01-22 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:18:05' and `end` < '2025-01-22 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:18:25] Production.INFO: count ==253 [2025-01-22 00:18:25] Production.ERROR: pbx CDR StartTime 2025-01-21 21:18:05 - End Time 2025-01-22 00:18:05 [2025-01-22 00:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301267', 'tblTempUsageDetail_20' ) start [2025-01-22 00:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301267', 'tblTempUsageDetail_20' ) end [2025-01-22 00:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301267', 'tblTempVendorCDR_20' ) start [2025-01-22 00:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301267', 'tblTempVendorCDR_20' ) end [2025-01-22 00:18:25] Production.INFO: ProcessCDR(1,14301267,1,1,2) [2025-01-22 00:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301267', 'tblTempUsageDetail_20' ) start [2025-01-22 00:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301267', 'tblTempUsageDetail_20' ) end [2025-01-22 00:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:18:28] Production.INFO: ==932== Releasing lock... [2025-01-22 00:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:18:28] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:19:04 [end_date_ymd] => 2025-01-22 00:19:04 [RateCDR] => 1 ) [2025-01-22 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:19:04' and `end` < '2025-01-22 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:19:18] Production.INFO: count ==251 [2025-01-22 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:19:04 - End Time 2025-01-22 00:19:04 [2025-01-22 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301272', 'tblTempUsageDetail_20' ) start [2025-01-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301272', 'tblTempUsageDetail_20' ) end [2025-01-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301272', 'tblTempVendorCDR_20' ) start [2025-01-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301272', 'tblTempVendorCDR_20' ) end [2025-01-22 00:19:18] Production.INFO: ProcessCDR(1,14301272,1,1,2) [2025-01-22 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301272', 'tblTempUsageDetail_20' ) start [2025-01-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301272', 'tblTempUsageDetail_20' ) end [2025-01-22 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:19:21] Production.INFO: ==1008== Releasing lock... [2025-01-22 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:20:06 [end_date_ymd] => 2025-01-22 00:20:06 [RateCDR] => 1 ) [2025-01-22 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:20:06' and `end` < '2025-01-22 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:20:18] Production.INFO: count ==257 [2025-01-22 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:20:06 - End Time 2025-01-22 00:20:06 [2025-01-22 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301278', 'tblTempUsageDetail_20' ) start [2025-01-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301278', 'tblTempUsageDetail_20' ) end [2025-01-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301278', 'tblTempVendorCDR_20' ) start [2025-01-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301278', 'tblTempVendorCDR_20' ) end [2025-01-22 00:20:18] Production.INFO: ProcessCDR(1,14301278,1,1,2) [2025-01-22 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301278', 'tblTempUsageDetail_20' ) start [2025-01-22 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301278', 'tblTempUsageDetail_20' ) end [2025-01-22 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:20:21] Production.INFO: ==1090== Releasing lock... [2025-01-22 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:20:21] Production.INFO: 31 MB #Memory Used# [2025-01-22 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:21:05 [end_date_ymd] => 2025-01-22 00:21:05 [RateCDR] => 1 ) [2025-01-22 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:21:05' and `end` < '2025-01-22 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:21:17] Production.INFO: count ==258 [2025-01-22 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:21:05 - End Time 2025-01-22 00:21:05 [2025-01-22 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301283', 'tblTempUsageDetail_20' ) start [2025-01-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301283', 'tblTempUsageDetail_20' ) end [2025-01-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301283', 'tblTempVendorCDR_20' ) start [2025-01-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301283', 'tblTempVendorCDR_20' ) end [2025-01-22 00:21:18] Production.INFO: ProcessCDR(1,14301283,1,1,2) [2025-01-22 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301283', 'tblTempUsageDetail_20' ) start [2025-01-22 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301283', 'tblTempUsageDetail_20' ) end [2025-01-22 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:21:21] Production.INFO: ==1170== Releasing lock... [2025-01-22 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:22:05 [end_date_ymd] => 2025-01-22 00:22:05 [RateCDR] => 1 ) [2025-01-22 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:22:05' and `end` < '2025-01-22 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:22:18] Production.INFO: count ==252 [2025-01-22 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:22:05 - End Time 2025-01-22 00:22:05 [2025-01-22 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301288', 'tblTempUsageDetail_20' ) start [2025-01-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301288', 'tblTempUsageDetail_20' ) end [2025-01-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301288', 'tblTempVendorCDR_20' ) start [2025-01-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301288', 'tblTempVendorCDR_20' ) end [2025-01-22 00:22:18] Production.INFO: ProcessCDR(1,14301288,1,1,2) [2025-01-22 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301288', 'tblTempUsageDetail_20' ) start [2025-01-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301288', 'tblTempUsageDetail_20' ) end [2025-01-22 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:22:21] Production.INFO: ==1262== Releasing lock... [2025-01-22 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:23:04 [end_date_ymd] => 2025-01-22 00:23:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 21:23:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 00:23:18] Production.INFO: count ==247 [2025-01-22 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:23:04 - End Time 2025-01-22 00:23:04 [2025-01-22 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301293', 'tblTempUsageDetail_20' ) start [2025-01-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301293', 'tblTempUsageDetail_20' ) end [2025-01-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301293', 'tblTempVendorCDR_20' ) start [2025-01-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301293', 'tblTempVendorCDR_20' ) end [2025-01-22 00:23:18] Production.INFO: ProcessCDR(1,14301293,1,1,2) [2025-01-22 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301293', 'tblTempUsageDetail_20' ) start [2025-01-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301293', 'tblTempUsageDetail_20' ) end [2025-01-22 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:23:21] Production.INFO: ==1338== Releasing lock... [2025-01-22 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:24:05 [end_date_ymd] => 2025-01-22 00:24:05 [RateCDR] => 1 ) [2025-01-22 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:24:05' and `end` < '2025-01-22 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:24:18] Production.INFO: count ==242 [2025-01-22 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:24:05 - End Time 2025-01-22 00:24:05 [2025-01-22 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301298', 'tblTempUsageDetail_20' ) start [2025-01-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301298', 'tblTempUsageDetail_20' ) end [2025-01-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301298', 'tblTempVendorCDR_20' ) start [2025-01-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301298', 'tblTempVendorCDR_20' ) end [2025-01-22 00:24:18] Production.INFO: ProcessCDR(1,14301298,1,1,2) [2025-01-22 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301298', 'tblTempUsageDetail_20' ) start [2025-01-22 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301298', 'tblTempUsageDetail_20' ) end [2025-01-22 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:24:21] Production.INFO: ==1415== Releasing lock... [2025-01-22 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:25:04 [end_date_ymd] => 2025-01-22 00:25:04 [RateCDR] => 1 ) [2025-01-22 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:25:04' and `end` < '2025-01-22 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:25:17] Production.INFO: count ==237 [2025-01-22 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:25:04 - End Time 2025-01-22 00:25:04 [2025-01-22 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301303', 'tblTempUsageDetail_20' ) start [2025-01-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301303', 'tblTempUsageDetail_20' ) end [2025-01-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301303', 'tblTempVendorCDR_20' ) start [2025-01-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301303', 'tblTempVendorCDR_20' ) end [2025-01-22 00:25:17] Production.INFO: ProcessCDR(1,14301303,1,1,2) [2025-01-22 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301303', 'tblTempUsageDetail_20' ) start [2025-01-22 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301303', 'tblTempUsageDetail_20' ) end [2025-01-22 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:25:20] Production.INFO: ==1489== Releasing lock... [2025-01-22 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:26:04 [end_date_ymd] => 2025-01-22 00:26:04 [RateCDR] => 1 ) [2025-01-22 00:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:26:04' and `end` < '2025-01-22 00:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:26:18] Production.INFO: count ==236 [2025-01-22 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:26:04 - End Time 2025-01-22 00:26:04 [2025-01-22 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301308', 'tblTempUsageDetail_20' ) start [2025-01-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301308', 'tblTempUsageDetail_20' ) end [2025-01-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301308', 'tblTempVendorCDR_20' ) start [2025-01-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301308', 'tblTempVendorCDR_20' ) end [2025-01-22 00:26:18] Production.INFO: ProcessCDR(1,14301308,1,1,2) [2025-01-22 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301308', 'tblTempUsageDetail_20' ) start [2025-01-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301308', 'tblTempUsageDetail_20' ) end [2025-01-22 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:26:21] Production.INFO: ==1605== Releasing lock... [2025-01-22 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:27:06 [end_date_ymd] => 2025-01-22 00:27:06 [RateCDR] => 1 ) [2025-01-22 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:27:06' and `end` < '2025-01-22 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:27:20] Production.INFO: count ==234 [2025-01-22 00:27:20] Production.ERROR: pbx CDR StartTime 2025-01-21 21:27:06 - End Time 2025-01-22 00:27:06 [2025-01-22 00:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301313', 'tblTempUsageDetail_20' ) start [2025-01-22 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301313', 'tblTempUsageDetail_20' ) end [2025-01-22 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301313', 'tblTempVendorCDR_20' ) start [2025-01-22 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301313', 'tblTempVendorCDR_20' ) end [2025-01-22 00:27:20] Production.INFO: ProcessCDR(1,14301313,1,1,2) [2025-01-22 00:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301313', 'tblTempUsageDetail_20' ) start [2025-01-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301313', 'tblTempUsageDetail_20' ) end [2025-01-22 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:27:23] Production.INFO: ==1717== Releasing lock... [2025-01-22 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:27:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:28:04 [end_date_ymd] => 2025-01-22 00:28:04 [RateCDR] => 1 ) [2025-01-22 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:28:04' and `end` < '2025-01-22 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:28:17] Production.INFO: count ==235 [2025-01-22 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:28:04 - End Time 2025-01-22 00:28:04 [2025-01-22 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301318', 'tblTempUsageDetail_20' ) start [2025-01-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301318', 'tblTempUsageDetail_20' ) end [2025-01-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301318', 'tblTempVendorCDR_20' ) start [2025-01-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301318', 'tblTempVendorCDR_20' ) end [2025-01-22 00:28:17] Production.INFO: ProcessCDR(1,14301318,1,1,2) [2025-01-22 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301318', 'tblTempUsageDetail_20' ) start [2025-01-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301318', 'tblTempUsageDetail_20' ) end [2025-01-22 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:28:20] Production.INFO: ==1794== Releasing lock... [2025-01-22 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:29:05 [end_date_ymd] => 2025-01-22 00:29:05 [RateCDR] => 1 ) [2025-01-22 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:29:05' and `end` < '2025-01-22 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:29:18] Production.INFO: count ==233 [2025-01-22 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:29:05 - End Time 2025-01-22 00:29:05 [2025-01-22 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301323', 'tblTempUsageDetail_20' ) start [2025-01-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301323', 'tblTempUsageDetail_20' ) end [2025-01-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301323', 'tblTempVendorCDR_20' ) start [2025-01-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301323', 'tblTempVendorCDR_20' ) end [2025-01-22 00:29:18] Production.INFO: ProcessCDR(1,14301323,1,1,2) [2025-01-22 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301323', 'tblTempUsageDetail_20' ) start [2025-01-22 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301323', 'tblTempUsageDetail_20' ) end [2025-01-22 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:29:21] Production.INFO: ==1872== Releasing lock... [2025-01-22 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:30:06 [end_date_ymd] => 2025-01-22 00:30:06 [RateCDR] => 1 ) [2025-01-22 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:30:06' and `end` < '2025-01-22 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:30:18] Production.INFO: count ==246 [2025-01-22 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:30:06 - End Time 2025-01-22 00:30:06 [2025-01-22 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301329', 'tblTempUsageDetail_20' ) start [2025-01-22 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301329', 'tblTempUsageDetail_20' ) end [2025-01-22 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301329', 'tblTempVendorCDR_20' ) start [2025-01-22 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301329', 'tblTempVendorCDR_20' ) end [2025-01-22 00:30:18] Production.INFO: ProcessCDR(1,14301329,1,1,2) [2025-01-22 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301329', 'tblTempUsageDetail_20' ) start [2025-01-22 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301329', 'tblTempUsageDetail_20' ) end [2025-01-22 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:30:23] Production.INFO: ==1952== Releasing lock... [2025-01-22 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:30:23] Production.INFO: 30 MB #Memory Used# [2025-01-22 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:31:05 [end_date_ymd] => 2025-01-22 00:31:05 [RateCDR] => 1 ) [2025-01-22 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:31:05' and `end` < '2025-01-22 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:31:19] Production.INFO: count ==247 [2025-01-22 00:31:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:31:05 - End Time 2025-01-22 00:31:05 [2025-01-22 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301334', 'tblTempUsageDetail_20' ) start [2025-01-22 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301334', 'tblTempUsageDetail_20' ) end [2025-01-22 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301334', 'tblTempVendorCDR_20' ) start [2025-01-22 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301334', 'tblTempVendorCDR_20' ) end [2025-01-22 00:31:19] Production.INFO: ProcessCDR(1,14301334,1,1,2) [2025-01-22 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301334', 'tblTempUsageDetail_20' ) start [2025-01-22 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301334', 'tblTempUsageDetail_20' ) end [2025-01-22 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:31:22] Production.INFO: ==2041== Releasing lock... [2025-01-22 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:32:05 [end_date_ymd] => 2025-01-22 00:32:05 [RateCDR] => 1 ) [2025-01-22 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:32:05' and `end` < '2025-01-22 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:32:18] Production.INFO: count ==249 [2025-01-22 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:32:05 - End Time 2025-01-22 00:32:05 [2025-01-22 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301339', 'tblTempUsageDetail_20' ) start [2025-01-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301339', 'tblTempUsageDetail_20' ) end [2025-01-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301339', 'tblTempVendorCDR_20' ) start [2025-01-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301339', 'tblTempVendorCDR_20' ) end [2025-01-22 00:32:18] Production.INFO: ProcessCDR(1,14301339,1,1,2) [2025-01-22 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301339', 'tblTempUsageDetail_20' ) start [2025-01-22 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301339', 'tblTempUsageDetail_20' ) end [2025-01-22 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:32:22] Production.INFO: ==2124== Releasing lock... [2025-01-22 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:33:05 [end_date_ymd] => 2025-01-22 00:33:05 [RateCDR] => 1 ) [2025-01-22 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:33:05' and `end` < '2025-01-22 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:33:18] Production.INFO: count ==249 [2025-01-22 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:33:05 - End Time 2025-01-22 00:33:05 [2025-01-22 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301344', 'tblTempUsageDetail_20' ) start [2025-01-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301344', 'tblTempUsageDetail_20' ) end [2025-01-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301344', 'tblTempVendorCDR_20' ) start [2025-01-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301344', 'tblTempVendorCDR_20' ) end [2025-01-22 00:33:18] Production.INFO: ProcessCDR(1,14301344,1,1,2) [2025-01-22 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301344', 'tblTempUsageDetail_20' ) start [2025-01-22 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301344', 'tblTempUsageDetail_20' ) end [2025-01-22 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:33:21] Production.INFO: ==2203== Releasing lock... [2025-01-22 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:34:06 [end_date_ymd] => 2025-01-22 00:34:06 [RateCDR] => 1 ) [2025-01-22 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:34:06' and `end` < '2025-01-22 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:34:19] Production.INFO: count ==249 [2025-01-22 00:34:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:34:06 - End Time 2025-01-22 00:34:06 [2025-01-22 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301349', 'tblTempUsageDetail_20' ) start [2025-01-22 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301349', 'tblTempUsageDetail_20' ) end [2025-01-22 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301349', 'tblTempVendorCDR_20' ) start [2025-01-22 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301349', 'tblTempVendorCDR_20' ) end [2025-01-22 00:34:19] Production.INFO: ProcessCDR(1,14301349,1,1,2) [2025-01-22 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301349', 'tblTempUsageDetail_20' ) start [2025-01-22 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301349', 'tblTempUsageDetail_20' ) end [2025-01-22 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:34:22] Production.INFO: ==2285== Releasing lock... [2025-01-22 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:35:04 [end_date_ymd] => 2025-01-22 00:35:04 [RateCDR] => 1 ) [2025-01-22 00:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:35:04' and `end` < '2025-01-22 00:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:35:17] Production.INFO: count ==249 [2025-01-22 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:35:04 - End Time 2025-01-22 00:35:04 [2025-01-22 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301354', 'tblTempUsageDetail_20' ) start [2025-01-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301354', 'tblTempUsageDetail_20' ) end [2025-01-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301354', 'tblTempVendorCDR_20' ) start [2025-01-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301354', 'tblTempVendorCDR_20' ) end [2025-01-22 00:35:18] Production.INFO: ProcessCDR(1,14301354,1,1,2) [2025-01-22 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301354', 'tblTempUsageDetail_20' ) start [2025-01-22 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301354', 'tblTempUsageDetail_20' ) end [2025-01-22 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:35:21] Production.INFO: ==2363== Releasing lock... [2025-01-22 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:36:05 [end_date_ymd] => 2025-01-22 00:36:05 [RateCDR] => 1 ) [2025-01-22 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:36:05' and `end` < '2025-01-22 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:36:18] Production.INFO: count ==245 [2025-01-22 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:36:05 - End Time 2025-01-22 00:36:05 [2025-01-22 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301359', 'tblTempUsageDetail_20' ) start [2025-01-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301359', 'tblTempUsageDetail_20' ) end [2025-01-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301359', 'tblTempVendorCDR_20' ) start [2025-01-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301359', 'tblTempVendorCDR_20' ) end [2025-01-22 00:36:18] Production.INFO: ProcessCDR(1,14301359,1,1,2) [2025-01-22 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301359', 'tblTempUsageDetail_20' ) start [2025-01-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301359', 'tblTempUsageDetail_20' ) end [2025-01-22 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:36:21] Production.INFO: ==2443== Releasing lock... [2025-01-22 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:37:04 [end_date_ymd] => 2025-01-22 00:37:04 [RateCDR] => 1 ) [2025-01-22 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:37:04' and `end` < '2025-01-22 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:37:17] Production.INFO: count ==242 [2025-01-22 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:37:04 - End Time 2025-01-22 00:37:04 [2025-01-22 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301364', 'tblTempUsageDetail_20' ) start [2025-01-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301364', 'tblTempUsageDetail_20' ) end [2025-01-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301364', 'tblTempVendorCDR_20' ) start [2025-01-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301364', 'tblTempVendorCDR_20' ) end [2025-01-22 00:37:17] Production.INFO: ProcessCDR(1,14301364,1,1,2) [2025-01-22 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301364', 'tblTempUsageDetail_20' ) start [2025-01-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301364', 'tblTempUsageDetail_20' ) end [2025-01-22 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:37:20] Production.INFO: ==2514== Releasing lock... [2025-01-22 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:38:05 [end_date_ymd] => 2025-01-22 00:38:05 [RateCDR] => 1 ) [2025-01-22 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:38:05' and `end` < '2025-01-22 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:38:19] Production.INFO: count ==242 [2025-01-22 00:38:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:38:05 - End Time 2025-01-22 00:38:05 [2025-01-22 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301369', 'tblTempUsageDetail_20' ) start [2025-01-22 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301369', 'tblTempUsageDetail_20' ) end [2025-01-22 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301369', 'tblTempVendorCDR_20' ) start [2025-01-22 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301369', 'tblTempVendorCDR_20' ) end [2025-01-22 00:38:19] Production.INFO: ProcessCDR(1,14301369,1,1,2) [2025-01-22 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301369', 'tblTempUsageDetail_20' ) start [2025-01-22 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301369', 'tblTempUsageDetail_20' ) end [2025-01-22 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:38:22] Production.INFO: ==2590== Releasing lock... [2025-01-22 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:39:04 [end_date_ymd] => 2025-01-22 00:39:04 [RateCDR] => 1 ) [2025-01-22 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:39:04' and `end` < '2025-01-22 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:39:17] Production.INFO: count ==242 [2025-01-22 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:39:04 - End Time 2025-01-22 00:39:04 [2025-01-22 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301374', 'tblTempUsageDetail_20' ) start [2025-01-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301374', 'tblTempUsageDetail_20' ) end [2025-01-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301374', 'tblTempVendorCDR_20' ) start [2025-01-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301374', 'tblTempVendorCDR_20' ) end [2025-01-22 00:39:17] Production.INFO: ProcessCDR(1,14301374,1,1,2) [2025-01-22 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301374', 'tblTempUsageDetail_20' ) start [2025-01-22 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301374', 'tblTempUsageDetail_20' ) end [2025-01-22 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:39:20] Production.INFO: ==2666== Releasing lock... [2025-01-22 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:40:06 [end_date_ymd] => 2025-01-22 00:40:06 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 21:40:06' and `end` < '2025-01-22 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 ,'') [2025-01-22 00:40:19] Production.INFO: count ==247 [2025-01-22 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:40:06 - End Time 2025-01-22 00:40:06 [2025-01-22 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301380', 'tblTempUsageDetail_20' ) start [2025-01-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301380', 'tblTempUsageDetail_20' ) end [2025-01-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301380', 'tblTempVendorCDR_20' ) start [2025-01-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301380', 'tblTempVendorCDR_20' ) end [2025-01-22 00:40:19] Production.INFO: ProcessCDR(1,14301380,1,1,2) [2025-01-22 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301380', 'tblTempUsageDetail_20' ) start [2025-01-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301380', 'tblTempUsageDetail_20' ) end [2025-01-22 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:40:22] Production.INFO: ==2744== Releasing lock... [2025-01-22 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:41:05 [end_date_ymd] => 2025-01-22 00:41:05 [RateCDR] => 1 ) [2025-01-22 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:41:05' and `end` < '2025-01-22 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:41:18] Production.INFO: count ==248 [2025-01-22 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:41:05 - End Time 2025-01-22 00:41:05 [2025-01-22 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301385', 'tblTempUsageDetail_20' ) start [2025-01-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301385', 'tblTempUsageDetail_20' ) end [2025-01-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301385', 'tblTempVendorCDR_20' ) start [2025-01-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301385', 'tblTempVendorCDR_20' ) end [2025-01-22 00:41:18] Production.INFO: ProcessCDR(1,14301385,1,1,2) [2025-01-22 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301385', 'tblTempUsageDetail_20' ) start [2025-01-22 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301385', 'tblTempUsageDetail_20' ) end [2025-01-22 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:41:21] Production.INFO: ==2823== Releasing lock... [2025-01-22 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:42:05 [end_date_ymd] => 2025-01-22 00:42:05 [RateCDR] => 1 ) [2025-01-22 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:42:05' and `end` < '2025-01-22 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:42:17] Production.INFO: count ==248 [2025-01-22 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:42:05 - End Time 2025-01-22 00:42:05 [2025-01-22 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301390', 'tblTempUsageDetail_20' ) start [2025-01-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301390', 'tblTempUsageDetail_20' ) end [2025-01-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301390', 'tblTempVendorCDR_20' ) start [2025-01-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301390', 'tblTempVendorCDR_20' ) end [2025-01-22 00:42:18] Production.INFO: ProcessCDR(1,14301390,1,1,2) [2025-01-22 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301390', 'tblTempUsageDetail_20' ) start [2025-01-22 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301390', 'tblTempUsageDetail_20' ) end [2025-01-22 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:42:21] Production.INFO: ==2934== Releasing lock... [2025-01-22 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:43:06 [end_date_ymd] => 2025-01-22 00:43:06 [RateCDR] => 1 ) [2025-01-22 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:43:06' and `end` < '2025-01-22 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:43:18] Production.INFO: count ==249 [2025-01-22 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:43:06 - End Time 2025-01-22 00:43:06 [2025-01-22 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301395', 'tblTempUsageDetail_20' ) start [2025-01-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301395', 'tblTempUsageDetail_20' ) end [2025-01-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301395', 'tblTempVendorCDR_20' ) start [2025-01-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301395', 'tblTempVendorCDR_20' ) end [2025-01-22 00:43:18] Production.INFO: ProcessCDR(1,14301395,1,1,2) [2025-01-22 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301395', 'tblTempUsageDetail_20' ) start [2025-01-22 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301395', 'tblTempUsageDetail_20' ) end [2025-01-22 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:43:23] Production.INFO: ==3009== Releasing lock... [2025-01-22 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:43:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:44:06 [end_date_ymd] => 2025-01-22 00:44:06 [RateCDR] => 1 ) [2025-01-22 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:44:06' and `end` < '2025-01-22 00:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:44:18] Production.INFO: count ==250 [2025-01-22 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:44:06 - End Time 2025-01-22 00:44:06 [2025-01-22 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301400', 'tblTempUsageDetail_20' ) start [2025-01-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301400', 'tblTempUsageDetail_20' ) end [2025-01-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301400', 'tblTempVendorCDR_20' ) start [2025-01-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301400', 'tblTempVendorCDR_20' ) end [2025-01-22 00:44:18] Production.INFO: ProcessCDR(1,14301400,1,1,2) [2025-01-22 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301400', 'tblTempUsageDetail_20' ) start [2025-01-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301400', 'tblTempUsageDetail_20' ) end [2025-01-22 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:44:21] Production.INFO: ==3080== Releasing lock... [2025-01-22 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:45:06 [end_date_ymd] => 2025-01-22 00:45:06 [RateCDR] => 1 ) [2025-01-22 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:45:06' and `end` < '2025-01-22 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:45:18] Production.INFO: count ==248 [2025-01-22 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:45:06 - End Time 2025-01-22 00:45:06 [2025-01-22 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301405', 'tblTempUsageDetail_20' ) start [2025-01-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301405', 'tblTempUsageDetail_20' ) end [2025-01-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301405', 'tblTempVendorCDR_20' ) start [2025-01-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301405', 'tblTempVendorCDR_20' ) end [2025-01-22 00:45:18] Production.INFO: ProcessCDR(1,14301405,1,1,2) [2025-01-22 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301405', 'tblTempUsageDetail_20' ) start [2025-01-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301405', 'tblTempUsageDetail_20' ) end [2025-01-22 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:45:21] Production.INFO: ==3157== Releasing lock... [2025-01-22 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:46:05 [end_date_ymd] => 2025-01-22 00:46:05 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 21:46:05' and `end` < '2025-01-22 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:46:18] Production.INFO: count ==247 [2025-01-22 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:46:05 - End Time 2025-01-22 00:46:05 [2025-01-22 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301410', 'tblTempUsageDetail_20' ) start [2025-01-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301410', 'tblTempUsageDetail_20' ) end [2025-01-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301410', 'tblTempVendorCDR_20' ) start [2025-01-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301410', 'tblTempVendorCDR_20' ) end [2025-01-22 00:46:18] Production.INFO: ProcessCDR(1,14301410,1,1,2) [2025-01-22 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301410', 'tblTempUsageDetail_20' ) start [2025-01-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301410', 'tblTempUsageDetail_20' ) end [2025-01-22 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:46:21] Production.INFO: ==3228== Releasing lock... [2025-01-22 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:47:06 [end_date_ymd] => 2025-01-22 00:47:06 [RateCDR] => 1 ) [2025-01-22 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:47:06' and `end` < '2025-01-22 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:47:19] Production.INFO: count ==246 [2025-01-22 00:47:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:47:06 - End Time 2025-01-22 00:47:06 [2025-01-22 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301415', 'tblTempUsageDetail_20' ) start [2025-01-22 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301415', 'tblTempUsageDetail_20' ) end [2025-01-22 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301415', 'tblTempVendorCDR_20' ) start [2025-01-22 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301415', 'tblTempVendorCDR_20' ) end [2025-01-22 00:47:19] Production.INFO: ProcessCDR(1,14301415,1,1,2) [2025-01-22 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301415', 'tblTempUsageDetail_20' ) start [2025-01-22 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301415', 'tblTempUsageDetail_20' ) end [2025-01-22 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:47:22] Production.INFO: ==3303== Releasing lock... [2025-01-22 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:48:05 [end_date_ymd] => 2025-01-22 00:48:05 [RateCDR] => 1 ) [2025-01-22 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:48:05' and `end` < '2025-01-22 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:48:18] Production.INFO: count ==244 [2025-01-22 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:48:05 - End Time 2025-01-22 00:48:05 [2025-01-22 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301420', 'tblTempUsageDetail_20' ) start [2025-01-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301420', 'tblTempUsageDetail_20' ) end [2025-01-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301420', 'tblTempVendorCDR_20' ) start [2025-01-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301420', 'tblTempVendorCDR_20' ) end [2025-01-22 00:48:18] Production.INFO: ProcessCDR(1,14301420,1,1,2) [2025-01-22 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301420', 'tblTempUsageDetail_20' ) start [2025-01-22 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301420', 'tblTempUsageDetail_20' ) end [2025-01-22 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:48:22] Production.INFO: ==3373== Releasing lock... [2025-01-22 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:49:05 [end_date_ymd] => 2025-01-22 00:49:05 [RateCDR] => 1 ) [2025-01-22 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:49:05' and `end` < '2025-01-22 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:49:19] Production.INFO: count ==243 [2025-01-22 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:49:05 - End Time 2025-01-22 00:49:05 [2025-01-22 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301425', 'tblTempUsageDetail_20' ) start [2025-01-22 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301425', 'tblTempUsageDetail_20' ) end [2025-01-22 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301425', 'tblTempVendorCDR_20' ) start [2025-01-22 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301425', 'tblTempVendorCDR_20' ) end [2025-01-22 00:49:19] Production.INFO: ProcessCDR(1,14301425,1,1,2) [2025-01-22 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301425', 'tblTempUsageDetail_20' ) start [2025-01-22 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301425', 'tblTempUsageDetail_20' ) end [2025-01-22 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:49:22] Production.INFO: ==3451== Releasing lock... [2025-01-22 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:50:06 [end_date_ymd] => 2025-01-22 00:50:06 [RateCDR] => 1 ) [2025-01-22 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:50:06' and `end` < '2025-01-22 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:50:20] Production.INFO: count ==254 [2025-01-22 00:50:20] Production.ERROR: pbx CDR StartTime 2025-01-21 21:50:06 - End Time 2025-01-22 00:50:06 [2025-01-22 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301431', 'tblTempUsageDetail_20' ) start [2025-01-22 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301431', 'tblTempUsageDetail_20' ) end [2025-01-22 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301431', 'tblTempVendorCDR_20' ) start [2025-01-22 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301431', 'tblTempVendorCDR_20' ) end [2025-01-22 00:50:20] Production.INFO: ProcessCDR(1,14301431,1,1,2) [2025-01-22 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301431', 'tblTempUsageDetail_20' ) start [2025-01-22 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301431', 'tblTempUsageDetail_20' ) end [2025-01-22 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:50:23] Production.INFO: ==3524== Releasing lock... [2025-01-22 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:51:05 [end_date_ymd] => 2025-01-22 00:51:05 [RateCDR] => 1 ) [2025-01-22 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:51:05' and `end` < '2025-01-22 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:51:18] Production.INFO: count ==256 [2025-01-22 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:51:05 - End Time 2025-01-22 00:51:05 [2025-01-22 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301436', 'tblTempUsageDetail_20' ) start [2025-01-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301436', 'tblTempUsageDetail_20' ) end [2025-01-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301436', 'tblTempVendorCDR_20' ) start [2025-01-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301436', 'tblTempVendorCDR_20' ) end [2025-01-22 00:51:18] Production.INFO: ProcessCDR(1,14301436,1,1,2) [2025-01-22 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301436', 'tblTempUsageDetail_20' ) start [2025-01-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301436', 'tblTempUsageDetail_20' ) end [2025-01-22 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:51:21] Production.INFO: ==3601== Releasing lock... [2025-01-22 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:52:05 [end_date_ymd] => 2025-01-22 00:52:05 [RateCDR] => 1 ) [2025-01-22 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:52:05' and `end` < '2025-01-22 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:52:19] Production.INFO: count ==254 [2025-01-22 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:52:05 - End Time 2025-01-22 00:52:05 [2025-01-22 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301441', 'tblTempUsageDetail_20' ) start [2025-01-22 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301441', 'tblTempUsageDetail_20' ) end [2025-01-22 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301441', 'tblTempVendorCDR_20' ) start [2025-01-22 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301441', 'tblTempVendorCDR_20' ) end [2025-01-22 00:52:19] Production.INFO: ProcessCDR(1,14301441,1,1,2) [2025-01-22 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301441', 'tblTempUsageDetail_20' ) start [2025-01-22 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301441', 'tblTempUsageDetail_20' ) end [2025-01-22 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:52:22] Production.INFO: ==3671== Releasing lock... [2025-01-22 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:53:06 [end_date_ymd] => 2025-01-22 00:53:06 [RateCDR] => 1 ) [2025-01-22 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:53:06' and `end` < '2025-01-22 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:53:20] Production.INFO: count ==252 [2025-01-22 00:53:20] Production.ERROR: pbx CDR StartTime 2025-01-21 21:53:06 - End Time 2025-01-22 00:53:06 [2025-01-22 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301446', 'tblTempUsageDetail_20' ) start [2025-01-22 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301446', 'tblTempUsageDetail_20' ) end [2025-01-22 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301446', 'tblTempVendorCDR_20' ) start [2025-01-22 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301446', 'tblTempVendorCDR_20' ) end [2025-01-22 00:53:20] Production.INFO: ProcessCDR(1,14301446,1,1,2) [2025-01-22 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301446', 'tblTempUsageDetail_20' ) start [2025-01-22 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301446', 'tblTempUsageDetail_20' ) end [2025-01-22 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:53:23] Production.INFO: ==3751== Releasing lock... [2025-01-22 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:54:05 [end_date_ymd] => 2025-01-22 00:54:05 [RateCDR] => 1 ) [2025-01-22 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:54:05' and `end` < '2025-01-22 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:54:19] Production.INFO: count ==248 [2025-01-22 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-21 21:54:05 - End Time 2025-01-22 00:54:05 [2025-01-22 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301451', 'tblTempUsageDetail_20' ) start [2025-01-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301451', 'tblTempUsageDetail_20' ) end [2025-01-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301451', 'tblTempVendorCDR_20' ) start [2025-01-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301451', 'tblTempVendorCDR_20' ) end [2025-01-22 00:54:19] Production.INFO: ProcessCDR(1,14301451,1,1,2) [2025-01-22 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301451', 'tblTempUsageDetail_20' ) start [2025-01-22 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301451', 'tblTempUsageDetail_20' ) end [2025-01-22 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:54:22] Production.INFO: ==3847== Releasing lock... [2025-01-22 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:55:06 [end_date_ymd] => 2025-01-22 00:55:06 [RateCDR] => 1 ) [2025-01-22 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:55:06' and `end` < '2025-01-22 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:55:18] Production.INFO: count ==248 [2025-01-22 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:55:06 - End Time 2025-01-22 00:55:06 [2025-01-22 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301456', 'tblTempUsageDetail_20' ) start [2025-01-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301456', 'tblTempUsageDetail_20' ) end [2025-01-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301456', 'tblTempVendorCDR_20' ) start [2025-01-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301456', 'tblTempVendorCDR_20' ) end [2025-01-22 00:55:18] Production.INFO: ProcessCDR(1,14301456,1,1,2) [2025-01-22 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301456', 'tblTempUsageDetail_20' ) start [2025-01-22 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301456', 'tblTempUsageDetail_20' ) end [2025-01-22 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:55:21] Production.INFO: ==3946== Releasing lock... [2025-01-22 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:56:05 [end_date_ymd] => 2025-01-22 00:56:05 [RateCDR] => 1 ) [2025-01-22 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:56:05' and `end` < '2025-01-22 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:56:17] Production.INFO: count ==244 [2025-01-22 00:56:17] Production.ERROR: pbx CDR StartTime 2025-01-21 21:56:05 - End Time 2025-01-22 00:56:05 [2025-01-22 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301461', 'tblTempUsageDetail_20' ) start [2025-01-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301461', 'tblTempUsageDetail_20' ) end [2025-01-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301461', 'tblTempVendorCDR_20' ) start [2025-01-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301461', 'tblTempVendorCDR_20' ) end [2025-01-22 00:56:17] Production.INFO: ProcessCDR(1,14301461,1,1,2) [2025-01-22 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301461', 'tblTempUsageDetail_20' ) start [2025-01-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301461', 'tblTempUsageDetail_20' ) end [2025-01-22 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:56:21] Production.INFO: ==4047== Releasing lock... [2025-01-22 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:56:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:57:05 [end_date_ymd] => 2025-01-22 00:57:05 [RateCDR] => 1 ) [2025-01-22 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:57:05' and `end` < '2025-01-22 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:57:18] Production.INFO: count ==243 [2025-01-22 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:57:05 - End Time 2025-01-22 00:57:05 [2025-01-22 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301466', 'tblTempUsageDetail_20' ) start [2025-01-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301466', 'tblTempUsageDetail_20' ) end [2025-01-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301466', 'tblTempVendorCDR_20' ) start [2025-01-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301466', 'tblTempVendorCDR_20' ) end [2025-01-22 00:57:18] Production.INFO: ProcessCDR(1,14301466,1,1,2) [2025-01-22 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301466', 'tblTempUsageDetail_20' ) start [2025-01-22 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301466', 'tblTempUsageDetail_20' ) end [2025-01-22 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:57:22] Production.INFO: ==4149== Releasing lock... [2025-01-22 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:57:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:58:05 [end_date_ymd] => 2025-01-22 00:58:05 [RateCDR] => 1 ) [2025-01-22 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:58:05' and `end` < '2025-01-22 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:58:18] Production.INFO: count ==241 [2025-01-22 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:58:05 - End Time 2025-01-22 00:58:05 [2025-01-22 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301471', 'tblTempUsageDetail_20' ) start [2025-01-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301471', 'tblTempUsageDetail_20' ) end [2025-01-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301471', 'tblTempVendorCDR_20' ) start [2025-01-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301471', 'tblTempVendorCDR_20' ) end [2025-01-22 00:58:18] Production.INFO: ProcessCDR(1,14301471,1,1,2) [2025-01-22 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301471', 'tblTempUsageDetail_20' ) start [2025-01-22 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301471', 'tblTempUsageDetail_20' ) end [2025-01-22 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:58:21] Production.INFO: ==4291== Releasing lock... [2025-01-22 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 21:59:06 [end_date_ymd] => 2025-01-22 00:59:06 [RateCDR] => 1 ) [2025-01-22 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 21:59:06' and `end` < '2025-01-22 00:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 00:59:18] Production.INFO: count ==237 [2025-01-22 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-21 21:59:06 - End Time 2025-01-22 00:59:06 [2025-01-22 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301476', 'tblTempUsageDetail_20' ) start [2025-01-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301476', 'tblTempUsageDetail_20' ) end [2025-01-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301476', 'tblTempVendorCDR_20' ) start [2025-01-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301476', 'tblTempVendorCDR_20' ) end [2025-01-22 00:59:18] Production.INFO: ProcessCDR(1,14301476,1,1,2) [2025-01-22 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301476', 'tblTempUsageDetail_20' ) start [2025-01-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301476', 'tblTempUsageDetail_20' ) end [2025-01-22 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 00:59:21] Production.INFO: ==4395== Releasing lock... [2025-01-22 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:00:06 [end_date_ymd] => 2025-01-22 01:00:06 [RateCDR] => 1 ) [2025-01-22 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:00:06' and `end` < '2025-01-22 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:00:18] Production.INFO: count ==249 [2025-01-22 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:00:06 - End Time 2025-01-22 01:00:06 [2025-01-22 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301481', 'tblTempUsageDetail_20' ) start [2025-01-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301481', 'tblTempUsageDetail_20' ) end [2025-01-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301481', 'tblTempVendorCDR_20' ) start [2025-01-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301481', 'tblTempVendorCDR_20' ) end [2025-01-22 01:00:18] Production.INFO: ProcessCDR(1,14301481,1,1,2) [2025-01-22 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301481', 'tblTempUsageDetail_20' ) start [2025-01-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301481', 'tblTempUsageDetail_20' ) end [2025-01-22 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:00:22] Production.INFO: ==4496== Releasing lock... [2025-01-22 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:01:06 [end_date_ymd] => 2025-01-22 01:01:06 [RateCDR] => 1 ) [2025-01-22 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:01:06' and `end` < '2025-01-22 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:01:18] Production.INFO: count ==259 [2025-01-22 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:01:06 - End Time 2025-01-22 01:01:06 [2025-01-22 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301487', 'tblTempUsageDetail_20' ) start [2025-01-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301487', 'tblTempUsageDetail_20' ) end [2025-01-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301487', 'tblTempVendorCDR_20' ) start [2025-01-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301487', 'tblTempVendorCDR_20' ) end [2025-01-22 01:01:18] Production.INFO: ProcessCDR(1,14301487,1,1,2) [2025-01-22 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301487', 'tblTempUsageDetail_20' ) start [2025-01-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301487', 'tblTempUsageDetail_20' ) end [2025-01-22 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:01:21] Production.INFO: ==4620== Releasing lock... [2025-01-22 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:01:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:02:05 [end_date_ymd] => 2025-01-22 01:02:05 [RateCDR] => 1 ) [2025-01-22 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:02:05' and `end` < '2025-01-22 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:02:18] Production.INFO: count ==260 [2025-01-22 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:02:05 - End Time 2025-01-22 01:02:05 [2025-01-22 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301492', 'tblTempUsageDetail_20' ) start [2025-01-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301492', 'tblTempUsageDetail_20' ) end [2025-01-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301492', 'tblTempVendorCDR_20' ) start [2025-01-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301492', 'tblTempVendorCDR_20' ) end [2025-01-22 01:02:18] Production.INFO: ProcessCDR(1,14301492,1,1,2) [2025-01-22 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301492', 'tblTempUsageDetail_20' ) start [2025-01-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301492', 'tblTempUsageDetail_20' ) end [2025-01-22 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:02:21] Production.INFO: ==4719== Releasing lock... [2025-01-22 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:02:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:03:05 [end_date_ymd] => 2025-01-22 01:03:05 [RateCDR] => 1 ) [2025-01-22 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:03:05' and `end` < '2025-01-22 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:03:19] Production.INFO: count ==260 [2025-01-22 01:03:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:03:05 - End Time 2025-01-22 01:03:05 [2025-01-22 01:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301497', 'tblTempUsageDetail_20' ) start [2025-01-22 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301497', 'tblTempUsageDetail_20' ) end [2025-01-22 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301497', 'tblTempVendorCDR_20' ) start [2025-01-22 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301497', 'tblTempVendorCDR_20' ) end [2025-01-22 01:03:20] Production.INFO: ProcessCDR(1,14301497,1,1,2) [2025-01-22 01:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301497', 'tblTempUsageDetail_20' ) start [2025-01-22 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301497', 'tblTempUsageDetail_20' ) end [2025-01-22 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:03:23] Production.INFO: ==4818== Releasing lock... [2025-01-22 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:03:23] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:04:06 [end_date_ymd] => 2025-01-22 01:04:06 [RateCDR] => 1 ) [2025-01-22 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:04:06' and `end` < '2025-01-22 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:04:19] Production.INFO: count ==259 [2025-01-22 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:04:06 - End Time 2025-01-22 01:04:06 [2025-01-22 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301502', 'tblTempUsageDetail_20' ) start [2025-01-22 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301502', 'tblTempUsageDetail_20' ) end [2025-01-22 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301502', 'tblTempVendorCDR_20' ) start [2025-01-22 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301502', 'tblTempVendorCDR_20' ) end [2025-01-22 01:04:19] Production.INFO: ProcessCDR(1,14301502,1,1,2) [2025-01-22 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301502', 'tblTempUsageDetail_20' ) start [2025-01-22 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301502', 'tblTempUsageDetail_20' ) end [2025-01-22 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:04:22] Production.INFO: ==4923== Releasing lock... [2025-01-22 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:04:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:05:04 [end_date_ymd] => 2025-01-22 01:05:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 22:05:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 01:05:18] Production.INFO: count ==259 [2025-01-22 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:05:04 - End Time 2025-01-22 01:05:04 [2025-01-22 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301507', 'tblTempUsageDetail_20' ) start [2025-01-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301507', 'tblTempUsageDetail_20' ) end [2025-01-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301507', 'tblTempVendorCDR_20' ) start [2025-01-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301507', 'tblTempVendorCDR_20' ) end [2025-01-22 01:05:18] Production.INFO: ProcessCDR(1,14301507,1,1,2) [2025-01-22 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301507', 'tblTempUsageDetail_20' ) start [2025-01-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301507', 'tblTempUsageDetail_20' ) end [2025-01-22 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:05:21] Production.INFO: ==5024== Releasing lock... [2025-01-22 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:05:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:06:05 [end_date_ymd] => 2025-01-22 01:06:05 [RateCDR] => 1 ) [2025-01-22 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:06:05' and `end` < '2025-01-22 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:06:18] Production.INFO: count ==257 [2025-01-22 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:06:05 - End Time 2025-01-22 01:06:05 [2025-01-22 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301512', 'tblTempUsageDetail_20' ) start [2025-01-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301512', 'tblTempUsageDetail_20' ) end [2025-01-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301512', 'tblTempVendorCDR_20' ) start [2025-01-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301512', 'tblTempVendorCDR_20' ) end [2025-01-22 01:06:18] Production.INFO: ProcessCDR(1,14301512,1,1,2) [2025-01-22 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301512', 'tblTempUsageDetail_20' ) start [2025-01-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301512', 'tblTempUsageDetail_20' ) end [2025-01-22 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:06:21] Production.INFO: ==5129== Releasing lock... [2025-01-22 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:07:06 [end_date_ymd] => 2025-01-22 01:07:06 [RateCDR] => 1 ) [2025-01-22 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:07:06' and `end` < '2025-01-22 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:07:19] Production.INFO: count ==256 [2025-01-22 01:07:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:07:06 - End Time 2025-01-22 01:07:06 [2025-01-22 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301517', 'tblTempUsageDetail_20' ) start [2025-01-22 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301517', 'tblTempUsageDetail_20' ) end [2025-01-22 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301517', 'tblTempVendorCDR_20' ) start [2025-01-22 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301517', 'tblTempVendorCDR_20' ) end [2025-01-22 01:07:19] Production.INFO: ProcessCDR(1,14301517,1,1,2) [2025-01-22 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301517', 'tblTempUsageDetail_20' ) start [2025-01-22 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301517', 'tblTempUsageDetail_20' ) end [2025-01-22 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:07:22] Production.INFO: ==5228== Releasing lock... [2025-01-22 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:08:05 [end_date_ymd] => 2025-01-22 01:08:05 [RateCDR] => 1 ) [2025-01-22 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:08:05' and `end` < '2025-01-22 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:08:18] Production.INFO: count ==256 [2025-01-22 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:08:05 - End Time 2025-01-22 01:08:05 [2025-01-22 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301522', 'tblTempUsageDetail_20' ) start [2025-01-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301522', 'tblTempUsageDetail_20' ) end [2025-01-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301522', 'tblTempVendorCDR_20' ) start [2025-01-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301522', 'tblTempVendorCDR_20' ) end [2025-01-22 01:08:18] Production.INFO: ProcessCDR(1,14301522,1,1,2) [2025-01-22 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301522', 'tblTempUsageDetail_20' ) start [2025-01-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301522', 'tblTempUsageDetail_20' ) end [2025-01-22 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:08:21] Production.INFO: ==5329== Releasing lock... [2025-01-22 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:09:06 [end_date_ymd] => 2025-01-22 01:09:06 [RateCDR] => 1 ) [2025-01-22 01:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:09:06' and `end` < '2025-01-22 01:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:09:19] Production.INFO: count ==255 [2025-01-22 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:09:06 - End Time 2025-01-22 01:09:06 [2025-01-22 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301527', 'tblTempUsageDetail_20' ) start [2025-01-22 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301527', 'tblTempUsageDetail_20' ) end [2025-01-22 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301527', 'tblTempVendorCDR_20' ) start [2025-01-22 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301527', 'tblTempVendorCDR_20' ) end [2025-01-22 01:09:19] Production.INFO: ProcessCDR(1,14301527,1,1,2) [2025-01-22 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301527', 'tblTempUsageDetail_20' ) start [2025-01-22 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301527', 'tblTempUsageDetail_20' ) end [2025-01-22 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:09:22] Production.INFO: ==5429== Releasing lock... [2025-01-22 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:10:06 [end_date_ymd] => 2025-01-22 01:10:06 [RateCDR] => 1 ) [2025-01-22 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:10:06' and `end` < '2025-01-22 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:10:19] Production.INFO: count ==258 [2025-01-22 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:10:06 - End Time 2025-01-22 01:10:06 [2025-01-22 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301533', 'tblTempUsageDetail_20' ) start [2025-01-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301533', 'tblTempUsageDetail_20' ) end [2025-01-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301533', 'tblTempVendorCDR_20' ) start [2025-01-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301533', 'tblTempVendorCDR_20' ) end [2025-01-22 01:10:19] Production.INFO: ProcessCDR(1,14301533,1,1,2) [2025-01-22 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301533', 'tblTempUsageDetail_20' ) start [2025-01-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301533', 'tblTempUsageDetail_20' ) end [2025-01-22 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:10:22] Production.INFO: ==5532== Releasing lock... [2025-01-22 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:11:06 [end_date_ymd] => 2025-01-22 01:11:06 [RateCDR] => 1 ) [2025-01-22 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:11:06' and `end` < '2025-01-22 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:11:18] Production.INFO: count ==257 [2025-01-22 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:11:06 - End Time 2025-01-22 01:11:06 [2025-01-22 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301538', 'tblTempUsageDetail_20' ) start [2025-01-22 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301538', 'tblTempUsageDetail_20' ) end [2025-01-22 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301538', 'tblTempVendorCDR_20' ) start [2025-01-22 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301538', 'tblTempVendorCDR_20' ) end [2025-01-22 01:11:19] Production.INFO: ProcessCDR(1,14301538,1,1,2) [2025-01-22 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301538', 'tblTempUsageDetail_20' ) start [2025-01-22 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301538', 'tblTempUsageDetail_20' ) end [2025-01-22 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:11:22] Production.INFO: ==5625== Releasing lock... [2025-01-22 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:12:05 [end_date_ymd] => 2025-01-22 01:12:05 [RateCDR] => 1 ) [2025-01-22 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:12:05' and `end` < '2025-01-22 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:12:18] Production.INFO: count ==255 [2025-01-22 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:12:05 - End Time 2025-01-22 01:12:05 [2025-01-22 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301543', 'tblTempUsageDetail_20' ) start [2025-01-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301543', 'tblTempUsageDetail_20' ) end [2025-01-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301543', 'tblTempVendorCDR_20' ) start [2025-01-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301543', 'tblTempVendorCDR_20' ) end [2025-01-22 01:12:18] Production.INFO: ProcessCDR(1,14301543,1,1,2) [2025-01-22 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301543', 'tblTempUsageDetail_20' ) start [2025-01-22 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301543', 'tblTempUsageDetail_20' ) end [2025-01-22 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:12:21] Production.INFO: ==5700== Releasing lock... [2025-01-22 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:13:06 [end_date_ymd] => 2025-01-22 01:13:06 [RateCDR] => 1 ) [2025-01-22 01:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:13:06' and `end` < '2025-01-22 01:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:13:19] Production.INFO: count ==255 [2025-01-22 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:13:06 - End Time 2025-01-22 01:13:06 [2025-01-22 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301548', 'tblTempUsageDetail_20' ) start [2025-01-22 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301548', 'tblTempUsageDetail_20' ) end [2025-01-22 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301548', 'tblTempVendorCDR_20' ) start [2025-01-22 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301548', 'tblTempVendorCDR_20' ) end [2025-01-22 01:13:19] Production.INFO: ProcessCDR(1,14301548,1,1,2) [2025-01-22 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301548', 'tblTempUsageDetail_20' ) start [2025-01-22 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301548', 'tblTempUsageDetail_20' ) end [2025-01-22 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:13:22] Production.INFO: ==5818== Releasing lock... [2025-01-22 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:14:05 [end_date_ymd] => 2025-01-22 01:14:05 [RateCDR] => 1 ) [2025-01-22 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:14:05' and `end` < '2025-01-22 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:14:19] Production.INFO: count ==254 [2025-01-22 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:14:05 - End Time 2025-01-22 01:14:05 [2025-01-22 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301553', 'tblTempUsageDetail_20' ) start [2025-01-22 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301553', 'tblTempUsageDetail_20' ) end [2025-01-22 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301553', 'tblTempVendorCDR_20' ) start [2025-01-22 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301553', 'tblTempVendorCDR_20' ) end [2025-01-22 01:14:19] Production.INFO: ProcessCDR(1,14301553,1,1,2) [2025-01-22 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301553', 'tblTempUsageDetail_20' ) start [2025-01-22 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301553', 'tblTempUsageDetail_20' ) end [2025-01-22 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:14:22] Production.INFO: ==5892== Releasing lock... [2025-01-22 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:15:05 [end_date_ymd] => 2025-01-22 01:15:05 [RateCDR] => 1 ) [2025-01-22 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:15:05' and `end` < '2025-01-22 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:15:19] Production.INFO: count ==253 [2025-01-22 01:15:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:15:05 - End Time 2025-01-22 01:15:05 [2025-01-22 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301558', 'tblTempUsageDetail_20' ) start [2025-01-22 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301558', 'tblTempUsageDetail_20' ) end [2025-01-22 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301558', 'tblTempVendorCDR_20' ) start [2025-01-22 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301558', 'tblTempVendorCDR_20' ) end [2025-01-22 01:15:19] Production.INFO: ProcessCDR(1,14301558,1,1,2) [2025-01-22 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301558', 'tblTempUsageDetail_20' ) start [2025-01-22 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301558', 'tblTempUsageDetail_20' ) end [2025-01-22 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:15:22] Production.INFO: ==5971== Releasing lock... [2025-01-22 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:16:05 [end_date_ymd] => 2025-01-22 01:16:05 [RateCDR] => 1 ) [2025-01-22 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:16:05' and `end` < '2025-01-22 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:16:17] Production.INFO: count ==251 [2025-01-22 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-21 22:16:05 - End Time 2025-01-22 01:16:05 [2025-01-22 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301562', 'tblTempUsageDetail_20' ) start [2025-01-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301562', 'tblTempUsageDetail_20' ) end [2025-01-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301562', 'tblTempVendorCDR_20' ) start [2025-01-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301562', 'tblTempVendorCDR_20' ) end [2025-01-22 01:16:17] Production.INFO: ProcessCDR(1,14301562,1,1,2) [2025-01-22 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301562', 'tblTempUsageDetail_20' ) start [2025-01-22 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301562', 'tblTempUsageDetail_20' ) end [2025-01-22 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:16:20] Production.INFO: ==6054== Releasing lock... [2025-01-22 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:17:05 [end_date_ymd] => 2025-01-22 01:17:05 [RateCDR] => 1 ) [2025-01-22 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:17:05' and `end` < '2025-01-22 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:17:19] Production.INFO: count ==254 [2025-01-22 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:17:05 - End Time 2025-01-22 01:17:05 [2025-01-22 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301568', 'tblTempUsageDetail_20' ) start [2025-01-22 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301568', 'tblTempUsageDetail_20' ) end [2025-01-22 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301568', 'tblTempVendorCDR_20' ) start [2025-01-22 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301568', 'tblTempVendorCDR_20' ) end [2025-01-22 01:17:19] Production.INFO: ProcessCDR(1,14301568,1,1,2) [2025-01-22 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301568', 'tblTempUsageDetail_20' ) start [2025-01-22 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301568', 'tblTempUsageDetail_20' ) end [2025-01-22 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:17:22] Production.INFO: ==6138== Releasing lock... [2025-01-22 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:18:05 [end_date_ymd] => 2025-01-22 01:18:05 [RateCDR] => 1 ) [2025-01-22 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:18:05' and `end` < '2025-01-22 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:18:18] Production.INFO: count ==252 [2025-01-22 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:18:05 - End Time 2025-01-22 01:18:05 [2025-01-22 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301573', 'tblTempUsageDetail_20' ) start [2025-01-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301573', 'tblTempUsageDetail_20' ) end [2025-01-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301573', 'tblTempVendorCDR_20' ) start [2025-01-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301573', 'tblTempVendorCDR_20' ) end [2025-01-22 01:18:18] Production.INFO: ProcessCDR(1,14301573,1,1,2) [2025-01-22 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301573', 'tblTempUsageDetail_20' ) start [2025-01-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301573', 'tblTempUsageDetail_20' ) end [2025-01-22 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:18:21] Production.INFO: ==6216== Releasing lock... [2025-01-22 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:19:05 [end_date_ymd] => 2025-01-22 01:19:05 [RateCDR] => 1 ) [2025-01-22 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:19:05' and `end` < '2025-01-22 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:19:18] Production.INFO: count ==251 [2025-01-22 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:19:05 - End Time 2025-01-22 01:19:05 [2025-01-22 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301578', 'tblTempUsageDetail_20' ) start [2025-01-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301578', 'tblTempUsageDetail_20' ) end [2025-01-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301578', 'tblTempVendorCDR_20' ) start [2025-01-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301578', 'tblTempVendorCDR_20' ) end [2025-01-22 01:19:18] Production.INFO: ProcessCDR(1,14301578,1,1,2) [2025-01-22 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301578', 'tblTempUsageDetail_20' ) start [2025-01-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301578', 'tblTempUsageDetail_20' ) end [2025-01-22 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:19:21] Production.INFO: ==6297== Releasing lock... [2025-01-22 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:20:06 [end_date_ymd] => 2025-01-22 01:20:06 [RateCDR] => 1 ) [2025-01-22 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:20:06' and `end` < '2025-01-22 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:20:18] Production.INFO: count ==260 [2025-01-22 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:20:06 - End Time 2025-01-22 01:20:06 [2025-01-22 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301584', 'tblTempUsageDetail_20' ) start [2025-01-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301584', 'tblTempUsageDetail_20' ) end [2025-01-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301584', 'tblTempVendorCDR_20' ) start [2025-01-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301584', 'tblTempVendorCDR_20' ) end [2025-01-22 01:20:18] Production.INFO: ProcessCDR(1,14301584,1,1,2) [2025-01-22 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301584', 'tblTempUsageDetail_20' ) start [2025-01-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301584', 'tblTempUsageDetail_20' ) end [2025-01-22 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:20:22] Production.INFO: ==6382== Releasing lock... [2025-01-22 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:21:05 [end_date_ymd] => 2025-01-22 01:21:05 [RateCDR] => 1 ) [2025-01-22 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:21:05' and `end` < '2025-01-22 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:21:18] Production.INFO: count ==276 [2025-01-22 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:21:05 - End Time 2025-01-22 01:21:05 [2025-01-22 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301589', 'tblTempUsageDetail_20' ) start [2025-01-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301589', 'tblTempUsageDetail_20' ) end [2025-01-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301589', 'tblTempVendorCDR_20' ) start [2025-01-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301589', 'tblTempVendorCDR_20' ) end [2025-01-22 01:21:18] Production.INFO: ProcessCDR(1,14301589,1,1,2) [2025-01-22 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301589', 'tblTempUsageDetail_20' ) start [2025-01-22 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301589', 'tblTempUsageDetail_20' ) end [2025-01-22 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:21:21] Production.INFO: ==6464== Releasing lock... [2025-01-22 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:22:05 [end_date_ymd] => 2025-01-22 01:22:05 [RateCDR] => 1 ) [2025-01-22 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:22:05' and `end` < '2025-01-22 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:22:20] Production.INFO: count ==278 [2025-01-22 01:22:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:22:05 - End Time 2025-01-22 01:22:05 [2025-01-22 01:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301594', 'tblTempUsageDetail_20' ) start [2025-01-22 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301594', 'tblTempUsageDetail_20' ) end [2025-01-22 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301594', 'tblTempVendorCDR_20' ) start [2025-01-22 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301594', 'tblTempVendorCDR_20' ) end [2025-01-22 01:22:20] Production.INFO: ProcessCDR(1,14301594,1,1,2) [2025-01-22 01:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301594', 'tblTempUsageDetail_20' ) start [2025-01-22 01:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301594', 'tblTempUsageDetail_20' ) end [2025-01-22 01:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:22:25] Production.INFO: ==6548== Releasing lock... [2025-01-22 01:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:22:25] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:23:05 [end_date_ymd] => 2025-01-22 01:23:05 [RateCDR] => 1 ) [2025-01-22 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:23:05' and `end` < '2025-01-22 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:23:20] Production.INFO: count ==279 [2025-01-22 01:23:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:23:05 - End Time 2025-01-22 01:23:05 [2025-01-22 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301599', 'tblTempUsageDetail_20' ) start [2025-01-22 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301599', 'tblTempUsageDetail_20' ) end [2025-01-22 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301599', 'tblTempVendorCDR_20' ) start [2025-01-22 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301599', 'tblTempVendorCDR_20' ) end [2025-01-22 01:23:20] Production.INFO: ProcessCDR(1,14301599,1,1,2) [2025-01-22 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301599', 'tblTempUsageDetail_20' ) start [2025-01-22 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301599', 'tblTempUsageDetail_20' ) end [2025-01-22 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:23:23] Production.INFO: ==6634== Releasing lock... [2025-01-22 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:24:04 [end_date_ymd] => 2025-01-22 01:24:04 [RateCDR] => 1 ) [2025-01-22 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:24:04' and `end` < '2025-01-22 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:24:18] Production.INFO: count ==279 [2025-01-22 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:24:04 - End Time 2025-01-22 01:24:04 [2025-01-22 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301604', 'tblTempUsageDetail_20' ) start [2025-01-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301604', 'tblTempUsageDetail_20' ) end [2025-01-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301604', 'tblTempVendorCDR_20' ) start [2025-01-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301604', 'tblTempVendorCDR_20' ) end [2025-01-22 01:24:18] Production.INFO: ProcessCDR(1,14301604,1,1,2) [2025-01-22 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301604', 'tblTempUsageDetail_20' ) start [2025-01-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301604', 'tblTempUsageDetail_20' ) end [2025-01-22 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:24:21] Production.INFO: ==6711== Releasing lock... [2025-01-22 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:25:05 [end_date_ymd] => 2025-01-22 01:25:05 [RateCDR] => 1 ) [2025-01-22 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:25:05' and `end` < '2025-01-22 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:25:19] Production.INFO: count ==279 [2025-01-22 01:25:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:25:05 - End Time 2025-01-22 01:25:05 [2025-01-22 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301609', 'tblTempUsageDetail_20' ) start [2025-01-22 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301609', 'tblTempUsageDetail_20' ) end [2025-01-22 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301609', 'tblTempVendorCDR_20' ) start [2025-01-22 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301609', 'tblTempVendorCDR_20' ) end [2025-01-22 01:25:19] Production.INFO: ProcessCDR(1,14301609,1,1,2) [2025-01-22 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301609', 'tblTempUsageDetail_20' ) start [2025-01-22 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301609', 'tblTempUsageDetail_20' ) end [2025-01-22 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:25:22] Production.INFO: ==6796== Releasing lock... [2025-01-22 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:26:05 [end_date_ymd] => 2025-01-22 01:26:05 [RateCDR] => 1 ) [2025-01-22 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:26:05' and `end` < '2025-01-22 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:26:19] Production.INFO: count ==277 [2025-01-22 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:26:05 - End Time 2025-01-22 01:26:05 [2025-01-22 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301614', 'tblTempUsageDetail_20' ) start [2025-01-22 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301614', 'tblTempUsageDetail_20' ) end [2025-01-22 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301614', 'tblTempVendorCDR_20' ) start [2025-01-22 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301614', 'tblTempVendorCDR_20' ) end [2025-01-22 01:26:19] Production.INFO: ProcessCDR(1,14301614,1,1,2) [2025-01-22 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301614', 'tblTempUsageDetail_20' ) start [2025-01-22 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301614', 'tblTempUsageDetail_20' ) end [2025-01-22 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:26:22] Production.INFO: ==6879== Releasing lock... [2025-01-22 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:27:05 [end_date_ymd] => 2025-01-22 01:27:05 [RateCDR] => 1 ) [2025-01-22 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:27:05' and `end` < '2025-01-22 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:27:19] Production.INFO: count ==276 [2025-01-22 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:27:05 - End Time 2025-01-22 01:27:05 [2025-01-22 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301619', 'tblTempUsageDetail_20' ) start [2025-01-22 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301619', 'tblTempUsageDetail_20' ) end [2025-01-22 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301619', 'tblTempVendorCDR_20' ) start [2025-01-22 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301619', 'tblTempVendorCDR_20' ) end [2025-01-22 01:27:19] Production.INFO: ProcessCDR(1,14301619,1,1,2) [2025-01-22 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301619', 'tblTempUsageDetail_20' ) start [2025-01-22 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301619', 'tblTempUsageDetail_20' ) end [2025-01-22 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:27:22] Production.INFO: ==6963== Releasing lock... [2025-01-22 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:28:04 [end_date_ymd] => 2025-01-22 01:28:04 [RateCDR] => 1 ) [2025-01-22 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:28:04' and `end` < '2025-01-22 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:28:18] Production.INFO: count ==274 [2025-01-22 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:28:04 - End Time 2025-01-22 01:28:04 [2025-01-22 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301624', 'tblTempUsageDetail_20' ) start [2025-01-22 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301624', 'tblTempUsageDetail_20' ) end [2025-01-22 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301624', 'tblTempVendorCDR_20' ) start [2025-01-22 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301624', 'tblTempVendorCDR_20' ) end [2025-01-22 01:28:18] Production.INFO: ProcessCDR(1,14301624,1,1,2) [2025-01-22 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301624', 'tblTempUsageDetail_20' ) start [2025-01-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301624', 'tblTempUsageDetail_20' ) end [2025-01-22 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:28:21] Production.INFO: ==7082== Releasing lock... [2025-01-22 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:29:05 [end_date_ymd] => 2025-01-22 01:29:05 [RateCDR] => 1 ) [2025-01-22 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:29:05' and `end` < '2025-01-22 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:29:18] Production.INFO: count ==274 [2025-01-22 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:29:05 - End Time 2025-01-22 01:29:05 [2025-01-22 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301629', 'tblTempUsageDetail_20' ) start [2025-01-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301629', 'tblTempUsageDetail_20' ) end [2025-01-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301629', 'tblTempVendorCDR_20' ) start [2025-01-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301629', 'tblTempVendorCDR_20' ) end [2025-01-22 01:29:18] Production.INFO: ProcessCDR(1,14301629,1,1,2) [2025-01-22 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301629', 'tblTempUsageDetail_20' ) start [2025-01-22 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301629', 'tblTempUsageDetail_20' ) end [2025-01-22 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:29:21] Production.INFO: ==7162== Releasing lock... [2025-01-22 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:30:05 [end_date_ymd] => 2025-01-22 01:30:05 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 22:30:05' and `end` < '2025-01-22 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 ,'') [2025-01-22 01:30:18] Production.INFO: count ==277 [2025-01-22 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:30:05 - End Time 2025-01-22 01:30:05 [2025-01-22 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301635', 'tblTempUsageDetail_20' ) start [2025-01-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301635', 'tblTempUsageDetail_20' ) end [2025-01-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301635', 'tblTempVendorCDR_20' ) start [2025-01-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301635', 'tblTempVendorCDR_20' ) end [2025-01-22 01:30:18] Production.INFO: ProcessCDR(1,14301635,1,1,2) [2025-01-22 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301635', 'tblTempUsageDetail_20' ) start [2025-01-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301635', 'tblTempUsageDetail_20' ) end [2025-01-22 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:30:21] Production.INFO: ==7247== Releasing lock... [2025-01-22 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:30:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:31:05 [end_date_ymd] => 2025-01-22 01:31:05 [RateCDR] => 1 ) [2025-01-22 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:31:05' and `end` < '2025-01-22 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:31:18] Production.INFO: count ==278 [2025-01-22 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:31:05 - End Time 2025-01-22 01:31:05 [2025-01-22 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301640', 'tblTempUsageDetail_20' ) start [2025-01-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301640', 'tblTempUsageDetail_20' ) end [2025-01-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301640', 'tblTempVendorCDR_20' ) start [2025-01-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301640', 'tblTempVendorCDR_20' ) end [2025-01-22 01:31:18] Production.INFO: ProcessCDR(1,14301640,1,1,2) [2025-01-22 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301640', 'tblTempUsageDetail_20' ) start [2025-01-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301640', 'tblTempUsageDetail_20' ) end [2025-01-22 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:31:21] Production.INFO: ==7335== Releasing lock... [2025-01-22 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:31:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:32:06 [end_date_ymd] => 2025-01-22 01:32:06 [RateCDR] => 1 ) [2025-01-22 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:32:06' and `end` < '2025-01-22 01:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:32:19] Production.INFO: count ==277 [2025-01-22 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:32:06 - End Time 2025-01-22 01:32:06 [2025-01-22 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301645', 'tblTempUsageDetail_20' ) start [2025-01-22 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301645', 'tblTempUsageDetail_20' ) end [2025-01-22 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301645', 'tblTempVendorCDR_20' ) start [2025-01-22 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301645', 'tblTempVendorCDR_20' ) end [2025-01-22 01:32:19] Production.INFO: ProcessCDR(1,14301645,1,1,2) [2025-01-22 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301645', 'tblTempUsageDetail_20' ) start [2025-01-22 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301645', 'tblTempUsageDetail_20' ) end [2025-01-22 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:32:22] Production.INFO: ==7418== Releasing lock... [2025-01-22 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:33:05 [end_date_ymd] => 2025-01-22 01:33:05 [RateCDR] => 1 ) [2025-01-22 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:33:05' and `end` < '2025-01-22 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:33:18] Production.INFO: count ==277 [2025-01-22 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:33:05 - End Time 2025-01-22 01:33:05 [2025-01-22 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301650', 'tblTempUsageDetail_20' ) start [2025-01-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301650', 'tblTempUsageDetail_20' ) end [2025-01-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301650', 'tblTempVendorCDR_20' ) start [2025-01-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301650', 'tblTempVendorCDR_20' ) end [2025-01-22 01:33:18] Production.INFO: ProcessCDR(1,14301650,1,1,2) [2025-01-22 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301650', 'tblTempUsageDetail_20' ) start [2025-01-22 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301650', 'tblTempUsageDetail_20' ) end [2025-01-22 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:33:22] Production.INFO: ==7498== Releasing lock... [2025-01-22 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:34:06 [end_date_ymd] => 2025-01-22 01:34:06 [RateCDR] => 1 ) [2025-01-22 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:34:06' and `end` < '2025-01-22 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:34:20] Production.INFO: count ==273 [2025-01-22 01:34:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:34:06 - End Time 2025-01-22 01:34:06 [2025-01-22 01:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301655', 'tblTempUsageDetail_20' ) start [2025-01-22 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301655', 'tblTempUsageDetail_20' ) end [2025-01-22 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301655', 'tblTempVendorCDR_20' ) start [2025-01-22 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301655', 'tblTempVendorCDR_20' ) end [2025-01-22 01:34:20] Production.INFO: ProcessCDR(1,14301655,1,1,2) [2025-01-22 01:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301655', 'tblTempUsageDetail_20' ) start [2025-01-22 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301655', 'tblTempUsageDetail_20' ) end [2025-01-22 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:34:23] Production.INFO: ==7579== Releasing lock... [2025-01-22 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:34:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:35:06 [end_date_ymd] => 2025-01-22 01:35:06 [RateCDR] => 1 ) [2025-01-22 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:35:06' and `end` < '2025-01-22 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:35:19] Production.INFO: count ==272 [2025-01-22 01:35:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:35:06 - End Time 2025-01-22 01:35:06 [2025-01-22 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301660', 'tblTempUsageDetail_20' ) start [2025-01-22 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301660', 'tblTempUsageDetail_20' ) end [2025-01-22 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301660', 'tblTempVendorCDR_20' ) start [2025-01-22 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301660', 'tblTempVendorCDR_20' ) end [2025-01-22 01:35:19] Production.INFO: ProcessCDR(1,14301660,1,1,2) [2025-01-22 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301660', 'tblTempUsageDetail_20' ) start [2025-01-22 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301660', 'tblTempUsageDetail_20' ) end [2025-01-22 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:35:22] Production.INFO: ==7666== Releasing lock... [2025-01-22 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:35:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:36:06 [end_date_ymd] => 2025-01-22 01:36:06 [RateCDR] => 1 ) [2025-01-22 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:36:06' and `end` < '2025-01-22 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:36:19] Production.INFO: count ==270 [2025-01-22 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:36:06 - End Time 2025-01-22 01:36:06 [2025-01-22 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301665', 'tblTempUsageDetail_20' ) start [2025-01-22 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301665', 'tblTempUsageDetail_20' ) end [2025-01-22 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301665', 'tblTempVendorCDR_20' ) start [2025-01-22 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301665', 'tblTempVendorCDR_20' ) end [2025-01-22 01:36:19] Production.INFO: ProcessCDR(1,14301665,1,1,2) [2025-01-22 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301665', 'tblTempUsageDetail_20' ) start [2025-01-22 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301665', 'tblTempUsageDetail_20' ) end [2025-01-22 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:36:23] Production.INFO: ==7758== Releasing lock... [2025-01-22 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:36:23] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:37:06 [end_date_ymd] => 2025-01-22 01:37:06 [RateCDR] => 1 ) [2025-01-22 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:37:06' and `end` < '2025-01-22 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:37:19] Production.INFO: count ==269 [2025-01-22 01:37:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:37:06 - End Time 2025-01-22 01:37:06 [2025-01-22 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301670', 'tblTempUsageDetail_20' ) start [2025-01-22 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301670', 'tblTempUsageDetail_20' ) end [2025-01-22 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301670', 'tblTempVendorCDR_20' ) start [2025-01-22 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301670', 'tblTempVendorCDR_20' ) end [2025-01-22 01:37:19] Production.INFO: ProcessCDR(1,14301670,1,1,2) [2025-01-22 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301670', 'tblTempUsageDetail_20' ) start [2025-01-22 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301670', 'tblTempUsageDetail_20' ) end [2025-01-22 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:37:22] Production.INFO: ==7836== Releasing lock... [2025-01-22 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:37:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:38:06 [end_date_ymd] => 2025-01-22 01:38:06 [RateCDR] => 1 ) [2025-01-22 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:38:06' and `end` < '2025-01-22 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:38:19] Production.INFO: count ==269 [2025-01-22 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:38:06 - End Time 2025-01-22 01:38:06 [2025-01-22 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301675', 'tblTempUsageDetail_20' ) start [2025-01-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301675', 'tblTempUsageDetail_20' ) end [2025-01-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301675', 'tblTempVendorCDR_20' ) start [2025-01-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301675', 'tblTempVendorCDR_20' ) end [2025-01-22 01:38:19] Production.INFO: ProcessCDR(1,14301675,1,1,2) [2025-01-22 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301675', 'tblTempUsageDetail_20' ) start [2025-01-22 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301675', 'tblTempUsageDetail_20' ) end [2025-01-22 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:38:22] Production.INFO: ==7926== Releasing lock... [2025-01-22 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:39:05 [end_date_ymd] => 2025-01-22 01:39:05 [RateCDR] => 1 ) [2025-01-22 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:39:05' and `end` < '2025-01-22 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:39:18] Production.INFO: count ==269 [2025-01-22 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:39:05 - End Time 2025-01-22 01:39:05 [2025-01-22 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301680', 'tblTempUsageDetail_20' ) start [2025-01-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301680', 'tblTempUsageDetail_20' ) end [2025-01-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301680', 'tblTempVendorCDR_20' ) start [2025-01-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301680', 'tblTempVendorCDR_20' ) end [2025-01-22 01:39:18] Production.INFO: ProcessCDR(1,14301680,1,1,2) [2025-01-22 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301680', 'tblTempUsageDetail_20' ) start [2025-01-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301680', 'tblTempUsageDetail_20' ) end [2025-01-22 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:39:22] Production.INFO: ==8011== Releasing lock... [2025-01-22 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:39:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:40:06 [end_date_ymd] => 2025-01-22 01:40:06 [RateCDR] => 1 ) [2025-01-22 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:40:06' and `end` < '2025-01-22 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:40:20] Production.INFO: count ==274 [2025-01-22 01:40:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:40:06 - End Time 2025-01-22 01:40:06 [2025-01-22 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301686', 'tblTempUsageDetail_20' ) start [2025-01-22 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301686', 'tblTempUsageDetail_20' ) end [2025-01-22 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301686', 'tblTempVendorCDR_20' ) start [2025-01-22 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301686', 'tblTempVendorCDR_20' ) end [2025-01-22 01:40:20] Production.INFO: ProcessCDR(1,14301686,1,1,2) [2025-01-22 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301686', 'tblTempUsageDetail_20' ) start [2025-01-22 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301686', 'tblTempUsageDetail_20' ) end [2025-01-22 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:40:23] Production.INFO: ==8100== Releasing lock... [2025-01-22 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:40:23] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:41:06 [end_date_ymd] => 2025-01-22 01:41:06 [RateCDR] => 1 ) [2025-01-22 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:41:06' and `end` < '2025-01-22 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:41:18] Production.INFO: count ==273 [2025-01-22 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:41:06 - End Time 2025-01-22 01:41:06 [2025-01-22 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301691', 'tblTempUsageDetail_20' ) start [2025-01-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301691', 'tblTempUsageDetail_20' ) end [2025-01-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301691', 'tblTempVendorCDR_20' ) start [2025-01-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301691', 'tblTempVendorCDR_20' ) end [2025-01-22 01:41:18] Production.INFO: ProcessCDR(1,14301691,1,1,2) [2025-01-22 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301691', 'tblTempUsageDetail_20' ) start [2025-01-22 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301691', 'tblTempUsageDetail_20' ) end [2025-01-22 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:41:22] Production.INFO: ==8185== Releasing lock... [2025-01-22 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:41:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:42:05 [end_date_ymd] => 2025-01-22 01:42:05 [RateCDR] => 1 ) [2025-01-22 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:42:05' and `end` < '2025-01-22 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:42:18] Production.INFO: count ==273 [2025-01-22 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:42:05 - End Time 2025-01-22 01:42:05 [2025-01-22 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301696', 'tblTempUsageDetail_20' ) start [2025-01-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301696', 'tblTempUsageDetail_20' ) end [2025-01-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301696', 'tblTempVendorCDR_20' ) start [2025-01-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301696', 'tblTempVendorCDR_20' ) end [2025-01-22 01:42:18] Production.INFO: ProcessCDR(1,14301696,1,1,2) [2025-01-22 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301696', 'tblTempUsageDetail_20' ) start [2025-01-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301696', 'tblTempUsageDetail_20' ) end [2025-01-22 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:42:21] Production.INFO: ==8272== Releasing lock... [2025-01-22 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:42:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:43:06 [end_date_ymd] => 2025-01-22 01:43:06 [RateCDR] => 1 ) [2025-01-22 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:43:06' and `end` < '2025-01-22 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:43:18] Production.INFO: count ==270 [2025-01-22 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:43:06 - End Time 2025-01-22 01:43:06 [2025-01-22 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301701', 'tblTempUsageDetail_20' ) start [2025-01-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301701', 'tblTempUsageDetail_20' ) end [2025-01-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301701', 'tblTempVendorCDR_20' ) start [2025-01-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301701', 'tblTempVendorCDR_20' ) end [2025-01-22 01:43:18] Production.INFO: ProcessCDR(1,14301701,1,1,2) [2025-01-22 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301701', 'tblTempUsageDetail_20' ) start [2025-01-22 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301701', 'tblTempUsageDetail_20' ) end [2025-01-22 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:43:22] Production.INFO: ==8353== Releasing lock... [2025-01-22 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:44:06 [end_date_ymd] => 2025-01-22 01:44:06 [RateCDR] => 1 ) [2025-01-22 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:44:06' and `end` < '2025-01-22 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:44:18] Production.INFO: count ==270 [2025-01-22 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:44:06 - End Time 2025-01-22 01:44:06 [2025-01-22 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301706', 'tblTempUsageDetail_20' ) start [2025-01-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301706', 'tblTempUsageDetail_20' ) end [2025-01-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301706', 'tblTempVendorCDR_20' ) start [2025-01-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301706', 'tblTempVendorCDR_20' ) end [2025-01-22 01:44:18] Production.INFO: ProcessCDR(1,14301706,1,1,2) [2025-01-22 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301706', 'tblTempUsageDetail_20' ) start [2025-01-22 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301706', 'tblTempUsageDetail_20' ) end [2025-01-22 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:44:22] Production.INFO: ==8475== Releasing lock... [2025-01-22 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:44:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:45:06 [end_date_ymd] => 2025-01-22 01:45:06 [RateCDR] => 1 ) [2025-01-22 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:45:06' and `end` < '2025-01-22 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:45:20] Production.INFO: count ==270 [2025-01-22 01:45:20] Production.ERROR: pbx CDR StartTime 2025-01-21 22:45:06 - End Time 2025-01-22 01:45:06 [2025-01-22 01:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301711', 'tblTempUsageDetail_20' ) start [2025-01-22 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301711', 'tblTempUsageDetail_20' ) end [2025-01-22 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301711', 'tblTempVendorCDR_20' ) start [2025-01-22 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301711', 'tblTempVendorCDR_20' ) end [2025-01-22 01:45:20] Production.INFO: ProcessCDR(1,14301711,1,1,2) [2025-01-22 01:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301711', 'tblTempUsageDetail_20' ) start [2025-01-22 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301711', 'tblTempUsageDetail_20' ) end [2025-01-22 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:45:23] Production.INFO: ==8561== Releasing lock... [2025-01-22 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:45:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:46:06 [end_date_ymd] => 2025-01-22 01:46:06 [RateCDR] => 1 ) [2025-01-22 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:46:06' and `end` < '2025-01-22 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:46:18] Production.INFO: count ==270 [2025-01-22 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:46:06 - End Time 2025-01-22 01:46:06 [2025-01-22 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301716', 'tblTempUsageDetail_20' ) start [2025-01-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301716', 'tblTempUsageDetail_20' ) end [2025-01-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301716', 'tblTempVendorCDR_20' ) start [2025-01-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301716', 'tblTempVendorCDR_20' ) end [2025-01-22 01:46:18] Production.INFO: ProcessCDR(1,14301716,1,1,2) [2025-01-22 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301716', 'tblTempUsageDetail_20' ) start [2025-01-22 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301716', 'tblTempUsageDetail_20' ) end [2025-01-22 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:46:22] Production.INFO: ==8646== Releasing lock... [2025-01-22 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:47:06 [end_date_ymd] => 2025-01-22 01:47:06 [RateCDR] => 1 ) [2025-01-22 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:47:06' and `end` < '2025-01-22 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:47:19] Production.INFO: count ==270 [2025-01-22 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:47:06 - End Time 2025-01-22 01:47:06 [2025-01-22 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301721', 'tblTempUsageDetail_20' ) start [2025-01-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301721', 'tblTempUsageDetail_20' ) end [2025-01-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301721', 'tblTempVendorCDR_20' ) start [2025-01-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301721', 'tblTempVendorCDR_20' ) end [2025-01-22 01:47:19] Production.INFO: ProcessCDR(1,14301721,1,1,2) [2025-01-22 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301721', 'tblTempUsageDetail_20' ) start [2025-01-22 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301721', 'tblTempUsageDetail_20' ) end [2025-01-22 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:47:22] Production.INFO: ==8730== Releasing lock... [2025-01-22 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:48:06 [end_date_ymd] => 2025-01-22 01:48:06 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-21 22:48:06' and `end` < '2025-01-22 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 ,'') [2025-01-22 01:48:18] Production.INFO: count ==270 [2025-01-22 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:48:06 - End Time 2025-01-22 01:48:06 [2025-01-22 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301726', 'tblTempUsageDetail_20' ) start [2025-01-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301726', 'tblTempUsageDetail_20' ) end [2025-01-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301726', 'tblTempVendorCDR_20' ) start [2025-01-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301726', 'tblTempVendorCDR_20' ) end [2025-01-22 01:48:18] Production.INFO: ProcessCDR(1,14301726,1,1,2) [2025-01-22 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301726', 'tblTempUsageDetail_20' ) start [2025-01-22 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301726', 'tblTempUsageDetail_20' ) end [2025-01-22 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:48:22] Production.INFO: ==8817== Releasing lock... [2025-01-22 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:49:06 [end_date_ymd] => 2025-01-22 01:49:06 [RateCDR] => 1 ) [2025-01-22 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:49:06' and `end` < '2025-01-22 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:49:19] Production.INFO: count ==270 [2025-01-22 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:49:06 - End Time 2025-01-22 01:49:06 [2025-01-22 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301731', 'tblTempUsageDetail_20' ) start [2025-01-22 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301731', 'tblTempUsageDetail_20' ) end [2025-01-22 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301731', 'tblTempVendorCDR_20' ) start [2025-01-22 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301731', 'tblTempVendorCDR_20' ) end [2025-01-22 01:49:19] Production.INFO: ProcessCDR(1,14301731,1,1,2) [2025-01-22 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301731', 'tblTempUsageDetail_20' ) start [2025-01-22 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301731', 'tblTempUsageDetail_20' ) end [2025-01-22 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:49:23] Production.INFO: ==8904== Releasing lock... [2025-01-22 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:49:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:50:06 [end_date_ymd] => 2025-01-22 01:50:06 [RateCDR] => 1 ) [2025-01-22 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:50:06' and `end` < '2025-01-22 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:50:19] Production.INFO: count ==277 [2025-01-22 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:50:06 - End Time 2025-01-22 01:50:06 [2025-01-22 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301737', 'tblTempUsageDetail_20' ) start [2025-01-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301737', 'tblTempUsageDetail_20' ) end [2025-01-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301737', 'tblTempVendorCDR_20' ) start [2025-01-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301737', 'tblTempVendorCDR_20' ) end [2025-01-22 01:50:19] Production.INFO: ProcessCDR(1,14301737,1,1,2) [2025-01-22 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301737', 'tblTempUsageDetail_20' ) start [2025-01-22 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301737', 'tblTempUsageDetail_20' ) end [2025-01-22 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:50:24] Production.INFO: ==8990== Releasing lock... [2025-01-22 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:50:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:51:05 [end_date_ymd] => 2025-01-22 01:51:05 [RateCDR] => 1 ) [2025-01-22 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:51:05' and `end` < '2025-01-22 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:51:18] Production.INFO: count ==277 [2025-01-22 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:51:05 - End Time 2025-01-22 01:51:05 [2025-01-22 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301742', 'tblTempUsageDetail_20' ) start [2025-01-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301742', 'tblTempUsageDetail_20' ) end [2025-01-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301742', 'tblTempVendorCDR_20' ) start [2025-01-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301742', 'tblTempVendorCDR_20' ) end [2025-01-22 01:51:18] Production.INFO: ProcessCDR(1,14301742,1,1,2) [2025-01-22 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301742', 'tblTempUsageDetail_20' ) start [2025-01-22 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301742', 'tblTempUsageDetail_20' ) end [2025-01-22 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:51:22] Production.INFO: ==9083== Releasing lock... [2025-01-22 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:52:06 [end_date_ymd] => 2025-01-22 01:52:06 [RateCDR] => 1 ) [2025-01-22 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:52:06' and `end` < '2025-01-22 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:52:19] Production.INFO: count ==275 [2025-01-22 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:52:06 - End Time 2025-01-22 01:52:06 [2025-01-22 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301747', 'tblTempUsageDetail_20' ) start [2025-01-22 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301747', 'tblTempUsageDetail_20' ) end [2025-01-22 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301747', 'tblTempVendorCDR_20' ) start [2025-01-22 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301747', 'tblTempVendorCDR_20' ) end [2025-01-22 01:52:19] Production.INFO: ProcessCDR(1,14301747,1,1,2) [2025-01-22 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301747', 'tblTempUsageDetail_20' ) start [2025-01-22 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301747', 'tblTempUsageDetail_20' ) end [2025-01-22 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:52:22] Production.INFO: ==9166== Releasing lock... [2025-01-22 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:53:05 [end_date_ymd] => 2025-01-22 01:53:05 [RateCDR] => 1 ) [2025-01-22 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:53:05' and `end` < '2025-01-22 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:53:17] Production.INFO: count ==275 [2025-01-22 01:53:17] Production.ERROR: pbx CDR StartTime 2025-01-21 22:53:05 - End Time 2025-01-22 01:53:05 [2025-01-22 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301752', 'tblTempUsageDetail_20' ) start [2025-01-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301752', 'tblTempUsageDetail_20' ) end [2025-01-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301752', 'tblTempVendorCDR_20' ) start [2025-01-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301752', 'tblTempVendorCDR_20' ) end [2025-01-22 01:53:17] Production.INFO: ProcessCDR(1,14301752,1,1,2) [2025-01-22 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301752', 'tblTempUsageDetail_20' ) start [2025-01-22 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301752', 'tblTempUsageDetail_20' ) end [2025-01-22 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:53:21] Production.INFO: ==9249== Releasing lock... [2025-01-22 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:54:06 [end_date_ymd] => 2025-01-22 01:54:06 [RateCDR] => 1 ) [2025-01-22 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:54:06' and `end` < '2025-01-22 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:54:18] Production.INFO: count ==264 [2025-01-22 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:54:06 - End Time 2025-01-22 01:54:06 [2025-01-22 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301757', 'tblTempUsageDetail_20' ) start [2025-01-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301757', 'tblTempUsageDetail_20' ) end [2025-01-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301757', 'tblTempVendorCDR_20' ) start [2025-01-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301757', 'tblTempVendorCDR_20' ) end [2025-01-22 01:54:18] Production.INFO: ProcessCDR(1,14301757,1,1,2) [2025-01-22 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301757', 'tblTempUsageDetail_20' ) start [2025-01-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301757', 'tblTempUsageDetail_20' ) end [2025-01-22 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:54:22] Production.INFO: ==9327== Releasing lock... [2025-01-22 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:55:05 [end_date_ymd] => 2025-01-22 01:55:05 [RateCDR] => 1 ) [2025-01-22 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:55:05' and `end` < '2025-01-22 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:55:19] Production.INFO: count ==263 [2025-01-22 01:55:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:55:05 - End Time 2025-01-22 01:55:05 [2025-01-22 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301762', 'tblTempUsageDetail_20' ) start [2025-01-22 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301762', 'tblTempUsageDetail_20' ) end [2025-01-22 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301762', 'tblTempVendorCDR_20' ) start [2025-01-22 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301762', 'tblTempVendorCDR_20' ) end [2025-01-22 01:55:19] Production.INFO: ProcessCDR(1,14301762,1,1,2) [2025-01-22 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301762', 'tblTempUsageDetail_20' ) start [2025-01-22 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301762', 'tblTempUsageDetail_20' ) end [2025-01-22 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:55:23] Production.INFO: ==9405== Releasing lock... [2025-01-22 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:55:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:56:06 [end_date_ymd] => 2025-01-22 01:56:06 [RateCDR] => 1 ) [2025-01-22 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:56:06' and `end` < '2025-01-22 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:56:19] Production.INFO: count ==257 [2025-01-22 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-21 22:56:06 - End Time 2025-01-22 01:56:06 [2025-01-22 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301767', 'tblTempUsageDetail_20' ) start [2025-01-22 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301767', 'tblTempUsageDetail_20' ) end [2025-01-22 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301767', 'tblTempVendorCDR_20' ) start [2025-01-22 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301767', 'tblTempVendorCDR_20' ) end [2025-01-22 01:56:19] Production.INFO: ProcessCDR(1,14301767,1,1,2) [2025-01-22 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301767', 'tblTempUsageDetail_20' ) start [2025-01-22 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301767', 'tblTempUsageDetail_20' ) end [2025-01-22 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:56:22] Production.INFO: ==9486== Releasing lock... [2025-01-22 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:57:05 [end_date_ymd] => 2025-01-22 01:57:05 [RateCDR] => 1 ) [2025-01-22 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:57:05' and `end` < '2025-01-22 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:57:18] Production.INFO: count ==253 [2025-01-22 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:57:05 - End Time 2025-01-22 01:57:05 [2025-01-22 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301771', 'tblTempUsageDetail_20' ) start [2025-01-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301771', 'tblTempUsageDetail_20' ) end [2025-01-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301771', 'tblTempVendorCDR_20' ) start [2025-01-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301771', 'tblTempVendorCDR_20' ) end [2025-01-22 01:57:18] Production.INFO: ProcessCDR(1,14301771,1,1,2) [2025-01-22 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301771', 'tblTempUsageDetail_20' ) start [2025-01-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301771', 'tblTempUsageDetail_20' ) end [2025-01-22 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:57:21] Production.INFO: ==9562== Releasing lock... [2025-01-22 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:58:06 [end_date_ymd] => 2025-01-22 01:58:06 [RateCDR] => 1 ) [2025-01-22 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:58:06' and `end` < '2025-01-22 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:58:18] Production.INFO: count ==253 [2025-01-22 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:58:06 - End Time 2025-01-22 01:58:06 [2025-01-22 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301777', 'tblTempUsageDetail_20' ) start [2025-01-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301777', 'tblTempUsageDetail_20' ) end [2025-01-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301777', 'tblTempVendorCDR_20' ) start [2025-01-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301777', 'tblTempVendorCDR_20' ) end [2025-01-22 01:58:18] Production.INFO: ProcessCDR(1,14301777,1,1,2) [2025-01-22 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301777', 'tblTempUsageDetail_20' ) start [2025-01-22 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301777', 'tblTempUsageDetail_20' ) end [2025-01-22 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:58:22] Production.INFO: ==9638== Releasing lock... [2025-01-22 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 22:59:05 [end_date_ymd] => 2025-01-22 01:59:05 [RateCDR] => 1 ) [2025-01-22 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 22:59:05' and `end` < '2025-01-22 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 01:59:18] Production.INFO: count ==252 [2025-01-22 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-21 22:59:05 - End Time 2025-01-22 01:59:05 [2025-01-22 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301782', 'tblTempUsageDetail_20' ) start [2025-01-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301782', 'tblTempUsageDetail_20' ) end [2025-01-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301782', 'tblTempVendorCDR_20' ) start [2025-01-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301782', 'tblTempVendorCDR_20' ) end [2025-01-22 01:59:18] Production.INFO: ProcessCDR(1,14301782,1,1,2) [2025-01-22 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301782', 'tblTempUsageDetail_20' ) start [2025-01-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301782', 'tblTempUsageDetail_20' ) end [2025-01-22 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 01:59:21] Production.INFO: ==9753== Releasing lock... [2025-01-22 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 01:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:00:08 [end_date_ymd] => 2025-01-22 02:00:08 [RateCDR] => 1 ) [2025-01-22 02:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:00:08' and `end` < '2025-01-22 02:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:00:20] Production.INFO: count ==258 [2025-01-22 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-21 23:00:08 - End Time 2025-01-22 02:00:08 [2025-01-22 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301788', 'tblTempUsageDetail_20' ) start [2025-01-22 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301788', 'tblTempUsageDetail_20' ) end [2025-01-22 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301788', 'tblTempVendorCDR_20' ) start [2025-01-22 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301788', 'tblTempVendorCDR_20' ) end [2025-01-22 02:00:20] Production.INFO: ProcessCDR(1,14301788,1,1,2) [2025-01-22 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301788', 'tblTempUsageDetail_20' ) start [2025-01-22 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301788', 'tblTempUsageDetail_20' ) end [2025-01-22 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:00:24] Production.INFO: ==9835== Releasing lock... [2025-01-22 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:00:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:01:05 [end_date_ymd] => 2025-01-22 02:01:05 [RateCDR] => 1 ) [2025-01-22 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:01:05' and `end` < '2025-01-22 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:01:18] Production.INFO: count ==255 [2025-01-22 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:01:05 - End Time 2025-01-22 02:01:05 [2025-01-22 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301793', 'tblTempUsageDetail_20' ) start [2025-01-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301793', 'tblTempUsageDetail_20' ) end [2025-01-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301793', 'tblTempVendorCDR_20' ) start [2025-01-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301793', 'tblTempVendorCDR_20' ) end [2025-01-22 02:01:18] Production.INFO: ProcessCDR(1,14301793,1,1,2) [2025-01-22 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301793', 'tblTempUsageDetail_20' ) start [2025-01-22 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301793', 'tblTempUsageDetail_20' ) end [2025-01-22 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:01:22] Production.INFO: ==10013== Releasing lock... [2025-01-22 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:02:05 [end_date_ymd] => 2025-01-22 02:02:05 [RateCDR] => 1 ) [2025-01-22 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:02:05' and `end` < '2025-01-22 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:02:18] Production.INFO: count ==253 [2025-01-22 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:02:05 - End Time 2025-01-22 02:02:05 [2025-01-22 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301798', 'tblTempUsageDetail_20' ) start [2025-01-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301798', 'tblTempUsageDetail_20' ) end [2025-01-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301798', 'tblTempVendorCDR_20' ) start [2025-01-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301798', 'tblTempVendorCDR_20' ) end [2025-01-22 02:02:18] Production.INFO: ProcessCDR(1,14301798,1,1,2) [2025-01-22 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301798', 'tblTempUsageDetail_20' ) start [2025-01-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301798', 'tblTempUsageDetail_20' ) end [2025-01-22 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:02:21] Production.INFO: ==10087== Releasing lock... [2025-01-22 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:03:05 [end_date_ymd] => 2025-01-22 02:03:05 [RateCDR] => 1 ) [2025-01-22 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:03:05' and `end` < '2025-01-22 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:03:18] Production.INFO: count ==252 [2025-01-22 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:03:05 - End Time 2025-01-22 02:03:05 [2025-01-22 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301803', 'tblTempUsageDetail_20' ) start [2025-01-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301803', 'tblTempUsageDetail_20' ) end [2025-01-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301803', 'tblTempVendorCDR_20' ) start [2025-01-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301803', 'tblTempVendorCDR_20' ) end [2025-01-22 02:03:18] Production.INFO: ProcessCDR(1,14301803,1,1,2) [2025-01-22 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301803', 'tblTempUsageDetail_20' ) start [2025-01-22 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301803', 'tblTempUsageDetail_20' ) end [2025-01-22 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:03:22] Production.INFO: ==10168== Releasing lock... [2025-01-22 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:04:05 [end_date_ymd] => 2025-01-22 02:04:05 [RateCDR] => 1 ) [2025-01-22 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:04:05' and `end` < '2025-01-22 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:04:18] Production.INFO: count ==252 [2025-01-22 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:04:05 - End Time 2025-01-22 02:04:05 [2025-01-22 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301808', 'tblTempUsageDetail_20' ) start [2025-01-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301808', 'tblTempUsageDetail_20' ) end [2025-01-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301808', 'tblTempVendorCDR_20' ) start [2025-01-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301808', 'tblTempVendorCDR_20' ) end [2025-01-22 02:04:18] Production.INFO: ProcessCDR(1,14301808,1,1,2) [2025-01-22 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301808', 'tblTempUsageDetail_20' ) start [2025-01-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301808', 'tblTempUsageDetail_20' ) end [2025-01-22 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:04:22] Production.INFO: ==10241== Releasing lock... [2025-01-22 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:05:05 [end_date_ymd] => 2025-01-22 02:05:05 [RateCDR] => 1 ) [2025-01-22 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:05:05' and `end` < '2025-01-22 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:05:17] Production.INFO: count ==253 [2025-01-22 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:05:05 - End Time 2025-01-22 02:05:05 [2025-01-22 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301813', 'tblTempUsageDetail_20' ) start [2025-01-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301813', 'tblTempUsageDetail_20' ) end [2025-01-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301813', 'tblTempVendorCDR_20' ) start [2025-01-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301813', 'tblTempVendorCDR_20' ) end [2025-01-22 02:05:17] Production.INFO: ProcessCDR(1,14301813,1,1,2) [2025-01-22 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301813', 'tblTempUsageDetail_20' ) start [2025-01-22 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301813', 'tblTempUsageDetail_20' ) end [2025-01-22 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:05:22] Production.INFO: ==10316== Releasing lock... [2025-01-22 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:06:05 [end_date_ymd] => 2025-01-22 02:06:05 [RateCDR] => 1 ) [2025-01-22 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:06:05' and `end` < '2025-01-22 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:06:18] Production.INFO: count ==249 [2025-01-22 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:06:05 - End Time 2025-01-22 02:06:05 [2025-01-22 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301818', 'tblTempUsageDetail_20' ) start [2025-01-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301818', 'tblTempUsageDetail_20' ) end [2025-01-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301818', 'tblTempVendorCDR_20' ) start [2025-01-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301818', 'tblTempVendorCDR_20' ) end [2025-01-22 02:06:18] Production.INFO: ProcessCDR(1,14301818,1,1,2) [2025-01-22 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301818', 'tblTempUsageDetail_20' ) start [2025-01-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301818', 'tblTempUsageDetail_20' ) end [2025-01-22 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:06:21] Production.INFO: ==10394== Releasing lock... [2025-01-22 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:07:05 [end_date_ymd] => 2025-01-22 02:07:05 [RateCDR] => 1 ) [2025-01-22 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:07:05' and `end` < '2025-01-22 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:07:19] Production.INFO: count ==250 [2025-01-22 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:07:05 - End Time 2025-01-22 02:07:05 [2025-01-22 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301823', 'tblTempUsageDetail_20' ) start [2025-01-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301823', 'tblTempUsageDetail_20' ) end [2025-01-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301823', 'tblTempVendorCDR_20' ) start [2025-01-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301823', 'tblTempVendorCDR_20' ) end [2025-01-22 02:07:19] Production.INFO: ProcessCDR(1,14301823,1,1,2) [2025-01-22 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301823', 'tblTempUsageDetail_20' ) start [2025-01-22 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301823', 'tblTempUsageDetail_20' ) end [2025-01-22 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:07:22] Production.INFO: ==10476== Releasing lock... [2025-01-22 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:08:05 [end_date_ymd] => 2025-01-22 02:08:05 [RateCDR] => 1 ) [2025-01-22 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:08:05' and `end` < '2025-01-22 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:08:18] Production.INFO: count ==249 [2025-01-22 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:08:05 - End Time 2025-01-22 02:08:05 [2025-01-22 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301828', 'tblTempUsageDetail_20' ) start [2025-01-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301828', 'tblTempUsageDetail_20' ) end [2025-01-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301828', 'tblTempVendorCDR_20' ) start [2025-01-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301828', 'tblTempVendorCDR_20' ) end [2025-01-22 02:08:18] Production.INFO: ProcessCDR(1,14301828,1,1,2) [2025-01-22 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301828', 'tblTempUsageDetail_20' ) start [2025-01-22 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301828', 'tblTempUsageDetail_20' ) end [2025-01-22 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:08:23] Production.INFO: ==10546== Releasing lock... [2025-01-22 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:09:06 [end_date_ymd] => 2025-01-22 02:09:06 [RateCDR] => 1 ) [2025-01-22 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:09:06' and `end` < '2025-01-22 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:09:19] Production.INFO: count ==249 [2025-01-22 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:09:06 - End Time 2025-01-22 02:09:06 [2025-01-22 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301833', 'tblTempUsageDetail_20' ) start [2025-01-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301833', 'tblTempUsageDetail_20' ) end [2025-01-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301833', 'tblTempVendorCDR_20' ) start [2025-01-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301833', 'tblTempVendorCDR_20' ) end [2025-01-22 02:09:19] Production.INFO: ProcessCDR(1,14301833,1,1,2) [2025-01-22 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301833', 'tblTempUsageDetail_20' ) start [2025-01-22 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301833', 'tblTempUsageDetail_20' ) end [2025-01-22 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:09:22] Production.INFO: ==10625== Releasing lock... [2025-01-22 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:10:05 [end_date_ymd] => 2025-01-22 02:10:05 [RateCDR] => 1 ) [2025-01-22 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:10:05' and `end` < '2025-01-22 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:10:18] Production.INFO: count ==265 [2025-01-22 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:10:05 - End Time 2025-01-22 02:10:05 [2025-01-22 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301838', 'tblTempUsageDetail_20' ) start [2025-01-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301838', 'tblTempUsageDetail_20' ) end [2025-01-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301838', 'tblTempVendorCDR_20' ) start [2025-01-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301838', 'tblTempVendorCDR_20' ) end [2025-01-22 02:10:18] Production.INFO: ProcessCDR(1,14301838,1,1,2) [2025-01-22 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301838', 'tblTempUsageDetail_20' ) start [2025-01-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301838', 'tblTempUsageDetail_20' ) end [2025-01-22 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:10:21] Production.INFO: ==10701== Releasing lock... [2025-01-22 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:11:05 [end_date_ymd] => 2025-01-22 02:11:05 [RateCDR] => 1 ) [2025-01-22 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:11:05' and `end` < '2025-01-22 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:11:18] Production.INFO: count ==264 [2025-01-22 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:11:05 - End Time 2025-01-22 02:11:05 [2025-01-22 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301844', 'tblTempUsageDetail_20' ) start [2025-01-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301844', 'tblTempUsageDetail_20' ) end [2025-01-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301844', 'tblTempVendorCDR_20' ) start [2025-01-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301844', 'tblTempVendorCDR_20' ) end [2025-01-22 02:11:18] Production.INFO: ProcessCDR(1,14301844,1,1,2) [2025-01-22 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301844', 'tblTempUsageDetail_20' ) start [2025-01-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301844', 'tblTempUsageDetail_20' ) end [2025-01-22 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:11:22] Production.INFO: ==10777== Releasing lock... [2025-01-22 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:12:04 [end_date_ymd] => 2025-01-22 02:12:04 [RateCDR] => 1 ) [2025-01-22 02:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:12:04' and `end` < '2025-01-22 02:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:12:18] Production.INFO: count ==264 [2025-01-22 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:12:04 - End Time 2025-01-22 02:12:04 [2025-01-22 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301847', 'tblTempUsageDetail_20' ) start [2025-01-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301847', 'tblTempUsageDetail_20' ) end [2025-01-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301847', 'tblTempVendorCDR_20' ) start [2025-01-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301847', 'tblTempVendorCDR_20' ) end [2025-01-22 02:12:18] Production.INFO: ProcessCDR(1,14301847,1,1,2) [2025-01-22 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301847', 'tblTempUsageDetail_20' ) start [2025-01-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301847', 'tblTempUsageDetail_20' ) end [2025-01-22 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:12:21] Production.INFO: ==10851== Releasing lock... [2025-01-22 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:13:05 [end_date_ymd] => 2025-01-22 02:13:05 [RateCDR] => 1 ) [2025-01-22 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:13:05' and `end` < '2025-01-22 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:13:18] Production.INFO: count ==262 [2025-01-22 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:13:05 - End Time 2025-01-22 02:13:05 [2025-01-22 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301854', 'tblTempUsageDetail_20' ) start [2025-01-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301854', 'tblTempUsageDetail_20' ) end [2025-01-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301854', 'tblTempVendorCDR_20' ) start [2025-01-22 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301854', 'tblTempVendorCDR_20' ) end [2025-01-22 02:13:19] Production.INFO: ProcessCDR(1,14301854,1,1,2) [2025-01-22 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301854', 'tblTempUsageDetail_20' ) start [2025-01-22 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301854', 'tblTempUsageDetail_20' ) end [2025-01-22 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:13:22] Production.INFO: ==10930== Releasing lock... [2025-01-22 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:14:06 [end_date_ymd] => 2025-01-22 02:14:06 [RateCDR] => 1 ) [2025-01-22 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:14:06' and `end` < '2025-01-22 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:14:19] Production.INFO: count ==262 [2025-01-22 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:14:06 - End Time 2025-01-22 02:14:06 [2025-01-22 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301859', 'tblTempUsageDetail_20' ) start [2025-01-22 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301859', 'tblTempUsageDetail_20' ) end [2025-01-22 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301859', 'tblTempVendorCDR_20' ) start [2025-01-22 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301859', 'tblTempVendorCDR_20' ) end [2025-01-22 02:14:19] Production.INFO: ProcessCDR(1,14301859,1,1,2) [2025-01-22 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301859', 'tblTempUsageDetail_20' ) start [2025-01-22 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301859', 'tblTempUsageDetail_20' ) end [2025-01-22 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:14:22] Production.INFO: ==11006== Releasing lock... [2025-01-22 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:15:06 [end_date_ymd] => 2025-01-22 02:15:06 [RateCDR] => 1 ) [2025-01-22 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:15:06' and `end` < '2025-01-22 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:15:19] Production.INFO: count ==262 [2025-01-22 02:15:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:15:06 - End Time 2025-01-22 02:15:06 [2025-01-22 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301864', 'tblTempUsageDetail_20' ) start [2025-01-22 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301864', 'tblTempUsageDetail_20' ) end [2025-01-22 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301864', 'tblTempVendorCDR_20' ) start [2025-01-22 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301864', 'tblTempVendorCDR_20' ) end [2025-01-22 02:15:19] Production.INFO: ProcessCDR(1,14301864,1,1,2) [2025-01-22 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301864', 'tblTempUsageDetail_20' ) start [2025-01-22 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301864', 'tblTempUsageDetail_20' ) end [2025-01-22 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:15:22] Production.INFO: ==11123== Releasing lock... [2025-01-22 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:16:06 [end_date_ymd] => 2025-01-22 02:16:06 [RateCDR] => 1 ) [2025-01-22 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:16:06' and `end` < '2025-01-22 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:16:19] Production.INFO: count ==262 [2025-01-22 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:16:06 - End Time 2025-01-22 02:16:06 [2025-01-22 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301869', 'tblTempUsageDetail_20' ) start [2025-01-22 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301869', 'tblTempUsageDetail_20' ) end [2025-01-22 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301869', 'tblTempVendorCDR_20' ) start [2025-01-22 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301869', 'tblTempVendorCDR_20' ) end [2025-01-22 02:16:19] Production.INFO: ProcessCDR(1,14301869,1,1,2) [2025-01-22 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301869', 'tblTempUsageDetail_20' ) start [2025-01-22 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301869', 'tblTempUsageDetail_20' ) end [2025-01-22 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:16:22] Production.INFO: ==11201== Releasing lock... [2025-01-22 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:17:06 [end_date_ymd] => 2025-01-22 02:17:06 [RateCDR] => 1 ) [2025-01-22 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:17:06' and `end` < '2025-01-22 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:17:19] Production.INFO: count ==261 [2025-01-22 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:17:06 - End Time 2025-01-22 02:17:06 [2025-01-22 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301874', 'tblTempUsageDetail_20' ) start [2025-01-22 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301874', 'tblTempUsageDetail_20' ) end [2025-01-22 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301874', 'tblTempVendorCDR_20' ) start [2025-01-22 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301874', 'tblTempVendorCDR_20' ) end [2025-01-22 02:17:19] Production.INFO: ProcessCDR(1,14301874,1,1,2) [2025-01-22 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301874', 'tblTempUsageDetail_20' ) start [2025-01-22 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301874', 'tblTempUsageDetail_20' ) end [2025-01-22 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:17:22] Production.INFO: ==11276== Releasing lock... [2025-01-22 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:18:05 [end_date_ymd] => 2025-01-22 02:18:05 [RateCDR] => 1 ) [2025-01-22 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:18:05' and `end` < '2025-01-22 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:18:18] Production.INFO: count ==261 [2025-01-22 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:18:05 - End Time 2025-01-22 02:18:05 [2025-01-22 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301879', 'tblTempUsageDetail_20' ) start [2025-01-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301879', 'tblTempUsageDetail_20' ) end [2025-01-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301879', 'tblTempVendorCDR_20' ) start [2025-01-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301879', 'tblTempVendorCDR_20' ) end [2025-01-22 02:18:18] Production.INFO: ProcessCDR(1,14301879,1,1,2) [2025-01-22 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301879', 'tblTempUsageDetail_20' ) start [2025-01-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301879', 'tblTempUsageDetail_20' ) end [2025-01-22 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:18:21] Production.INFO: ==11347== Releasing lock... [2025-01-22 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:19:05 [end_date_ymd] => 2025-01-22 02:19:05 [RateCDR] => 1 ) [2025-01-22 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:19:05' and `end` < '2025-01-22 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:19:18] Production.INFO: count ==261 [2025-01-22 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:19:05 - End Time 2025-01-22 02:19:05 [2025-01-22 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301884', 'tblTempUsageDetail_20' ) start [2025-01-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301884', 'tblTempUsageDetail_20' ) end [2025-01-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301884', 'tblTempVendorCDR_20' ) start [2025-01-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301884', 'tblTempVendorCDR_20' ) end [2025-01-22 02:19:18] Production.INFO: ProcessCDR(1,14301884,1,1,2) [2025-01-22 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301884', 'tblTempUsageDetail_20' ) start [2025-01-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301884', 'tblTempUsageDetail_20' ) end [2025-01-22 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:19:21] Production.INFO: ==11422== Releasing lock... [2025-01-22 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:20:06 [end_date_ymd] => 2025-01-22 02:20:06 [RateCDR] => 1 ) [2025-01-22 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:20:06' and `end` < '2025-01-22 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:20:18] Production.INFO: count ==267 [2025-01-22 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:20:06 - End Time 2025-01-22 02:20:06 [2025-01-22 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301890', 'tblTempUsageDetail_20' ) start [2025-01-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301890', 'tblTempUsageDetail_20' ) end [2025-01-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301890', 'tblTempVendorCDR_20' ) start [2025-01-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301890', 'tblTempVendorCDR_20' ) end [2025-01-22 02:20:18] Production.INFO: ProcessCDR(1,14301890,1,1,2) [2025-01-22 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301890', 'tblTempUsageDetail_20' ) start [2025-01-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301890', 'tblTempUsageDetail_20' ) end [2025-01-22 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:20:22] Production.INFO: ==11496== Releasing lock... [2025-01-22 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:21:06 [end_date_ymd] => 2025-01-22 02:21:06 [RateCDR] => 1 ) [2025-01-22 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:21:06' and `end` < '2025-01-22 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:21:20] Production.INFO: count ==267 [2025-01-22 02:21:20] Production.ERROR: pbx CDR StartTime 2025-01-21 23:21:06 - End Time 2025-01-22 02:21:06 [2025-01-22 02:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301895', 'tblTempUsageDetail_20' ) start [2025-01-22 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301895', 'tblTempUsageDetail_20' ) end [2025-01-22 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301895', 'tblTempVendorCDR_20' ) start [2025-01-22 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301895', 'tblTempVendorCDR_20' ) end [2025-01-22 02:21:20] Production.INFO: ProcessCDR(1,14301895,1,1,2) [2025-01-22 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301895', 'tblTempUsageDetail_20' ) start [2025-01-22 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301895', 'tblTempUsageDetail_20' ) end [2025-01-22 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:21:23] Production.INFO: ==11572== Releasing lock... [2025-01-22 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:21:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:22:05 [end_date_ymd] => 2025-01-22 02:22:05 [RateCDR] => 1 ) [2025-01-22 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:22:05' and `end` < '2025-01-22 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:22:18] Production.INFO: count ==267 [2025-01-22 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:22:05 - End Time 2025-01-22 02:22:05 [2025-01-22 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301900', 'tblTempUsageDetail_20' ) start [2025-01-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301900', 'tblTempUsageDetail_20' ) end [2025-01-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301900', 'tblTempVendorCDR_20' ) start [2025-01-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301900', 'tblTempVendorCDR_20' ) end [2025-01-22 02:22:18] Production.INFO: ProcessCDR(1,14301900,1,1,2) [2025-01-22 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301900', 'tblTempUsageDetail_20' ) start [2025-01-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301900', 'tblTempUsageDetail_20' ) end [2025-01-22 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:22:21] Production.INFO: ==11648== Releasing lock... [2025-01-22 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:23:05 [end_date_ymd] => 2025-01-22 02:23:05 [RateCDR] => 1 ) [2025-01-22 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:23:05' and `end` < '2025-01-22 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:23:18] Production.INFO: count ==267 [2025-01-22 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:23:05 - End Time 2025-01-22 02:23:05 [2025-01-22 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301905', 'tblTempUsageDetail_20' ) start [2025-01-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301905', 'tblTempUsageDetail_20' ) end [2025-01-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301905', 'tblTempVendorCDR_20' ) start [2025-01-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301905', 'tblTempVendorCDR_20' ) end [2025-01-22 02:23:18] Production.INFO: ProcessCDR(1,14301905,1,1,2) [2025-01-22 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301905', 'tblTempUsageDetail_20' ) start [2025-01-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301905', 'tblTempUsageDetail_20' ) end [2025-01-22 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:23:21] Production.INFO: ==11719== Releasing lock... [2025-01-22 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:24:05 [end_date_ymd] => 2025-01-22 02:24:05 [RateCDR] => 1 ) [2025-01-22 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:24:05' and `end` < '2025-01-22 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:24:18] Production.INFO: count ==266 [2025-01-22 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:24:05 - End Time 2025-01-22 02:24:05 [2025-01-22 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301910', 'tblTempUsageDetail_20' ) start [2025-01-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301910', 'tblTempUsageDetail_20' ) end [2025-01-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301910', 'tblTempVendorCDR_20' ) start [2025-01-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301910', 'tblTempVendorCDR_20' ) end [2025-01-22 02:24:18] Production.INFO: ProcessCDR(1,14301910,1,1,2) [2025-01-22 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301910', 'tblTempUsageDetail_20' ) start [2025-01-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301910', 'tblTempUsageDetail_20' ) end [2025-01-22 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:24:21] Production.INFO: ==11790== Releasing lock... [2025-01-22 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:25:05 [end_date_ymd] => 2025-01-22 02:25:05 [RateCDR] => 1 ) [2025-01-22 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:25:05' and `end` < '2025-01-22 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:25:18] Production.INFO: count ==258 [2025-01-22 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:25:05 - End Time 2025-01-22 02:25:05 [2025-01-22 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301915', 'tblTempUsageDetail_20' ) start [2025-01-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301915', 'tblTempUsageDetail_20' ) end [2025-01-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301915', 'tblTempVendorCDR_20' ) start [2025-01-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301915', 'tblTempVendorCDR_20' ) end [2025-01-22 02:25:18] Production.INFO: ProcessCDR(1,14301915,1,1,2) [2025-01-22 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301915', 'tblTempUsageDetail_20' ) start [2025-01-22 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301915', 'tblTempUsageDetail_20' ) end [2025-01-22 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:25:22] Production.INFO: ==11860== Releasing lock... [2025-01-22 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:26:05 [end_date_ymd] => 2025-01-22 02:26:05 [RateCDR] => 1 ) [2025-01-22 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:26:05' and `end` < '2025-01-22 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:26:18] Production.INFO: count ==256 [2025-01-22 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:26:05 - End Time 2025-01-22 02:26:05 [2025-01-22 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301920', 'tblTempUsageDetail_20' ) start [2025-01-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301920', 'tblTempUsageDetail_20' ) end [2025-01-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301920', 'tblTempVendorCDR_20' ) start [2025-01-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301920', 'tblTempVendorCDR_20' ) end [2025-01-22 02:26:18] Production.INFO: ProcessCDR(1,14301920,1,1,2) [2025-01-22 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301920', 'tblTempUsageDetail_20' ) start [2025-01-22 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301920', 'tblTempUsageDetail_20' ) end [2025-01-22 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:26:21] Production.INFO: ==11933== Releasing lock... [2025-01-22 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:27:05 [end_date_ymd] => 2025-01-22 02:27:05 [RateCDR] => 1 ) [2025-01-22 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:27:05' and `end` < '2025-01-22 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:27:18] Production.INFO: count ==256 [2025-01-22 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:27:05 - End Time 2025-01-22 02:27:05 [2025-01-22 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301925', 'tblTempUsageDetail_20' ) start [2025-01-22 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301925', 'tblTempUsageDetail_20' ) end [2025-01-22 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301925', 'tblTempVendorCDR_20' ) start [2025-01-22 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301925', 'tblTempVendorCDR_20' ) end [2025-01-22 02:27:18] Production.INFO: ProcessCDR(1,14301925,1,1,2) [2025-01-22 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301925', 'tblTempUsageDetail_20' ) start [2025-01-22 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301925', 'tblTempUsageDetail_20' ) end [2025-01-22 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:27:21] Production.INFO: ==12004== Releasing lock... [2025-01-22 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:28:05 [end_date_ymd] => 2025-01-22 02:28:05 [RateCDR] => 1 ) [2025-01-22 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:28:05' and `end` < '2025-01-22 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:28:17] Production.INFO: count ==256 [2025-01-22 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:28:05 - End Time 2025-01-22 02:28:05 [2025-01-22 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301930', 'tblTempUsageDetail_20' ) start [2025-01-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301930', 'tblTempUsageDetail_20' ) end [2025-01-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301930', 'tblTempVendorCDR_20' ) start [2025-01-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301930', 'tblTempVendorCDR_20' ) end [2025-01-22 02:28:17] Production.INFO: ProcessCDR(1,14301930,1,1,2) [2025-01-22 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301930', 'tblTempUsageDetail_20' ) start [2025-01-22 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301930', 'tblTempUsageDetail_20' ) end [2025-01-22 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:28:20] Production.INFO: ==12074== Releasing lock... [2025-01-22 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:29:05 [end_date_ymd] => 2025-01-22 02:29:05 [RateCDR] => 1 ) [2025-01-22 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:29:05' and `end` < '2025-01-22 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:29:18] Production.INFO: count ==252 [2025-01-22 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:29:05 - End Time 2025-01-22 02:29:05 [2025-01-22 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301935', 'tblTempUsageDetail_20' ) start [2025-01-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301935', 'tblTempUsageDetail_20' ) end [2025-01-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301935', 'tblTempVendorCDR_20' ) start [2025-01-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301935', 'tblTempVendorCDR_20' ) end [2025-01-22 02:29:18] Production.INFO: ProcessCDR(1,14301935,1,1,2) [2025-01-22 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301935', 'tblTempUsageDetail_20' ) start [2025-01-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301935', 'tblTempUsageDetail_20' ) end [2025-01-22 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:29:21] Production.INFO: ==12150== Releasing lock... [2025-01-22 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:30:06 [end_date_ymd] => 2025-01-22 02:30:06 [RateCDR] => 1 ) [2025-01-22 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:30:06' and `end` < '2025-01-22 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:30:18] Production.INFO: count ==258 [2025-01-22 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:30:06 - End Time 2025-01-22 02:30:06 [2025-01-22 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301941', 'tblTempUsageDetail_20' ) start [2025-01-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301941', 'tblTempUsageDetail_20' ) end [2025-01-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301941', 'tblTempVendorCDR_20' ) start [2025-01-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301941', 'tblTempVendorCDR_20' ) end [2025-01-22 02:30:18] Production.INFO: ProcessCDR(1,14301941,1,1,2) [2025-01-22 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301941', 'tblTempUsageDetail_20' ) start [2025-01-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301941', 'tblTempUsageDetail_20' ) end [2025-01-22 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:30:21] Production.INFO: ==12261== Releasing lock... [2025-01-22 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:31:05 [end_date_ymd] => 2025-01-22 02:31:05 [RateCDR] => 1 ) [2025-01-22 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:31:05' and `end` < '2025-01-22 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:31:18] Production.INFO: count ==259 [2025-01-22 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:31:05 - End Time 2025-01-22 02:31:05 [2025-01-22 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301946', 'tblTempUsageDetail_20' ) start [2025-01-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301946', 'tblTempUsageDetail_20' ) end [2025-01-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301946', 'tblTempVendorCDR_20' ) start [2025-01-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301946', 'tblTempVendorCDR_20' ) end [2025-01-22 02:31:18] Production.INFO: ProcessCDR(1,14301946,1,1,2) [2025-01-22 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301946', 'tblTempUsageDetail_20' ) start [2025-01-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301946', 'tblTempUsageDetail_20' ) end [2025-01-22 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:31:21] Production.INFO: ==12333== Releasing lock... [2025-01-22 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:32:05 [end_date_ymd] => 2025-01-22 02:32:05 [RateCDR] => 1 ) [2025-01-22 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:32:05' and `end` < '2025-01-22 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:32:18] Production.INFO: count ==258 [2025-01-22 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:32:05 - End Time 2025-01-22 02:32:05 [2025-01-22 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301951', 'tblTempUsageDetail_20' ) start [2025-01-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301951', 'tblTempUsageDetail_20' ) end [2025-01-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301951', 'tblTempVendorCDR_20' ) start [2025-01-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301951', 'tblTempVendorCDR_20' ) end [2025-01-22 02:32:18] Production.INFO: ProcessCDR(1,14301951,1,1,2) [2025-01-22 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301951', 'tblTempUsageDetail_20' ) start [2025-01-22 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301951', 'tblTempUsageDetail_20' ) end [2025-01-22 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:32:22] Production.INFO: ==12406== Releasing lock... [2025-01-22 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:33:06 [end_date_ymd] => 2025-01-22 02:33:06 [RateCDR] => 1 ) [2025-01-22 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:33:06' and `end` < '2025-01-22 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:33:18] Production.INFO: count ==257 [2025-01-22 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:33:06 - End Time 2025-01-22 02:33:06 [2025-01-22 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301956', 'tblTempUsageDetail_20' ) start [2025-01-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301956', 'tblTempUsageDetail_20' ) end [2025-01-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301956', 'tblTempVendorCDR_20' ) start [2025-01-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301956', 'tblTempVendorCDR_20' ) end [2025-01-22 02:33:18] Production.INFO: ProcessCDR(1,14301956,1,1,2) [2025-01-22 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301956', 'tblTempUsageDetail_20' ) start [2025-01-22 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301956', 'tblTempUsageDetail_20' ) end [2025-01-22 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:33:22] Production.INFO: ==12476== Releasing lock... [2025-01-22 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:34:06 [end_date_ymd] => 2025-01-22 02:34:06 [RateCDR] => 1 ) [2025-01-22 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:34:06' and `end` < '2025-01-22 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:34:19] Production.INFO: count ==256 [2025-01-22 02:34:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:34:06 - End Time 2025-01-22 02:34:06 [2025-01-22 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301961', 'tblTempUsageDetail_20' ) start [2025-01-22 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301961', 'tblTempUsageDetail_20' ) end [2025-01-22 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301961', 'tblTempVendorCDR_20' ) start [2025-01-22 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301961', 'tblTempVendorCDR_20' ) end [2025-01-22 02:34:19] Production.INFO: ProcessCDR(1,14301961,1,1,2) [2025-01-22 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301961', 'tblTempUsageDetail_20' ) start [2025-01-22 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301961', 'tblTempUsageDetail_20' ) end [2025-01-22 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:34:22] Production.INFO: ==12548== Releasing lock... [2025-01-22 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:35:06 [end_date_ymd] => 2025-01-22 02:35:06 [RateCDR] => 1 ) [2025-01-22 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:35:06' and `end` < '2025-01-22 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:35:18] Production.INFO: count ==256 [2025-01-22 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:35:06 - End Time 2025-01-22 02:35:06 [2025-01-22 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301966', 'tblTempUsageDetail_20' ) start [2025-01-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301966', 'tblTempUsageDetail_20' ) end [2025-01-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301966', 'tblTempVendorCDR_20' ) start [2025-01-22 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301966', 'tblTempVendorCDR_20' ) end [2025-01-22 02:35:19] Production.INFO: ProcessCDR(1,14301966,1,1,2) [2025-01-22 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301966', 'tblTempUsageDetail_20' ) start [2025-01-22 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301966', 'tblTempUsageDetail_20' ) end [2025-01-22 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:35:22] Production.INFO: ==12621== Releasing lock... [2025-01-22 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:36:04 [end_date_ymd] => 2025-01-22 02:36:04 [RateCDR] => 1 ) [2025-01-22 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:36:04' and `end` < '2025-01-22 02:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:36:17] Production.INFO: count ==256 [2025-01-22 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:36:04 - End Time 2025-01-22 02:36:04 [2025-01-22 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301971', 'tblTempUsageDetail_20' ) start [2025-01-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301971', 'tblTempUsageDetail_20' ) end [2025-01-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301971', 'tblTempVendorCDR_20' ) start [2025-01-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301971', 'tblTempVendorCDR_20' ) end [2025-01-22 02:36:18] Production.INFO: ProcessCDR(1,14301971,1,1,2) [2025-01-22 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301971', 'tblTempUsageDetail_20' ) start [2025-01-22 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301971', 'tblTempUsageDetail_20' ) end [2025-01-22 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:36:21] Production.INFO: ==12691== Releasing lock... [2025-01-22 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:37:06 [end_date_ymd] => 2025-01-22 02:37:06 [RateCDR] => 1 ) [2025-01-22 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:37:06' and `end` < '2025-01-22 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:37:18] Production.INFO: count ==255 [2025-01-22 02:37:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:37:06 - End Time 2025-01-22 02:37:06 [2025-01-22 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301976', 'tblTempUsageDetail_20' ) start [2025-01-22 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301976', 'tblTempUsageDetail_20' ) end [2025-01-22 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301976', 'tblTempVendorCDR_20' ) start [2025-01-22 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301976', 'tblTempVendorCDR_20' ) end [2025-01-22 02:37:19] Production.INFO: ProcessCDR(1,14301976,1,1,2) [2025-01-22 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301976', 'tblTempUsageDetail_20' ) start [2025-01-22 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301976', 'tblTempUsageDetail_20' ) end [2025-01-22 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:37:22] Production.INFO: ==12770== Releasing lock... [2025-01-22 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:38:05 [end_date_ymd] => 2025-01-22 02:38:05 [RateCDR] => 1 ) [2025-01-22 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:38:05' and `end` < '2025-01-22 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:38:17] Production.INFO: count ==255 [2025-01-22 02:38:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:38:05 - End Time 2025-01-22 02:38:05 [2025-01-22 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301981', 'tblTempUsageDetail_20' ) start [2025-01-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301981', 'tblTempUsageDetail_20' ) end [2025-01-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301981', 'tblTempVendorCDR_20' ) start [2025-01-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301981', 'tblTempVendorCDR_20' ) end [2025-01-22 02:38:17] Production.INFO: ProcessCDR(1,14301981,1,1,2) [2025-01-22 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301981', 'tblTempUsageDetail_20' ) start [2025-01-22 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301981', 'tblTempUsageDetail_20' ) end [2025-01-22 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:38:20] Production.INFO: ==12852== Releasing lock... [2025-01-22 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:39:05 [end_date_ymd] => 2025-01-22 02:39:05 [RateCDR] => 1 ) [2025-01-22 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:39:05' and `end` < '2025-01-22 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:39:18] Production.INFO: count ==255 [2025-01-22 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:39:05 - End Time 2025-01-22 02:39:05 [2025-01-22 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301986', 'tblTempUsageDetail_20' ) start [2025-01-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301986', 'tblTempUsageDetail_20' ) end [2025-01-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301986', 'tblTempVendorCDR_20' ) start [2025-01-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301986', 'tblTempVendorCDR_20' ) end [2025-01-22 02:39:18] Production.INFO: ProcessCDR(1,14301986,1,1,2) [2025-01-22 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301986', 'tblTempUsageDetail_20' ) start [2025-01-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301986', 'tblTempUsageDetail_20' ) end [2025-01-22 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:39:21] Production.INFO: ==12930== Releasing lock... [2025-01-22 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:40:05 [end_date_ymd] => 2025-01-22 02:40:05 [RateCDR] => 1 ) [2025-01-22 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:40:05' and `end` < '2025-01-22 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:40:19] Production.INFO: count ==261 [2025-01-22 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:40:05 - End Time 2025-01-22 02:40:05 [2025-01-22 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301992', 'tblTempUsageDetail_20' ) start [2025-01-22 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301992', 'tblTempUsageDetail_20' ) end [2025-01-22 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301992', 'tblTempVendorCDR_20' ) start [2025-01-22 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301992', 'tblTempVendorCDR_20' ) end [2025-01-22 02:40:19] Production.INFO: ProcessCDR(1,14301992,1,1,2) [2025-01-22 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301992', 'tblTempUsageDetail_20' ) start [2025-01-22 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301992', 'tblTempUsageDetail_20' ) end [2025-01-22 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:40:22] Production.INFO: ==13010== Releasing lock... [2025-01-22 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:41:05 [end_date_ymd] => 2025-01-22 02:41:05 [RateCDR] => 1 ) [2025-01-22 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:41:05' and `end` < '2025-01-22 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:41:18] Production.INFO: count ==262 [2025-01-22 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:41:05 - End Time 2025-01-22 02:41:05 [2025-01-22 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301997', 'tblTempUsageDetail_20' ) start [2025-01-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14301997', 'tblTempUsageDetail_20' ) end [2025-01-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301997', 'tblTempVendorCDR_20' ) start [2025-01-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14301997', 'tblTempVendorCDR_20' ) end [2025-01-22 02:41:18] Production.INFO: ProcessCDR(1,14301997,1,1,2) [2025-01-22 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14301997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14301997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14301997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14301997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301997', 'tblTempUsageDetail_20' ) start [2025-01-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14301997', 'tblTempUsageDetail_20' ) end [2025-01-22 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:41:21] Production.INFO: ==13094== Releasing lock... [2025-01-22 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:42:04 [end_date_ymd] => 2025-01-22 02:42:04 [RateCDR] => 1 ) [2025-01-22 02:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:42:04' and `end` < '2025-01-22 02:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:42:17] Production.INFO: count ==261 [2025-01-22 02:42:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:42:04 - End Time 2025-01-22 02:42:04 [2025-01-22 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302002', 'tblTempUsageDetail_20' ) start [2025-01-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302002', 'tblTempUsageDetail_20' ) end [2025-01-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302002', 'tblTempVendorCDR_20' ) start [2025-01-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302002', 'tblTempVendorCDR_20' ) end [2025-01-22 02:42:17] Production.INFO: ProcessCDR(1,14302002,1,1,2) [2025-01-22 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302002', 'tblTempUsageDetail_20' ) start [2025-01-22 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302002', 'tblTempUsageDetail_20' ) end [2025-01-22 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:42:20] Production.INFO: ==13172== Releasing lock... [2025-01-22 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:43:05 [end_date_ymd] => 2025-01-22 02:43:05 [RateCDR] => 1 ) [2025-01-22 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:43:05' and `end` < '2025-01-22 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:43:18] Production.INFO: count ==258 [2025-01-22 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:43:05 - End Time 2025-01-22 02:43:05 [2025-01-22 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302007', 'tblTempUsageDetail_20' ) start [2025-01-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302007', 'tblTempUsageDetail_20' ) end [2025-01-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302007', 'tblTempVendorCDR_20' ) start [2025-01-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302007', 'tblTempVendorCDR_20' ) end [2025-01-22 02:43:18] Production.INFO: ProcessCDR(1,14302007,1,1,2) [2025-01-22 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302007', 'tblTempUsageDetail_20' ) start [2025-01-22 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302007', 'tblTempUsageDetail_20' ) end [2025-01-22 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:43:21] Production.INFO: ==13245== Releasing lock... [2025-01-22 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:44:06 [end_date_ymd] => 2025-01-22 02:44:06 [RateCDR] => 1 ) [2025-01-22 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:44:06' and `end` < '2025-01-22 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:44:18] Production.INFO: count ==257 [2025-01-22 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:44:06 - End Time 2025-01-22 02:44:06 [2025-01-22 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302012', 'tblTempUsageDetail_20' ) start [2025-01-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302012', 'tblTempUsageDetail_20' ) end [2025-01-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302012', 'tblTempVendorCDR_20' ) start [2025-01-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302012', 'tblTempVendorCDR_20' ) end [2025-01-22 02:44:18] Production.INFO: ProcessCDR(1,14302012,1,1,2) [2025-01-22 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302012', 'tblTempUsageDetail_20' ) start [2025-01-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302012', 'tblTempUsageDetail_20' ) end [2025-01-22 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:44:21] Production.INFO: ==13316== Releasing lock... [2025-01-22 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:45:05 [end_date_ymd] => 2025-01-22 02:45:05 [RateCDR] => 1 ) [2025-01-22 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:45:05' and `end` < '2025-01-22 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:45:18] Production.INFO: count ==256 [2025-01-22 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:45:05 - End Time 2025-01-22 02:45:05 [2025-01-22 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302017', 'tblTempUsageDetail_20' ) start [2025-01-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302017', 'tblTempUsageDetail_20' ) end [2025-01-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302017', 'tblTempVendorCDR_20' ) start [2025-01-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302017', 'tblTempVendorCDR_20' ) end [2025-01-22 02:45:18] Production.INFO: ProcessCDR(1,14302017,1,1,2) [2025-01-22 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302017', 'tblTempUsageDetail_20' ) start [2025-01-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302017', 'tblTempUsageDetail_20' ) end [2025-01-22 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:45:21] Production.INFO: ==13387== Releasing lock... [2025-01-22 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:46:06 [end_date_ymd] => 2025-01-22 02:46:06 [RateCDR] => 1 ) [2025-01-22 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:46:06' and `end` < '2025-01-22 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:46:19] Production.INFO: count ==255 [2025-01-22 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:46:06 - End Time 2025-01-22 02:46:06 [2025-01-22 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302022', 'tblTempUsageDetail_20' ) start [2025-01-22 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302022', 'tblTempUsageDetail_20' ) end [2025-01-22 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302022', 'tblTempVendorCDR_20' ) start [2025-01-22 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302022', 'tblTempVendorCDR_20' ) end [2025-01-22 02:46:19] Production.INFO: ProcessCDR(1,14302022,1,1,2) [2025-01-22 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302022', 'tblTempUsageDetail_20' ) start [2025-01-22 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302022', 'tblTempUsageDetail_20' ) end [2025-01-22 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:46:22] Production.INFO: ==13497== Releasing lock... [2025-01-22 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:47:05 [end_date_ymd] => 2025-01-22 02:47:05 [RateCDR] => 1 ) [2025-01-22 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:47:05' and `end` < '2025-01-22 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:47:18] Production.INFO: count ==255 [2025-01-22 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:47:05 - End Time 2025-01-22 02:47:05 [2025-01-22 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302027', 'tblTempUsageDetail_20' ) start [2025-01-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302027', 'tblTempUsageDetail_20' ) end [2025-01-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302027', 'tblTempVendorCDR_20' ) start [2025-01-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302027', 'tblTempVendorCDR_20' ) end [2025-01-22 02:47:18] Production.INFO: ProcessCDR(1,14302027,1,1,2) [2025-01-22 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302027', 'tblTempUsageDetail_20' ) start [2025-01-22 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302027', 'tblTempUsageDetail_20' ) end [2025-01-22 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:47:21] Production.INFO: ==13567== Releasing lock... [2025-01-22 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:48:05 [end_date_ymd] => 2025-01-22 02:48:05 [RateCDR] => 1 ) [2025-01-22 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:48:05' and `end` < '2025-01-22 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:48:18] Production.INFO: count ==255 [2025-01-22 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:48:05 - End Time 2025-01-22 02:48:05 [2025-01-22 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302029', 'tblTempUsageDetail_20' ) start [2025-01-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302029', 'tblTempUsageDetail_20' ) end [2025-01-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302029', 'tblTempVendorCDR_20' ) start [2025-01-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302029', 'tblTempVendorCDR_20' ) end [2025-01-22 02:48:18] Production.INFO: ProcessCDR(1,14302029,1,1,2) [2025-01-22 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302029', 'tblTempUsageDetail_20' ) start [2025-01-22 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302029', 'tblTempUsageDetail_20' ) end [2025-01-22 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:48:21] Production.INFO: ==13638== Releasing lock... [2025-01-22 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:49:05 [end_date_ymd] => 2025-01-22 02:49:05 [RateCDR] => 1 ) [2025-01-22 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:49:05' and `end` < '2025-01-22 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:49:18] Production.INFO: count ==256 [2025-01-22 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:49:05 - End Time 2025-01-22 02:49:05 [2025-01-22 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302037', 'tblTempUsageDetail_20' ) start [2025-01-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302037', 'tblTempUsageDetail_20' ) end [2025-01-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302037', 'tblTempVendorCDR_20' ) start [2025-01-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302037', 'tblTempVendorCDR_20' ) end [2025-01-22 02:49:18] Production.INFO: ProcessCDR(1,14302037,1,1,2) [2025-01-22 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302037', 'tblTempUsageDetail_20' ) start [2025-01-22 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302037', 'tblTempUsageDetail_20' ) end [2025-01-22 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:49:22] Production.INFO: ==13710== Releasing lock... [2025-01-22 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:50:07 [end_date_ymd] => 2025-01-22 02:50:07 [RateCDR] => 1 ) [2025-01-22 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:50:07' and `end` < '2025-01-22 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:50:20] Production.INFO: count ==272 [2025-01-22 02:50:20] Production.ERROR: pbx CDR StartTime 2025-01-21 23:50:07 - End Time 2025-01-22 02:50:07 [2025-01-22 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302043', 'tblTempUsageDetail_20' ) start [2025-01-22 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302043', 'tblTempUsageDetail_20' ) end [2025-01-22 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302043', 'tblTempVendorCDR_20' ) start [2025-01-22 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302043', 'tblTempVendorCDR_20' ) end [2025-01-22 02:50:20] Production.INFO: ProcessCDR(1,14302043,1,1,2) [2025-01-22 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302043', 'tblTempUsageDetail_20' ) start [2025-01-22 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302043', 'tblTempUsageDetail_20' ) end [2025-01-22 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:50:24] Production.INFO: ==13783== Releasing lock... [2025-01-22 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:50:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:51:06 [end_date_ymd] => 2025-01-22 02:51:06 [RateCDR] => 1 ) [2025-01-22 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:51:06' and `end` < '2025-01-22 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:51:19] Production.INFO: count ==272 [2025-01-22 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:51:06 - End Time 2025-01-22 02:51:06 [2025-01-22 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302048', 'tblTempUsageDetail_20' ) start [2025-01-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302048', 'tblTempUsageDetail_20' ) end [2025-01-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302048', 'tblTempVendorCDR_20' ) start [2025-01-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302048', 'tblTempVendorCDR_20' ) end [2025-01-22 02:51:19] Production.INFO: ProcessCDR(1,14302048,1,1,2) [2025-01-22 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302048', 'tblTempUsageDetail_20' ) start [2025-01-22 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302048', 'tblTempUsageDetail_20' ) end [2025-01-22 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:51:22] Production.INFO: ==13855== Releasing lock... [2025-01-22 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:52:05 [end_date_ymd] => 2025-01-22 02:52:05 [RateCDR] => 1 ) [2025-01-22 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:52:05' and `end` < '2025-01-22 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:52:19] Production.INFO: count ==276 [2025-01-22 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:52:05 - End Time 2025-01-22 02:52:05 [2025-01-22 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302053', 'tblTempUsageDetail_20' ) start [2025-01-22 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302053', 'tblTempUsageDetail_20' ) end [2025-01-22 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302053', 'tblTempVendorCDR_20' ) start [2025-01-22 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302053', 'tblTempVendorCDR_20' ) end [2025-01-22 02:52:19] Production.INFO: ProcessCDR(1,14302053,1,1,2) [2025-01-22 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302053', 'tblTempUsageDetail_20' ) start [2025-01-22 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302053', 'tblTempUsageDetail_20' ) end [2025-01-22 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:52:22] Production.INFO: ==13926== Releasing lock... [2025-01-22 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:53:05 [end_date_ymd] => 2025-01-22 02:53:05 [RateCDR] => 1 ) [2025-01-22 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:53:05' and `end` < '2025-01-22 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:53:18] Production.INFO: count ==273 [2025-01-22 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:53:05 - End Time 2025-01-22 02:53:05 [2025-01-22 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302058', 'tblTempUsageDetail_20' ) start [2025-01-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302058', 'tblTempUsageDetail_20' ) end [2025-01-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302058', 'tblTempVendorCDR_20' ) start [2025-01-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302058', 'tblTempVendorCDR_20' ) end [2025-01-22 02:53:18] Production.INFO: ProcessCDR(1,14302058,1,1,2) [2025-01-22 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302058', 'tblTempUsageDetail_20' ) start [2025-01-22 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302058', 'tblTempUsageDetail_20' ) end [2025-01-22 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:53:21] Production.INFO: ==14001== Releasing lock... [2025-01-22 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:54:05 [end_date_ymd] => 2025-01-22 02:54:05 [RateCDR] => 1 ) [2025-01-22 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:54:05' and `end` < '2025-01-22 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:54:17] Production.INFO: count ==273 [2025-01-22 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:54:05 - End Time 2025-01-22 02:54:05 [2025-01-22 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302063', 'tblTempUsageDetail_20' ) start [2025-01-22 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302063', 'tblTempUsageDetail_20' ) end [2025-01-22 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302063', 'tblTempVendorCDR_20' ) start [2025-01-22 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302063', 'tblTempVendorCDR_20' ) end [2025-01-22 02:54:17] Production.INFO: ProcessCDR(1,14302063,1,1,2) [2025-01-22 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302063', 'tblTempUsageDetail_20' ) start [2025-01-22 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302063', 'tblTempUsageDetail_20' ) end [2025-01-22 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:54:20] Production.INFO: ==14071== Releasing lock... [2025-01-22 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:55:05 [end_date_ymd] => 2025-01-22 02:55:05 [RateCDR] => 1 ) [2025-01-22 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:55:05' and `end` < '2025-01-22 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:55:17] Production.INFO: count ==270 [2025-01-22 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-21 23:55:05 - End Time 2025-01-22 02:55:05 [2025-01-22 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302068', 'tblTempUsageDetail_20' ) start [2025-01-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302068', 'tblTempUsageDetail_20' ) end [2025-01-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302068', 'tblTempVendorCDR_20' ) start [2025-01-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302068', 'tblTempVendorCDR_20' ) end [2025-01-22 02:55:17] Production.INFO: ProcessCDR(1,14302068,1,1,2) [2025-01-22 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302068', 'tblTempUsageDetail_20' ) start [2025-01-22 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302068', 'tblTempUsageDetail_20' ) end [2025-01-22 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:55:20] Production.INFO: ==14145== Releasing lock... [2025-01-22 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:56:05 [end_date_ymd] => 2025-01-22 02:56:05 [RateCDR] => 1 ) [2025-01-22 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:56:05' and `end` < '2025-01-22 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:56:18] Production.INFO: count ==269 [2025-01-22 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:56:05 - End Time 2025-01-22 02:56:05 [2025-01-22 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302073', 'tblTempUsageDetail_20' ) start [2025-01-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302073', 'tblTempUsageDetail_20' ) end [2025-01-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302073', 'tblTempVendorCDR_20' ) start [2025-01-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302073', 'tblTempVendorCDR_20' ) end [2025-01-22 02:56:18] Production.INFO: ProcessCDR(1,14302073,1,1,2) [2025-01-22 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302073', 'tblTempUsageDetail_20' ) start [2025-01-22 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302073', 'tblTempUsageDetail_20' ) end [2025-01-22 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:56:21] Production.INFO: ==14215== Releasing lock... [2025-01-22 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:57:06 [end_date_ymd] => 2025-01-22 02:57:06 [RateCDR] => 1 ) [2025-01-22 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:57:06' and `end` < '2025-01-22 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:57:19] Production.INFO: count ==266 [2025-01-22 02:57:19] Production.ERROR: pbx CDR StartTime 2025-01-21 23:57:06 - End Time 2025-01-22 02:57:06 [2025-01-22 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302078', 'tblTempUsageDetail_20' ) start [2025-01-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302078', 'tblTempUsageDetail_20' ) end [2025-01-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302078', 'tblTempVendorCDR_20' ) start [2025-01-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302078', 'tblTempVendorCDR_20' ) end [2025-01-22 02:57:19] Production.INFO: ProcessCDR(1,14302078,1,1,2) [2025-01-22 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302078', 'tblTempUsageDetail_20' ) start [2025-01-22 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302078', 'tblTempUsageDetail_20' ) end [2025-01-22 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:57:22] Production.INFO: ==14285== Releasing lock... [2025-01-22 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:58:05 [end_date_ymd] => 2025-01-22 02:58:05 [RateCDR] => 1 ) [2025-01-22 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:58:05' and `end` < '2025-01-22 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:58:18] Production.INFO: count ==262 [2025-01-22 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:58:05 - End Time 2025-01-22 02:58:05 [2025-01-22 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302083', 'tblTempUsageDetail_20' ) start [2025-01-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302083', 'tblTempUsageDetail_20' ) end [2025-01-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302083', 'tblTempVendorCDR_20' ) start [2025-01-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302083', 'tblTempVendorCDR_20' ) end [2025-01-22 02:58:18] Production.INFO: ProcessCDR(1,14302083,1,1,2) [2025-01-22 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302083', 'tblTempUsageDetail_20' ) start [2025-01-22 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302083', 'tblTempUsageDetail_20' ) end [2025-01-22 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:58:22] Production.INFO: ==14358== Releasing lock... [2025-01-22 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-21 23:59:06 [end_date_ymd] => 2025-01-22 02:59:06 [RateCDR] => 1 ) [2025-01-22 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-21 23:59:06' and `end` < '2025-01-22 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 02:59:18] Production.INFO: count ==262 [2025-01-22 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-21 23:59:06 - End Time 2025-01-22 02:59:06 [2025-01-22 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302088', 'tblTempUsageDetail_20' ) start [2025-01-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302088', 'tblTempUsageDetail_20' ) end [2025-01-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302088', 'tblTempVendorCDR_20' ) start [2025-01-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302088', 'tblTempVendorCDR_20' ) end [2025-01-22 02:59:18] Production.INFO: ProcessCDR(1,14302088,1,1,2) [2025-01-22 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302088', 'tblTempUsageDetail_20' ) start [2025-01-22 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302088', 'tblTempUsageDetail_20' ) end [2025-01-22 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 02:59:21] Production.INFO: ==14428== Releasing lock... [2025-01-22 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 02:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:00:06 [end_date_ymd] => 2025-01-22 03:00:06 [RateCDR] => 1 ) [2025-01-22 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:00:06' and `end` < '2025-01-22 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:00:19] Production.INFO: count ==270 [2025-01-22 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:00:06 - End Time 2025-01-22 03:00:06 [2025-01-22 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302093', 'tblTempUsageDetail_20' ) start [2025-01-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302093', 'tblTempUsageDetail_20' ) end [2025-01-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302093', 'tblTempVendorCDR_20' ) start [2025-01-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302093', 'tblTempVendorCDR_20' ) end [2025-01-22 03:00:19] Production.INFO: ProcessCDR(1,14302093,1,1,2) [2025-01-22 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302093', 'tblTempUsageDetail_20' ) start [2025-01-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302093', 'tblTempUsageDetail_20' ) end [2025-01-22 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:00:22] Production.INFO: ==14503== Releasing lock... [2025-01-22 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:01:06 [end_date_ymd] => 2025-01-22 03:01:06 [RateCDR] => 1 ) [2025-01-22 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:01:06' and `end` < '2025-01-22 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:01:19] Production.INFO: count ==269 [2025-01-22 03:01:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:01:06 - End Time 2025-01-22 03:01:06 [2025-01-22 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302099', 'tblTempUsageDetail_20' ) start [2025-01-22 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302099', 'tblTempUsageDetail_20' ) end [2025-01-22 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302099', 'tblTempVendorCDR_20' ) start [2025-01-22 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302099', 'tblTempVendorCDR_20' ) end [2025-01-22 03:01:19] Production.INFO: ProcessCDR(1,14302099,1,1,2) [2025-01-22 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302099', 'tblTempUsageDetail_20' ) start [2025-01-22 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302099', 'tblTempUsageDetail_20' ) end [2025-01-22 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:01:23] Production.INFO: ==14628== Releasing lock... [2025-01-22 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:02:05 [end_date_ymd] => 2025-01-22 03:02:05 [RateCDR] => 1 ) [2025-01-22 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:02:05' and `end` < '2025-01-22 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:02:18] Production.INFO: count ==268 [2025-01-22 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:02:05 - End Time 2025-01-22 03:02:05 [2025-01-22 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302104', 'tblTempUsageDetail_20' ) start [2025-01-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302104', 'tblTempUsageDetail_20' ) end [2025-01-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302104', 'tblTempVendorCDR_20' ) start [2025-01-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302104', 'tblTempVendorCDR_20' ) end [2025-01-22 03:02:19] Production.INFO: ProcessCDR(1,14302104,1,1,2) [2025-01-22 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302104', 'tblTempUsageDetail_20' ) start [2025-01-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302104', 'tblTempUsageDetail_20' ) end [2025-01-22 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:02:22] Production.INFO: ==14774== Releasing lock... [2025-01-22 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:03:05 [end_date_ymd] => 2025-01-22 03:03:05 [RateCDR] => 1 ) [2025-01-22 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:03:05' and `end` < '2025-01-22 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:03:17] Production.INFO: count ==266 [2025-01-22 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-22 00:03:05 - End Time 2025-01-22 03:03:05 [2025-01-22 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302109', 'tblTempUsageDetail_20' ) start [2025-01-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302109', 'tblTempUsageDetail_20' ) end [2025-01-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302109', 'tblTempVendorCDR_20' ) start [2025-01-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302109', 'tblTempVendorCDR_20' ) end [2025-01-22 03:03:17] Production.INFO: ProcessCDR(1,14302109,1,1,2) [2025-01-22 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302109', 'tblTempUsageDetail_20' ) start [2025-01-22 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302109', 'tblTempUsageDetail_20' ) end [2025-01-22 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:03:21] Production.INFO: ==14843== Releasing lock... [2025-01-22 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:04:05 [end_date_ymd] => 2025-01-22 03:04:05 [RateCDR] => 1 ) [2025-01-22 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:04:05' and `end` < '2025-01-22 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:04:17] Production.INFO: count ==266 [2025-01-22 03:04:17] Production.ERROR: pbx CDR StartTime 2025-01-22 00:04:05 - End Time 2025-01-22 03:04:05 [2025-01-22 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302111', 'tblTempUsageDetail_20' ) start [2025-01-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302111', 'tblTempUsageDetail_20' ) end [2025-01-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302111', 'tblTempVendorCDR_20' ) start [2025-01-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302111', 'tblTempVendorCDR_20' ) end [2025-01-22 03:04:17] Production.INFO: ProcessCDR(1,14302111,1,1,2) [2025-01-22 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302111', 'tblTempUsageDetail_20' ) start [2025-01-22 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302111', 'tblTempUsageDetail_20' ) end [2025-01-22 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:04:20] Production.INFO: ==14911== Releasing lock... [2025-01-22 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:04:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:05:05 [end_date_ymd] => 2025-01-22 03:05:05 [RateCDR] => 1 ) [2025-01-22 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:05:05' and `end` < '2025-01-22 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:05:19] Production.INFO: count ==266 [2025-01-22 03:05:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:05:05 - End Time 2025-01-22 03:05:05 [2025-01-22 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302119', 'tblTempUsageDetail_20' ) start [2025-01-22 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302119', 'tblTempUsageDetail_20' ) end [2025-01-22 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302119', 'tblTempVendorCDR_20' ) start [2025-01-22 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302119', 'tblTempVendorCDR_20' ) end [2025-01-22 03:05:19] Production.INFO: ProcessCDR(1,14302119,1,1,2) [2025-01-22 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302119', 'tblTempUsageDetail_20' ) start [2025-01-22 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302119', 'tblTempUsageDetail_20' ) end [2025-01-22 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:05:22] Production.INFO: ==15021== Releasing lock... [2025-01-22 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:06:05 [end_date_ymd] => 2025-01-22 03:06:05 [RateCDR] => 1 ) [2025-01-22 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:06:05' and `end` < '2025-01-22 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:06:18] Production.INFO: count ==266 [2025-01-22 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:06:05 - End Time 2025-01-22 03:06:05 [2025-01-22 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302124', 'tblTempUsageDetail_20' ) start [2025-01-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302124', 'tblTempUsageDetail_20' ) end [2025-01-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302124', 'tblTempVendorCDR_20' ) start [2025-01-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302124', 'tblTempVendorCDR_20' ) end [2025-01-22 03:06:18] Production.INFO: ProcessCDR(1,14302124,1,1,2) [2025-01-22 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302124', 'tblTempUsageDetail_20' ) start [2025-01-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302124', 'tblTempUsageDetail_20' ) end [2025-01-22 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:06:21] Production.INFO: ==15128== Releasing lock... [2025-01-22 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:07:06 [end_date_ymd] => 2025-01-22 03:07:06 [RateCDR] => 1 ) [2025-01-22 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:07:06' and `end` < '2025-01-22 03:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:07:19] Production.INFO: count ==266 [2025-01-22 03:07:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:07:06 - End Time 2025-01-22 03:07:06 [2025-01-22 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302129', 'tblTempUsageDetail_20' ) start [2025-01-22 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302129', 'tblTempUsageDetail_20' ) end [2025-01-22 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302129', 'tblTempVendorCDR_20' ) start [2025-01-22 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302129', 'tblTempVendorCDR_20' ) end [2025-01-22 03:07:19] Production.INFO: ProcessCDR(1,14302129,1,1,2) [2025-01-22 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302129', 'tblTempUsageDetail_20' ) start [2025-01-22 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302129', 'tblTempUsageDetail_20' ) end [2025-01-22 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:07:22] Production.INFO: ==15198== Releasing lock... [2025-01-22 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:08:04 [end_date_ymd] => 2025-01-22 03:08:04 [RateCDR] => 1 ) [2025-01-22 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:08:04' and `end` < '2025-01-22 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:08:17] Production.INFO: count ==266 [2025-01-22 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-22 00:08:04 - End Time 2025-01-22 03:08:04 [2025-01-22 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302134', 'tblTempUsageDetail_20' ) start [2025-01-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302134', 'tblTempUsageDetail_20' ) end [2025-01-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302134', 'tblTempVendorCDR_20' ) start [2025-01-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302134', 'tblTempVendorCDR_20' ) end [2025-01-22 03:08:17] Production.INFO: ProcessCDR(1,14302134,1,1,2) [2025-01-22 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302134', 'tblTempUsageDetail_20' ) start [2025-01-22 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302134', 'tblTempUsageDetail_20' ) end [2025-01-22 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:08:20] Production.INFO: ==15272== Releasing lock... [2025-01-22 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:09:06 [end_date_ymd] => 2025-01-22 03:09:06 [RateCDR] => 1 ) [2025-01-22 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:09:06' and `end` < '2025-01-22 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:09:19] Production.INFO: count ==264 [2025-01-22 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:09:06 - End Time 2025-01-22 03:09:06 [2025-01-22 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302139', 'tblTempUsageDetail_20' ) start [2025-01-22 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302139', 'tblTempUsageDetail_20' ) end [2025-01-22 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302139', 'tblTempVendorCDR_20' ) start [2025-01-22 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302139', 'tblTempVendorCDR_20' ) end [2025-01-22 03:09:19] Production.INFO: ProcessCDR(1,14302139,1,1,2) [2025-01-22 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302139', 'tblTempUsageDetail_20' ) start [2025-01-22 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302139', 'tblTempUsageDetail_20' ) end [2025-01-22 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:09:22] Production.INFO: ==15419== Releasing lock... [2025-01-22 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:10:07 [end_date_ymd] => 2025-01-22 03:10:07 [RateCDR] => 1 ) [2025-01-22 03:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:10:07' and `end` < '2025-01-22 03:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:10:19] Production.INFO: count ==260 [2025-01-22 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:10:07 - End Time 2025-01-22 03:10:07 [2025-01-22 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302145', 'tblTempUsageDetail_20' ) start [2025-01-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302145', 'tblTempUsageDetail_20' ) end [2025-01-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302145', 'tblTempVendorCDR_20' ) start [2025-01-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302145', 'tblTempVendorCDR_20' ) end [2025-01-22 03:10:19] Production.INFO: ProcessCDR(1,14302145,1,1,2) [2025-01-22 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302145', 'tblTempUsageDetail_20' ) start [2025-01-22 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302145', 'tblTempUsageDetail_20' ) end [2025-01-22 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:10:22] Production.INFO: ==15494== Releasing lock... [2025-01-22 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:11:05 [end_date_ymd] => 2025-01-22 03:11:05 [RateCDR] => 1 ) [2025-01-22 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:11:05' and `end` < '2025-01-22 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:11:18] Production.INFO: count ==246 [2025-01-22 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:11:05 - End Time 2025-01-22 03:11:05 [2025-01-22 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302150', 'tblTempUsageDetail_20' ) start [2025-01-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302150', 'tblTempUsageDetail_20' ) end [2025-01-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302150', 'tblTempVendorCDR_20' ) start [2025-01-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302150', 'tblTempVendorCDR_20' ) end [2025-01-22 03:11:18] Production.INFO: ProcessCDR(1,14302150,1,1,2) [2025-01-22 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302150', 'tblTempUsageDetail_20' ) start [2025-01-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302150', 'tblTempUsageDetail_20' ) end [2025-01-22 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:11:21] Production.INFO: ==15584== Releasing lock... [2025-01-22 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:12:06 [end_date_ymd] => 2025-01-22 03:12:06 [RateCDR] => 1 ) [2025-01-22 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:12:06' and `end` < '2025-01-22 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:12:18] Production.INFO: count ==245 [2025-01-22 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:12:06 - End Time 2025-01-22 03:12:06 [2025-01-22 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302155', 'tblTempUsageDetail_20' ) start [2025-01-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302155', 'tblTempUsageDetail_20' ) end [2025-01-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302155', 'tblTempVendorCDR_20' ) start [2025-01-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302155', 'tblTempVendorCDR_20' ) end [2025-01-22 03:12:18] Production.INFO: ProcessCDR(1,14302155,1,1,2) [2025-01-22 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302155', 'tblTempUsageDetail_20' ) start [2025-01-22 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302155', 'tblTempUsageDetail_20' ) end [2025-01-22 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:12:21] Production.INFO: ==15685== Releasing lock... [2025-01-22 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:13:06 [end_date_ymd] => 2025-01-22 03:13:06 [RateCDR] => 1 ) [2025-01-22 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:13:06' and `end` < '2025-01-22 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:13:19] Production.INFO: count ==245 [2025-01-22 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:13:06 - End Time 2025-01-22 03:13:06 [2025-01-22 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302160', 'tblTempUsageDetail_20' ) start [2025-01-22 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302160', 'tblTempUsageDetail_20' ) end [2025-01-22 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302160', 'tblTempVendorCDR_20' ) start [2025-01-22 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302160', 'tblTempVendorCDR_20' ) end [2025-01-22 03:13:19] Production.INFO: ProcessCDR(1,14302160,1,1,2) [2025-01-22 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302160', 'tblTempUsageDetail_20' ) start [2025-01-22 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302160', 'tblTempUsageDetail_20' ) end [2025-01-22 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:13:22] Production.INFO: ==15836== Releasing lock... [2025-01-22 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:14:05 [end_date_ymd] => 2025-01-22 03:14:05 [RateCDR] => 1 ) [2025-01-22 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:14:05' and `end` < '2025-01-22 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:14:18] Production.INFO: count ==245 [2025-01-22 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:14:05 - End Time 2025-01-22 03:14:05 [2025-01-22 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302165', 'tblTempUsageDetail_20' ) start [2025-01-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302165', 'tblTempUsageDetail_20' ) end [2025-01-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302165', 'tblTempVendorCDR_20' ) start [2025-01-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302165', 'tblTempVendorCDR_20' ) end [2025-01-22 03:14:18] Production.INFO: ProcessCDR(1,14302165,1,1,2) [2025-01-22 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302165', 'tblTempUsageDetail_20' ) start [2025-01-22 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302165', 'tblTempUsageDetail_20' ) end [2025-01-22 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:14:22] Production.INFO: ==15908== Releasing lock... [2025-01-22 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:15:05 [end_date_ymd] => 2025-01-22 03:15:05 [RateCDR] => 1 ) [2025-01-22 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:15:05' and `end` < '2025-01-22 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:15:18] Production.INFO: count ==245 [2025-01-22 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:15:05 - End Time 2025-01-22 03:15:05 [2025-01-22 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302170', 'tblTempUsageDetail_20' ) start [2025-01-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302170', 'tblTempUsageDetail_20' ) end [2025-01-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302170', 'tblTempVendorCDR_20' ) start [2025-01-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302170', 'tblTempVendorCDR_20' ) end [2025-01-22 03:15:18] Production.INFO: ProcessCDR(1,14302170,1,1,2) [2025-01-22 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302170', 'tblTempUsageDetail_20' ) start [2025-01-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302170', 'tblTempUsageDetail_20' ) end [2025-01-22 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:15:21] Production.INFO: ==15985== Releasing lock... [2025-01-22 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:16:06 [end_date_ymd] => 2025-01-22 03:16:06 [RateCDR] => 1 ) [2025-01-22 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:16:06' and `end` < '2025-01-22 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:16:19] Production.INFO: count ==245 [2025-01-22 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:16:06 - End Time 2025-01-22 03:16:06 [2025-01-22 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302175', 'tblTempUsageDetail_20' ) start [2025-01-22 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302175', 'tblTempUsageDetail_20' ) end [2025-01-22 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302175', 'tblTempVendorCDR_20' ) start [2025-01-22 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302175', 'tblTempVendorCDR_20' ) end [2025-01-22 03:16:19] Production.INFO: ProcessCDR(1,14302175,1,1,2) [2025-01-22 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302175', 'tblTempUsageDetail_20' ) start [2025-01-22 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302175', 'tblTempUsageDetail_20' ) end [2025-01-22 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:16:22] Production.INFO: ==16062== Releasing lock... [2025-01-22 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:17:05 [end_date_ymd] => 2025-01-22 03:17:05 [RateCDR] => 1 ) [2025-01-22 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:17:05' and `end` < '2025-01-22 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:17:18] Production.INFO: count ==245 [2025-01-22 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:17:05 - End Time 2025-01-22 03:17:05 [2025-01-22 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302180', 'tblTempUsageDetail_20' ) start [2025-01-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302180', 'tblTempUsageDetail_20' ) end [2025-01-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302180', 'tblTempVendorCDR_20' ) start [2025-01-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302180', 'tblTempVendorCDR_20' ) end [2025-01-22 03:17:18] Production.INFO: ProcessCDR(1,14302180,1,1,2) [2025-01-22 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302180', 'tblTempUsageDetail_20' ) start [2025-01-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302180', 'tblTempUsageDetail_20' ) end [2025-01-22 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:17:21] Production.INFO: ==16219== Releasing lock... [2025-01-22 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:18:05 [end_date_ymd] => 2025-01-22 03:18:05 [RateCDR] => 1 ) [2025-01-22 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:18:05' and `end` < '2025-01-22 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:18:19] Production.INFO: count ==247 [2025-01-22 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:18:05 - End Time 2025-01-22 03:18:05 [2025-01-22 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302185', 'tblTempUsageDetail_20' ) start [2025-01-22 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302185', 'tblTempUsageDetail_20' ) end [2025-01-22 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302185', 'tblTempVendorCDR_20' ) start [2025-01-22 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302185', 'tblTempVendorCDR_20' ) end [2025-01-22 03:18:19] Production.INFO: ProcessCDR(1,14302185,1,1,2) [2025-01-22 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302185', 'tblTempUsageDetail_20' ) start [2025-01-22 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302185', 'tblTempUsageDetail_20' ) end [2025-01-22 03:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:18:23] Production.INFO: ==16335== Releasing lock... [2025-01-22 03:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:19:05 [end_date_ymd] => 2025-01-22 03:19:05 [RateCDR] => 1 ) [2025-01-22 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:19:05' and `end` < '2025-01-22 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:19:18] Production.INFO: count ==247 [2025-01-22 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:19:05 - End Time 2025-01-22 03:19:05 [2025-01-22 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302190', 'tblTempUsageDetail_20' ) start [2025-01-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302190', 'tblTempUsageDetail_20' ) end [2025-01-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302190', 'tblTempVendorCDR_20' ) start [2025-01-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302190', 'tblTempVendorCDR_20' ) end [2025-01-22 03:19:18] Production.INFO: ProcessCDR(1,14302190,1,1,2) [2025-01-22 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302190', 'tblTempUsageDetail_20' ) start [2025-01-22 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302190', 'tblTempUsageDetail_20' ) end [2025-01-22 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:19:22] Production.INFO: ==16412== Releasing lock... [2025-01-22 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:20:06 [end_date_ymd] => 2025-01-22 03:20:06 [RateCDR] => 1 ) [2025-01-22 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:20:06' and `end` < '2025-01-22 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:20:19] Production.INFO: count ==245 [2025-01-22 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:20:06 - End Time 2025-01-22 03:20:06 [2025-01-22 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302196', 'tblTempUsageDetail_20' ) start [2025-01-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302196', 'tblTempUsageDetail_20' ) end [2025-01-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302196', 'tblTempVendorCDR_20' ) start [2025-01-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302196', 'tblTempVendorCDR_20' ) end [2025-01-22 03:20:19] Production.INFO: ProcessCDR(1,14302196,1,1,2) [2025-01-22 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302196', 'tblTempUsageDetail_20' ) start [2025-01-22 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302196', 'tblTempUsageDetail_20' ) end [2025-01-22 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:20:23] Production.INFO: ==16493== Releasing lock... [2025-01-22 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:21:05 [end_date_ymd] => 2025-01-22 03:21:05 [RateCDR] => 1 ) [2025-01-22 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:21:05' and `end` < '2025-01-22 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:21:18] Production.INFO: count ==240 [2025-01-22 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:21:05 - End Time 2025-01-22 03:21:05 [2025-01-22 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302201', 'tblTempUsageDetail_20' ) start [2025-01-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302201', 'tblTempUsageDetail_20' ) end [2025-01-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302201', 'tblTempVendorCDR_20' ) start [2025-01-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302201', 'tblTempVendorCDR_20' ) end [2025-01-22 03:21:18] Production.INFO: ProcessCDR(1,14302201,1,1,2) [2025-01-22 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302201', 'tblTempUsageDetail_20' ) start [2025-01-22 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302201', 'tblTempUsageDetail_20' ) end [2025-01-22 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:21:21] Production.INFO: ==16568== Releasing lock... [2025-01-22 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:22:05 [end_date_ymd] => 2025-01-22 03:22:05 [RateCDR] => 1 ) [2025-01-22 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:22:05' and `end` < '2025-01-22 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:22:19] Production.INFO: count ==240 [2025-01-22 03:22:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:22:05 - End Time 2025-01-22 03:22:05 [2025-01-22 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302206', 'tblTempUsageDetail_20' ) start [2025-01-22 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302206', 'tblTempUsageDetail_20' ) end [2025-01-22 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302206', 'tblTempVendorCDR_20' ) start [2025-01-22 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302206', 'tblTempVendorCDR_20' ) end [2025-01-22 03:22:19] Production.INFO: ProcessCDR(1,14302206,1,1,2) [2025-01-22 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302206', 'tblTempUsageDetail_20' ) start [2025-01-22 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302206', 'tblTempUsageDetail_20' ) end [2025-01-22 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:22:22] Production.INFO: ==16645== Releasing lock... [2025-01-22 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:23:05 [end_date_ymd] => 2025-01-22 03:23:05 [RateCDR] => 1 ) [2025-01-22 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:23:05' and `end` < '2025-01-22 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:23:18] Production.INFO: count ==239 [2025-01-22 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:23:05 - End Time 2025-01-22 03:23:05 [2025-01-22 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302211', 'tblTempUsageDetail_20' ) start [2025-01-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302211', 'tblTempUsageDetail_20' ) end [2025-01-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302211', 'tblTempVendorCDR_20' ) start [2025-01-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302211', 'tblTempVendorCDR_20' ) end [2025-01-22 03:23:18] Production.INFO: ProcessCDR(1,14302211,1,1,2) [2025-01-22 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302211', 'tblTempUsageDetail_20' ) start [2025-01-22 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302211', 'tblTempUsageDetail_20' ) end [2025-01-22 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:23:21] Production.INFO: ==16719== Releasing lock... [2025-01-22 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:24:05 [end_date_ymd] => 2025-01-22 03:24:05 [RateCDR] => 1 ) [2025-01-22 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:24:05' and `end` < '2025-01-22 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:24:18] Production.INFO: count ==239 [2025-01-22 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:24:05 - End Time 2025-01-22 03:24:05 [2025-01-22 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302216', 'tblTempUsageDetail_20' ) start [2025-01-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302216', 'tblTempUsageDetail_20' ) end [2025-01-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302216', 'tblTempVendorCDR_20' ) start [2025-01-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302216', 'tblTempVendorCDR_20' ) end [2025-01-22 03:24:18] Production.INFO: ProcessCDR(1,14302216,1,1,2) [2025-01-22 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302216', 'tblTempUsageDetail_20' ) start [2025-01-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302216', 'tblTempUsageDetail_20' ) end [2025-01-22 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:24:21] Production.INFO: ==16801== Releasing lock... [2025-01-22 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:25:05 [end_date_ymd] => 2025-01-22 03:25:05 [RateCDR] => 1 ) [2025-01-22 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:25:05' and `end` < '2025-01-22 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:25:19] Production.INFO: count ==239 [2025-01-22 03:25:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:25:05 - End Time 2025-01-22 03:25:05 [2025-01-22 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302221', 'tblTempUsageDetail_20' ) start [2025-01-22 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302221', 'tblTempUsageDetail_20' ) end [2025-01-22 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302221', 'tblTempVendorCDR_20' ) start [2025-01-22 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302221', 'tblTempVendorCDR_20' ) end [2025-01-22 03:25:19] Production.INFO: ProcessCDR(1,14302221,1,1,2) [2025-01-22 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302221', 'tblTempUsageDetail_20' ) start [2025-01-22 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302221', 'tblTempUsageDetail_20' ) end [2025-01-22 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:25:22] Production.INFO: ==16876== Releasing lock... [2025-01-22 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:26:05 [end_date_ymd] => 2025-01-22 03:26:05 [RateCDR] => 1 ) [2025-01-22 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:26:05' and `end` < '2025-01-22 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:26:18] Production.INFO: count ==239 [2025-01-22 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:26:05 - End Time 2025-01-22 03:26:05 [2025-01-22 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302226', 'tblTempUsageDetail_20' ) start [2025-01-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302226', 'tblTempUsageDetail_20' ) end [2025-01-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302226', 'tblTempVendorCDR_20' ) start [2025-01-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302226', 'tblTempVendorCDR_20' ) end [2025-01-22 03:26:18] Production.INFO: ProcessCDR(1,14302226,1,1,2) [2025-01-22 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302226', 'tblTempUsageDetail_20' ) start [2025-01-22 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302226', 'tblTempUsageDetail_20' ) end [2025-01-22 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:26:22] Production.INFO: ==16956== Releasing lock... [2025-01-22 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:27:05 [end_date_ymd] => 2025-01-22 03:27:05 [RateCDR] => 1 ) [2025-01-22 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:27:05' and `end` < '2025-01-22 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:27:17] Production.INFO: count ==238 [2025-01-22 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-22 00:27:05 - End Time 2025-01-22 03:27:05 [2025-01-22 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302231', 'tblTempUsageDetail_20' ) start [2025-01-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302231', 'tblTempUsageDetail_20' ) end [2025-01-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302231', 'tblTempVendorCDR_20' ) start [2025-01-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302231', 'tblTempVendorCDR_20' ) end [2025-01-22 03:27:17] Production.INFO: ProcessCDR(1,14302231,1,1,2) [2025-01-22 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302231', 'tblTempUsageDetail_20' ) start [2025-01-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302231', 'tblTempUsageDetail_20' ) end [2025-01-22 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:27:21] Production.INFO: ==17030== Releasing lock... [2025-01-22 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:28:05 [end_date_ymd] => 2025-01-22 03:28:05 [RateCDR] => 1 ) [2025-01-22 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:28:05' and `end` < '2025-01-22 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:28:18] Production.INFO: count ==237 [2025-01-22 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:28:05 - End Time 2025-01-22 03:28:05 [2025-01-22 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302236', 'tblTempUsageDetail_20' ) start [2025-01-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302236', 'tblTempUsageDetail_20' ) end [2025-01-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302236', 'tblTempVendorCDR_20' ) start [2025-01-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302236', 'tblTempVendorCDR_20' ) end [2025-01-22 03:28:18] Production.INFO: ProcessCDR(1,14302236,1,1,2) [2025-01-22 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302236', 'tblTempUsageDetail_20' ) start [2025-01-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302236', 'tblTempUsageDetail_20' ) end [2025-01-22 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:28:21] Production.INFO: ==17106== Releasing lock... [2025-01-22 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:29:05 [end_date_ymd] => 2025-01-22 03:29:05 [RateCDR] => 1 ) [2025-01-22 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:29:05' and `end` < '2025-01-22 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:29:18] Production.INFO: count ==237 [2025-01-22 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:29:05 - End Time 2025-01-22 03:29:05 [2025-01-22 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302241', 'tblTempUsageDetail_20' ) start [2025-01-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302241', 'tblTempUsageDetail_20' ) end [2025-01-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302241', 'tblTempVendorCDR_20' ) start [2025-01-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302241', 'tblTempVendorCDR_20' ) end [2025-01-22 03:29:18] Production.INFO: ProcessCDR(1,14302241,1,1,2) [2025-01-22 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302241', 'tblTempUsageDetail_20' ) start [2025-01-22 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302241', 'tblTempUsageDetail_20' ) end [2025-01-22 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:29:21] Production.INFO: ==17180== Releasing lock... [2025-01-22 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:30:06 [end_date_ymd] => 2025-01-22 03:30:06 [RateCDR] => 1 ) [2025-01-22 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:30:06' and `end` < '2025-01-22 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:30:19] Production.INFO: count ==224 [2025-01-22 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:30:06 - End Time 2025-01-22 03:30:06 [2025-01-22 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302247', 'tblTempUsageDetail_20' ) start [2025-01-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302247', 'tblTempUsageDetail_20' ) end [2025-01-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302247', 'tblTempVendorCDR_20' ) start [2025-01-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302247', 'tblTempVendorCDR_20' ) end [2025-01-22 03:30:19] Production.INFO: ProcessCDR(1,14302247,1,1,2) [2025-01-22 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302247', 'tblTempUsageDetail_20' ) start [2025-01-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302247', 'tblTempUsageDetail_20' ) end [2025-01-22 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:30:22] Production.INFO: ==17261== Releasing lock... [2025-01-22 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:31:05 [end_date_ymd] => 2025-01-22 03:31:05 [RateCDR] => 1 ) [2025-01-22 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:31:05' and `end` < '2025-01-22 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:31:19] Production.INFO: count ==221 [2025-01-22 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:31:05 - End Time 2025-01-22 03:31:05 [2025-01-22 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302252', 'tblTempUsageDetail_20' ) start [2025-01-22 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302252', 'tblTempUsageDetail_20' ) end [2025-01-22 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302252', 'tblTempVendorCDR_20' ) start [2025-01-22 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302252', 'tblTempVendorCDR_20' ) end [2025-01-22 03:31:19] Production.INFO: ProcessCDR(1,14302252,1,1,2) [2025-01-22 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302252', 'tblTempUsageDetail_20' ) start [2025-01-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302252', 'tblTempUsageDetail_20' ) end [2025-01-22 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:31:22] Production.INFO: ==17341== Releasing lock... [2025-01-22 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:32:06 [end_date_ymd] => 2025-01-22 03:32:06 [RateCDR] => 1 ) [2025-01-22 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:32:06' and `end` < '2025-01-22 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:32:18] Production.INFO: count ==220 [2025-01-22 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:32:06 - End Time 2025-01-22 03:32:06 [2025-01-22 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302257', 'tblTempUsageDetail_20' ) start [2025-01-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302257', 'tblTempUsageDetail_20' ) end [2025-01-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302257', 'tblTempVendorCDR_20' ) start [2025-01-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302257', 'tblTempVendorCDR_20' ) end [2025-01-22 03:32:18] Production.INFO: ProcessCDR(1,14302257,1,1,2) [2025-01-22 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302257', 'tblTempUsageDetail_20' ) start [2025-01-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302257', 'tblTempUsageDetail_20' ) end [2025-01-22 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:32:22] Production.INFO: ==17421== Releasing lock... [2025-01-22 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:33:06 [end_date_ymd] => 2025-01-22 03:33:06 [RateCDR] => 1 ) [2025-01-22 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:33:06' and `end` < '2025-01-22 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:33:19] Production.INFO: count ==220 [2025-01-22 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:33:06 - End Time 2025-01-22 03:33:06 [2025-01-22 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302262', 'tblTempUsageDetail_20' ) start [2025-01-22 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302262', 'tblTempUsageDetail_20' ) end [2025-01-22 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302262', 'tblTempVendorCDR_20' ) start [2025-01-22 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302262', 'tblTempVendorCDR_20' ) end [2025-01-22 03:33:19] Production.INFO: ProcessCDR(1,14302262,1,1,2) [2025-01-22 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302262', 'tblTempUsageDetail_20' ) start [2025-01-22 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302262', 'tblTempUsageDetail_20' ) end [2025-01-22 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:33:22] Production.INFO: ==17501== Releasing lock... [2025-01-22 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:33:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:34:06 [end_date_ymd] => 2025-01-22 03:34:06 [RateCDR] => 1 ) [2025-01-22 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:34:06' and `end` < '2025-01-22 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:34:18] Production.INFO: count ==220 [2025-01-22 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:34:06 - End Time 2025-01-22 03:34:06 [2025-01-22 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302267', 'tblTempUsageDetail_20' ) start [2025-01-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302267', 'tblTempUsageDetail_20' ) end [2025-01-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302267', 'tblTempVendorCDR_20' ) start [2025-01-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302267', 'tblTempVendorCDR_20' ) end [2025-01-22 03:34:18] Production.INFO: ProcessCDR(1,14302267,1,1,2) [2025-01-22 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302267', 'tblTempUsageDetail_20' ) start [2025-01-22 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302267', 'tblTempUsageDetail_20' ) end [2025-01-22 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:34:22] Production.INFO: ==17617== Releasing lock... [2025-01-22 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:35:05 [end_date_ymd] => 2025-01-22 03:35:05 [RateCDR] => 1 ) [2025-01-22 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:35:05' and `end` < '2025-01-22 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:35:18] Production.INFO: count ==220 [2025-01-22 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:35:05 - End Time 2025-01-22 03:35:05 [2025-01-22 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302272', 'tblTempUsageDetail_20' ) start [2025-01-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302272', 'tblTempUsageDetail_20' ) end [2025-01-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302272', 'tblTempVendorCDR_20' ) start [2025-01-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302272', 'tblTempVendorCDR_20' ) end [2025-01-22 03:35:18] Production.INFO: ProcessCDR(1,14302272,1,1,2) [2025-01-22 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302272', 'tblTempUsageDetail_20' ) start [2025-01-22 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302272', 'tblTempUsageDetail_20' ) end [2025-01-22 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:35:22] Production.INFO: ==17695== Releasing lock... [2025-01-22 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:35:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:36:06 [end_date_ymd] => 2025-01-22 03:36:06 [RateCDR] => 1 ) [2025-01-22 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:36:06' and `end` < '2025-01-22 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:36:19] Production.INFO: count ==220 [2025-01-22 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:36:06 - End Time 2025-01-22 03:36:06 [2025-01-22 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302277', 'tblTempUsageDetail_20' ) start [2025-01-22 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302277', 'tblTempUsageDetail_20' ) end [2025-01-22 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302277', 'tblTempVendorCDR_20' ) start [2025-01-22 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302277', 'tblTempVendorCDR_20' ) end [2025-01-22 03:36:19] Production.INFO: ProcessCDR(1,14302277,1,1,2) [2025-01-22 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302277', 'tblTempUsageDetail_20' ) start [2025-01-22 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302277', 'tblTempUsageDetail_20' ) end [2025-01-22 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:36:23] Production.INFO: ==17772== Releasing lock... [2025-01-22 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:36:23] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:37:06 [end_date_ymd] => 2025-01-22 03:37:06 [RateCDR] => 1 ) [2025-01-22 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:37:06' and `end` < '2025-01-22 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:37:19] Production.INFO: count ==220 [2025-01-22 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:37:06 - End Time 2025-01-22 03:37:06 [2025-01-22 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302282', 'tblTempUsageDetail_20' ) start [2025-01-22 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302282', 'tblTempUsageDetail_20' ) end [2025-01-22 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302282', 'tblTempVendorCDR_20' ) start [2025-01-22 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302282', 'tblTempVendorCDR_20' ) end [2025-01-22 03:37:19] Production.INFO: ProcessCDR(1,14302282,1,1,2) [2025-01-22 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302282', 'tblTempUsageDetail_20' ) start [2025-01-22 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302282', 'tblTempUsageDetail_20' ) end [2025-01-22 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:37:22] Production.INFO: ==17849== Releasing lock... [2025-01-22 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:37:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:38:05 [end_date_ymd] => 2025-01-22 03:38:05 [RateCDR] => 1 ) [2025-01-22 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:38:05' and `end` < '2025-01-22 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:38:19] Production.INFO: count ==220 [2025-01-22 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:38:05 - End Time 2025-01-22 03:38:05 [2025-01-22 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302287', 'tblTempUsageDetail_20' ) start [2025-01-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302287', 'tblTempUsageDetail_20' ) end [2025-01-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302287', 'tblTempVendorCDR_20' ) start [2025-01-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302287', 'tblTempVendorCDR_20' ) end [2025-01-22 03:38:19] Production.INFO: ProcessCDR(1,14302287,1,1,2) [2025-01-22 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302287', 'tblTempUsageDetail_20' ) start [2025-01-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302287', 'tblTempUsageDetail_20' ) end [2025-01-22 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:38:22] Production.INFO: ==17928== Releasing lock... [2025-01-22 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:39:06 [end_date_ymd] => 2025-01-22 03:39:06 [RateCDR] => 1 ) [2025-01-22 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:39:06' and `end` < '2025-01-22 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:39:18] Production.INFO: count ==220 [2025-01-22 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:39:06 - End Time 2025-01-22 03:39:06 [2025-01-22 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302292', 'tblTempUsageDetail_20' ) start [2025-01-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302292', 'tblTempUsageDetail_20' ) end [2025-01-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302292', 'tblTempVendorCDR_20' ) start [2025-01-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302292', 'tblTempVendorCDR_20' ) end [2025-01-22 03:39:18] Production.INFO: ProcessCDR(1,14302292,1,1,2) [2025-01-22 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302292', 'tblTempUsageDetail_20' ) start [2025-01-22 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302292', 'tblTempUsageDetail_20' ) end [2025-01-22 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:39:22] Production.INFO: ==18007== Releasing lock... [2025-01-22 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:40:06 [end_date_ymd] => 2025-01-22 03:40:06 [RateCDR] => 1 ) [2025-01-22 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:40:06' and `end` < '2025-01-22 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:40:19] Production.INFO: count ==216 [2025-01-22 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:40:06 - End Time 2025-01-22 03:40:06 [2025-01-22 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302298', 'tblTempUsageDetail_20' ) start [2025-01-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302298', 'tblTempUsageDetail_20' ) end [2025-01-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302298', 'tblTempVendorCDR_20' ) start [2025-01-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302298', 'tblTempVendorCDR_20' ) end [2025-01-22 03:40:19] Production.INFO: ProcessCDR(1,14302298,1,1,2) [2025-01-22 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302298', 'tblTempUsageDetail_20' ) start [2025-01-22 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302298', 'tblTempUsageDetail_20' ) end [2025-01-22 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:40:23] Production.INFO: ==18091== Releasing lock... [2025-01-22 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:40:23] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:41:06 [end_date_ymd] => 2025-01-22 03:41:06 [RateCDR] => 1 ) [2025-01-22 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:41:06' and `end` < '2025-01-22 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:41:19] Production.INFO: count ==214 [2025-01-22 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:41:06 - End Time 2025-01-22 03:41:06 [2025-01-22 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302303', 'tblTempUsageDetail_20' ) start [2025-01-22 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302303', 'tblTempUsageDetail_20' ) end [2025-01-22 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302303', 'tblTempVendorCDR_20' ) start [2025-01-22 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302303', 'tblTempVendorCDR_20' ) end [2025-01-22 03:41:19] Production.INFO: ProcessCDR(1,14302303,1,1,2) [2025-01-22 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302303', 'tblTempUsageDetail_20' ) start [2025-01-22 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302303', 'tblTempUsageDetail_20' ) end [2025-01-22 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:41:23] Production.INFO: ==18175== Releasing lock... [2025-01-22 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:41:23] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:42:06 [end_date_ymd] => 2025-01-22 03:42:06 [RateCDR] => 1 ) [2025-01-22 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:42:06' and `end` < '2025-01-22 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:42:18] Production.INFO: count ==214 [2025-01-22 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:42:06 - End Time 2025-01-22 03:42:06 [2025-01-22 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302308', 'tblTempUsageDetail_20' ) start [2025-01-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302308', 'tblTempUsageDetail_20' ) end [2025-01-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302308', 'tblTempVendorCDR_20' ) start [2025-01-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302308', 'tblTempVendorCDR_20' ) end [2025-01-22 03:42:18] Production.INFO: ProcessCDR(1,14302308,1,1,2) [2025-01-22 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302308', 'tblTempUsageDetail_20' ) start [2025-01-22 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302308', 'tblTempUsageDetail_20' ) end [2025-01-22 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:42:22] Production.INFO: ==18255== Releasing lock... [2025-01-22 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:43:06 [end_date_ymd] => 2025-01-22 03:43:06 [RateCDR] => 1 ) [2025-01-22 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:43:06' and `end` < '2025-01-22 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:43:19] Production.INFO: count ==212 [2025-01-22 03:43:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:43:06 - End Time 2025-01-22 03:43:06 [2025-01-22 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302313', 'tblTempUsageDetail_20' ) start [2025-01-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302313', 'tblTempUsageDetail_20' ) end [2025-01-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302313', 'tblTempVendorCDR_20' ) start [2025-01-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302313', 'tblTempVendorCDR_20' ) end [2025-01-22 03:43:19] Production.INFO: ProcessCDR(1,14302313,1,1,2) [2025-01-22 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302313', 'tblTempUsageDetail_20' ) start [2025-01-22 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302313', 'tblTempUsageDetail_20' ) end [2025-01-22 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:43:22] Production.INFO: ==18340== Releasing lock... [2025-01-22 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:43:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:44:06 [end_date_ymd] => 2025-01-22 03:44:06 [RateCDR] => 1 ) [2025-01-22 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:44:06' and `end` < '2025-01-22 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:44:19] Production.INFO: count ==211 [2025-01-22 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:44:06 - End Time 2025-01-22 03:44:06 [2025-01-22 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302318', 'tblTempUsageDetail_20' ) start [2025-01-22 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302318', 'tblTempUsageDetail_20' ) end [2025-01-22 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302318', 'tblTempVendorCDR_20' ) start [2025-01-22 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302318', 'tblTempVendorCDR_20' ) end [2025-01-22 03:44:19] Production.INFO: ProcessCDR(1,14302318,1,1,2) [2025-01-22 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302318', 'tblTempUsageDetail_20' ) start [2025-01-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302318', 'tblTempUsageDetail_20' ) end [2025-01-22 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:44:22] Production.INFO: ==18433== Releasing lock... [2025-01-22 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:45:05 [end_date_ymd] => 2025-01-22 03:45:05 [RateCDR] => 1 ) [2025-01-22 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:45:05' and `end` < '2025-01-22 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:45:18] Production.INFO: count ==211 [2025-01-22 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:45:05 - End Time 2025-01-22 03:45:05 [2025-01-22 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302323', 'tblTempUsageDetail_20' ) start [2025-01-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302323', 'tblTempUsageDetail_20' ) end [2025-01-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302323', 'tblTempVendorCDR_20' ) start [2025-01-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302323', 'tblTempVendorCDR_20' ) end [2025-01-22 03:45:18] Production.INFO: ProcessCDR(1,14302323,1,1,2) [2025-01-22 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302323', 'tblTempUsageDetail_20' ) start [2025-01-22 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302323', 'tblTempUsageDetail_20' ) end [2025-01-22 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:45:21] Production.INFO: ==18516== Releasing lock... [2025-01-22 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:46:05 [end_date_ymd] => 2025-01-22 03:46:05 [RateCDR] => 1 ) [2025-01-22 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:46:05' and `end` < '2025-01-22 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:46:19] Production.INFO: count ==211 [2025-01-22 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:46:05 - End Time 2025-01-22 03:46:05 [2025-01-22 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302328', 'tblTempUsageDetail_20' ) start [2025-01-22 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302328', 'tblTempUsageDetail_20' ) end [2025-01-22 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302328', 'tblTempVendorCDR_20' ) start [2025-01-22 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302328', 'tblTempVendorCDR_20' ) end [2025-01-22 03:46:19] Production.INFO: ProcessCDR(1,14302328,1,1,2) [2025-01-22 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302328', 'tblTempUsageDetail_20' ) start [2025-01-22 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302328', 'tblTempUsageDetail_20' ) end [2025-01-22 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:46:22] Production.INFO: ==18604== Releasing lock... [2025-01-22 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:47:06 [end_date_ymd] => 2025-01-22 03:47:06 [RateCDR] => 1 ) [2025-01-22 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:47:06' and `end` < '2025-01-22 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:47:19] Production.INFO: count ==211 [2025-01-22 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:47:06 - End Time 2025-01-22 03:47:06 [2025-01-22 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302333', 'tblTempUsageDetail_20' ) start [2025-01-22 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302333', 'tblTempUsageDetail_20' ) end [2025-01-22 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302333', 'tblTempVendorCDR_20' ) start [2025-01-22 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302333', 'tblTempVendorCDR_20' ) end [2025-01-22 03:47:19] Production.INFO: ProcessCDR(1,14302333,1,1,2) [2025-01-22 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302333', 'tblTempUsageDetail_20' ) start [2025-01-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302333', 'tblTempUsageDetail_20' ) end [2025-01-22 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:47:22] Production.INFO: ==18694== Releasing lock... [2025-01-22 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:47:22] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:48:05 [end_date_ymd] => 2025-01-22 03:48:05 [RateCDR] => 1 ) [2025-01-22 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:48:05' and `end` < '2025-01-22 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:48:18] Production.INFO: count ==211 [2025-01-22 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:48:05 - End Time 2025-01-22 03:48:05 [2025-01-22 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302338', 'tblTempUsageDetail_20' ) start [2025-01-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302338', 'tblTempUsageDetail_20' ) end [2025-01-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302338', 'tblTempVendorCDR_20' ) start [2025-01-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302338', 'tblTempVendorCDR_20' ) end [2025-01-22 03:48:18] Production.INFO: ProcessCDR(1,14302338,1,1,2) [2025-01-22 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302338', 'tblTempUsageDetail_20' ) start [2025-01-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302338', 'tblTempUsageDetail_20' ) end [2025-01-22 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:48:21] Production.INFO: ==18776== Releasing lock... [2025-01-22 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:49:05 [end_date_ymd] => 2025-01-22 03:49:05 [RateCDR] => 1 ) [2025-01-22 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:49:05' and `end` < '2025-01-22 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:49:18] Production.INFO: count ==211 [2025-01-22 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:49:05 - End Time 2025-01-22 03:49:05 [2025-01-22 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302343', 'tblTempUsageDetail_20' ) start [2025-01-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302343', 'tblTempUsageDetail_20' ) end [2025-01-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302343', 'tblTempVendorCDR_20' ) start [2025-01-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302343', 'tblTempVendorCDR_20' ) end [2025-01-22 03:49:18] Production.INFO: ProcessCDR(1,14302343,1,1,2) [2025-01-22 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302343', 'tblTempUsageDetail_20' ) start [2025-01-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302343', 'tblTempUsageDetail_20' ) end [2025-01-22 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:49:21] Production.INFO: ==18899== Releasing lock... [2025-01-22 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-22 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:50:06 [end_date_ymd] => 2025-01-22 03:50:06 [RateCDR] => 1 ) [2025-01-22 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:50:06' and `end` < '2025-01-22 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:50:19] Production.INFO: count ==199 [2025-01-22 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:50:06 - End Time 2025-01-22 03:50:06 [2025-01-22 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302349', 'tblTempUsageDetail_20' ) start [2025-01-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302349', 'tblTempUsageDetail_20' ) end [2025-01-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302349', 'tblTempVendorCDR_20' ) start [2025-01-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302349', 'tblTempVendorCDR_20' ) end [2025-01-22 03:50:19] Production.INFO: ProcessCDR(1,14302349,1,1,2) [2025-01-22 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302349', 'tblTempUsageDetail_20' ) start [2025-01-22 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302349', 'tblTempUsageDetail_20' ) end [2025-01-22 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:50:23] Production.INFO: ==18992== Releasing lock... [2025-01-22 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:51:06 [end_date_ymd] => 2025-01-22 03:51:06 [RateCDR] => 1 ) [2025-01-22 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:51:06' and `end` < '2025-01-22 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:51:19] Production.INFO: count ==196 [2025-01-22 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:51:06 - End Time 2025-01-22 03:51:06 [2025-01-22 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302354', 'tblTempUsageDetail_20' ) start [2025-01-22 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302354', 'tblTempUsageDetail_20' ) end [2025-01-22 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302354', 'tblTempVendorCDR_20' ) start [2025-01-22 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302354', 'tblTempVendorCDR_20' ) end [2025-01-22 03:51:19] Production.INFO: ProcessCDR(1,14302354,1,1,2) [2025-01-22 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302354', 'tblTempUsageDetail_20' ) start [2025-01-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302354', 'tblTempUsageDetail_20' ) end [2025-01-22 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:51:22] Production.INFO: ==19075== Releasing lock... [2025-01-22 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:52:06 [end_date_ymd] => 2025-01-22 03:52:06 [RateCDR] => 1 ) [2025-01-22 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:52:06' and `end` < '2025-01-22 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:52:19] Production.INFO: count ==196 [2025-01-22 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:52:06 - End Time 2025-01-22 03:52:06 [2025-01-22 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302359', 'tblTempUsageDetail_20' ) start [2025-01-22 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302359', 'tblTempUsageDetail_20' ) end [2025-01-22 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302359', 'tblTempVendorCDR_20' ) start [2025-01-22 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302359', 'tblTempVendorCDR_20' ) end [2025-01-22 03:52:19] Production.INFO: ProcessCDR(1,14302359,1,1,2) [2025-01-22 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302359', 'tblTempUsageDetail_20' ) start [2025-01-22 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302359', 'tblTempUsageDetail_20' ) end [2025-01-22 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:52:22] Production.INFO: ==19154== Releasing lock... [2025-01-22 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:53:05 [end_date_ymd] => 2025-01-22 03:53:05 [RateCDR] => 1 ) [2025-01-22 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:53:05' and `end` < '2025-01-22 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:53:19] Production.INFO: count ==197 [2025-01-22 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:53:05 - End Time 2025-01-22 03:53:05 [2025-01-22 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302364', 'tblTempUsageDetail_20' ) start [2025-01-22 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302364', 'tblTempUsageDetail_20' ) end [2025-01-22 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302364', 'tblTempVendorCDR_20' ) start [2025-01-22 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302364', 'tblTempVendorCDR_20' ) end [2025-01-22 03:53:19] Production.INFO: ProcessCDR(1,14302364,1,1,2) [2025-01-22 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302364', 'tblTempUsageDetail_20' ) start [2025-01-22 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302364', 'tblTempUsageDetail_20' ) end [2025-01-22 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:53:22] Production.INFO: ==19232== Releasing lock... [2025-01-22 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:54:05 [end_date_ymd] => 2025-01-22 03:54:05 [RateCDR] => 1 ) [2025-01-22 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:54:05' and `end` < '2025-01-22 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:54:19] Production.INFO: count ==198 [2025-01-22 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:54:05 - End Time 2025-01-22 03:54:05 [2025-01-22 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302369', 'tblTempUsageDetail_20' ) start [2025-01-22 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302369', 'tblTempUsageDetail_20' ) end [2025-01-22 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302369', 'tblTempVendorCDR_20' ) start [2025-01-22 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302369', 'tblTempVendorCDR_20' ) end [2025-01-22 03:54:19] Production.INFO: ProcessCDR(1,14302369,1,1,2) [2025-01-22 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302369', 'tblTempUsageDetail_20' ) start [2025-01-22 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302369', 'tblTempUsageDetail_20' ) end [2025-01-22 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:54:22] Production.INFO: ==19309== Releasing lock... [2025-01-22 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:55:05 [end_date_ymd] => 2025-01-22 03:55:05 [RateCDR] => 1 ) [2025-01-22 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:55:05' and `end` < '2025-01-22 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:55:18] Production.INFO: count ==198 [2025-01-22 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:55:05 - End Time 2025-01-22 03:55:05 [2025-01-22 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302374', 'tblTempUsageDetail_20' ) start [2025-01-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302374', 'tblTempUsageDetail_20' ) end [2025-01-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302374', 'tblTempVendorCDR_20' ) start [2025-01-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302374', 'tblTempVendorCDR_20' ) end [2025-01-22 03:55:18] Production.INFO: ProcessCDR(1,14302374,1,1,2) [2025-01-22 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302374', 'tblTempUsageDetail_20' ) start [2025-01-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302374', 'tblTempUsageDetail_20' ) end [2025-01-22 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:55:21] Production.INFO: ==19393== Releasing lock... [2025-01-22 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:56:05 [end_date_ymd] => 2025-01-22 03:56:05 [RateCDR] => 1 ) [2025-01-22 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:56:05' and `end` < '2025-01-22 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:56:18] Production.INFO: count ==198 [2025-01-22 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:56:05 - End Time 2025-01-22 03:56:05 [2025-01-22 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302379', 'tblTempUsageDetail_20' ) start [2025-01-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302379', 'tblTempUsageDetail_20' ) end [2025-01-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302379', 'tblTempVendorCDR_20' ) start [2025-01-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302379', 'tblTempVendorCDR_20' ) end [2025-01-22 03:56:18] Production.INFO: ProcessCDR(1,14302379,1,1,2) [2025-01-22 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302379', 'tblTempUsageDetail_20' ) start [2025-01-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302379', 'tblTempUsageDetail_20' ) end [2025-01-22 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:56:21] Production.INFO: ==19469== Releasing lock... [2025-01-22 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:57:05 [end_date_ymd] => 2025-01-22 03:57:05 [RateCDR] => 1 ) [2025-01-22 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:57:05' and `end` < '2025-01-22 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:57:18] Production.INFO: count ==198 [2025-01-22 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 00:57:05 - End Time 2025-01-22 03:57:05 [2025-01-22 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302384', 'tblTempUsageDetail_20' ) start [2025-01-22 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302384', 'tblTempUsageDetail_20' ) end [2025-01-22 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302384', 'tblTempVendorCDR_20' ) start [2025-01-22 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302384', 'tblTempVendorCDR_20' ) end [2025-01-22 03:57:18] Production.INFO: ProcessCDR(1,14302384,1,1,2) [2025-01-22 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302384', 'tblTempUsageDetail_20' ) start [2025-01-22 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302384', 'tblTempUsageDetail_20' ) end [2025-01-22 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:57:21] Production.INFO: ==19549== Releasing lock... [2025-01-22 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:58:05 [end_date_ymd] => 2025-01-22 03:58:05 [RateCDR] => 1 ) [2025-01-22 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:58:05' and `end` < '2025-01-22 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:58:19] Production.INFO: count ==198 [2025-01-22 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-22 00:58:05 - End Time 2025-01-22 03:58:05 [2025-01-22 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302389', 'tblTempUsageDetail_20' ) start [2025-01-22 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302389', 'tblTempUsageDetail_20' ) end [2025-01-22 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302389', 'tblTempVendorCDR_20' ) start [2025-01-22 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302389', 'tblTempVendorCDR_20' ) end [2025-01-22 03:58:19] Production.INFO: ProcessCDR(1,14302389,1,1,2) [2025-01-22 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302389', 'tblTempUsageDetail_20' ) start [2025-01-22 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302389', 'tblTempUsageDetail_20' ) end [2025-01-22 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:58:22] Production.INFO: ==19624== Releasing lock... [2025-01-22 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 00:59:05 [end_date_ymd] => 2025-01-22 03:59:05 [RateCDR] => 1 ) [2025-01-22 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 00:59:05' and `end` < '2025-01-22 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 03:59:17] Production.INFO: count ==197 [2025-01-22 03:59:17] Production.ERROR: pbx CDR StartTime 2025-01-22 00:59:05 - End Time 2025-01-22 03:59:05 [2025-01-22 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302394', 'tblTempUsageDetail_20' ) start [2025-01-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302394', 'tblTempUsageDetail_20' ) end [2025-01-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302394', 'tblTempVendorCDR_20' ) start [2025-01-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302394', 'tblTempVendorCDR_20' ) end [2025-01-22 03:59:17] Production.INFO: ProcessCDR(1,14302394,1,1,2) [2025-01-22 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302394', 'tblTempUsageDetail_20' ) start [2025-01-22 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302394', 'tblTempUsageDetail_20' ) end [2025-01-22 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 03:59:20] Production.INFO: ==19701== Releasing lock... [2025-01-22 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 03:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:00:06 [end_date_ymd] => 2025-01-22 04:00:06 [RateCDR] => 1 ) [2025-01-22 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:00:06' and `end` < '2025-01-22 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:00:19] Production.INFO: count ==190 [2025-01-22 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:00:06 - End Time 2025-01-22 04:00:06 [2025-01-22 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302400', 'tblTempUsageDetail_20' ) start [2025-01-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302400', 'tblTempUsageDetail_20' ) end [2025-01-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302400', 'tblTempVendorCDR_20' ) start [2025-01-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302400', 'tblTempVendorCDR_20' ) end [2025-01-22 04:00:19] Production.INFO: ProcessCDR(1,14302400,1,1,2) [2025-01-22 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302400', 'tblTempUsageDetail_20' ) start [2025-01-22 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302400', 'tblTempUsageDetail_20' ) end [2025-01-22 04:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:00:26] Production.INFO: ==19782== Releasing lock... [2025-01-22 04:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:00:26] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:01:05 [end_date_ymd] => 2025-01-22 04:01:05 [RateCDR] => 1 ) [2025-01-22 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:01:05' and `end` < '2025-01-22 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:01:17] Production.INFO: count ==180 [2025-01-22 04:01:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:01:05 - End Time 2025-01-22 04:01:05 [2025-01-22 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302406', 'tblTempUsageDetail_20' ) start [2025-01-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302406', 'tblTempUsageDetail_20' ) end [2025-01-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302406', 'tblTempVendorCDR_20' ) start [2025-01-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302406', 'tblTempVendorCDR_20' ) end [2025-01-22 04:01:17] Production.INFO: ProcessCDR(1,14302406,1,1,2) [2025-01-22 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302406', 'tblTempUsageDetail_20' ) start [2025-01-22 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302406', 'tblTempUsageDetail_20' ) end [2025-01-22 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:01:21] Production.INFO: ==19870== Releasing lock... [2025-01-22 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:02:06 [end_date_ymd] => 2025-01-22 04:02:06 [RateCDR] => 1 ) [2025-01-22 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:02:06' and `end` < '2025-01-22 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:02:18] Production.INFO: count ==179 [2025-01-22 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:02:06 - End Time 2025-01-22 04:02:06 [2025-01-22 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302411', 'tblTempUsageDetail_20' ) start [2025-01-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302411', 'tblTempUsageDetail_20' ) end [2025-01-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302411', 'tblTempVendorCDR_20' ) start [2025-01-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302411', 'tblTempVendorCDR_20' ) end [2025-01-22 04:02:18] Production.INFO: ProcessCDR(1,14302411,1,1,2) [2025-01-22 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302411', 'tblTempUsageDetail_20' ) start [2025-01-22 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302411', 'tblTempUsageDetail_20' ) end [2025-01-22 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:02:21] Production.INFO: ==19949== Releasing lock... [2025-01-22 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:03:05 [end_date_ymd] => 2025-01-22 04:03:05 [RateCDR] => 1 ) [2025-01-22 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:03:05' and `end` < '2025-01-22 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:03:18] Production.INFO: count ==178 [2025-01-22 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:03:05 - End Time 2025-01-22 04:03:05 [2025-01-22 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302416', 'tblTempUsageDetail_20' ) start [2025-01-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302416', 'tblTempUsageDetail_20' ) end [2025-01-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302416', 'tblTempVendorCDR_20' ) start [2025-01-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302416', 'tblTempVendorCDR_20' ) end [2025-01-22 04:03:18] Production.INFO: ProcessCDR(1,14302416,1,1,2) [2025-01-22 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302416', 'tblTempUsageDetail_20' ) start [2025-01-22 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302416', 'tblTempUsageDetail_20' ) end [2025-01-22 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:03:21] Production.INFO: ==20023== Releasing lock... [2025-01-22 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:04:06 [end_date_ymd] => 2025-01-22 04:04:06 [RateCDR] => 1 ) [2025-01-22 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:04:06' and `end` < '2025-01-22 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:04:19] Production.INFO: count ==178 [2025-01-22 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:04:06 - End Time 2025-01-22 04:04:06 [2025-01-22 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302421', 'tblTempUsageDetail_20' ) start [2025-01-22 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302421', 'tblTempUsageDetail_20' ) end [2025-01-22 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302421', 'tblTempVendorCDR_20' ) start [2025-01-22 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302421', 'tblTempVendorCDR_20' ) end [2025-01-22 04:04:19] Production.INFO: ProcessCDR(1,14302421,1,1,2) [2025-01-22 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302421', 'tblTempUsageDetail_20' ) start [2025-01-22 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302421', 'tblTempUsageDetail_20' ) end [2025-01-22 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:04:23] Production.INFO: ==20142== Releasing lock... [2025-01-22 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:05:05 [end_date_ymd] => 2025-01-22 04:05:05 [RateCDR] => 1 ) [2025-01-22 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:05:05' and `end` < '2025-01-22 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:05:18] Production.INFO: count ==178 [2025-01-22 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:05:05 - End Time 2025-01-22 04:05:05 [2025-01-22 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302426', 'tblTempUsageDetail_20' ) start [2025-01-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302426', 'tblTempUsageDetail_20' ) end [2025-01-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302426', 'tblTempVendorCDR_20' ) start [2025-01-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302426', 'tblTempVendorCDR_20' ) end [2025-01-22 04:05:18] Production.INFO: ProcessCDR(1,14302426,1,1,2) [2025-01-22 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302426', 'tblTempUsageDetail_20' ) start [2025-01-22 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302426', 'tblTempUsageDetail_20' ) end [2025-01-22 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:05:21] Production.INFO: ==20212== Releasing lock... [2025-01-22 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:06:05 [end_date_ymd] => 2025-01-22 04:06:05 [RateCDR] => 1 ) [2025-01-22 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:06:05' and `end` < '2025-01-22 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:06:18] Production.INFO: count ==178 [2025-01-22 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:06:05 - End Time 2025-01-22 04:06:05 [2025-01-22 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302431', 'tblTempUsageDetail_20' ) start [2025-01-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302431', 'tblTempUsageDetail_20' ) end [2025-01-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302431', 'tblTempVendorCDR_20' ) start [2025-01-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302431', 'tblTempVendorCDR_20' ) end [2025-01-22 04:06:18] Production.INFO: ProcessCDR(1,14302431,1,1,2) [2025-01-22 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302431', 'tblTempUsageDetail_20' ) start [2025-01-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302431', 'tblTempUsageDetail_20' ) end [2025-01-22 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:06:21] Production.INFO: ==20291== Releasing lock... [2025-01-22 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:07:05 [end_date_ymd] => 2025-01-22 04:07:05 [RateCDR] => 1 ) [2025-01-22 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:07:05' and `end` < '2025-01-22 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:07:19] Production.INFO: count ==178 [2025-01-22 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:07:05 - End Time 2025-01-22 04:07:05 [2025-01-22 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302436', 'tblTempUsageDetail_20' ) start [2025-01-22 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302436', 'tblTempUsageDetail_20' ) end [2025-01-22 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302436', 'tblTempVendorCDR_20' ) start [2025-01-22 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302436', 'tblTempVendorCDR_20' ) end [2025-01-22 04:07:19] Production.INFO: ProcessCDR(1,14302436,1,1,2) [2025-01-22 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302436', 'tblTempUsageDetail_20' ) start [2025-01-22 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302436', 'tblTempUsageDetail_20' ) end [2025-01-22 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:07:22] Production.INFO: ==20366== Releasing lock... [2025-01-22 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:08:06 [end_date_ymd] => 2025-01-22 04:08:06 [RateCDR] => 1 ) [2025-01-22 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:08:06' and `end` < '2025-01-22 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:08:19] Production.INFO: count ==178 [2025-01-22 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:08:06 - End Time 2025-01-22 04:08:06 [2025-01-22 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302441', 'tblTempUsageDetail_20' ) start [2025-01-22 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302441', 'tblTempUsageDetail_20' ) end [2025-01-22 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302441', 'tblTempVendorCDR_20' ) start [2025-01-22 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302441', 'tblTempVendorCDR_20' ) end [2025-01-22 04:08:19] Production.INFO: ProcessCDR(1,14302441,1,1,2) [2025-01-22 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302441', 'tblTempUsageDetail_20' ) start [2025-01-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302441', 'tblTempUsageDetail_20' ) end [2025-01-22 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:08:22] Production.INFO: ==20444== Releasing lock... [2025-01-22 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:09:05 [end_date_ymd] => 2025-01-22 04:09:05 [RateCDR] => 1 ) [2025-01-22 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:09:05' and `end` < '2025-01-22 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:09:18] Production.INFO: count ==180 [2025-01-22 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:09:05 - End Time 2025-01-22 04:09:05 [2025-01-22 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302446', 'tblTempUsageDetail_20' ) start [2025-01-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302446', 'tblTempUsageDetail_20' ) end [2025-01-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302446', 'tblTempVendorCDR_20' ) start [2025-01-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302446', 'tblTempVendorCDR_20' ) end [2025-01-22 04:09:18] Production.INFO: ProcessCDR(1,14302446,1,1,2) [2025-01-22 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302446', 'tblTempUsageDetail_20' ) start [2025-01-22 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302446', 'tblTempUsageDetail_20' ) end [2025-01-22 04:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:09:23] Production.INFO: ==20517== Releasing lock... [2025-01-22 04:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:10:06 [end_date_ymd] => 2025-01-22 04:10:06 [RateCDR] => 1 ) [2025-01-22 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:10:06' and `end` < '2025-01-22 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:10:20] Production.INFO: count ==183 [2025-01-22 04:10:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:10:06 - End Time 2025-01-22 04:10:06 [2025-01-22 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302452', 'tblTempUsageDetail_20' ) start [2025-01-22 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302452', 'tblTempUsageDetail_20' ) end [2025-01-22 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302452', 'tblTempVendorCDR_20' ) start [2025-01-22 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302452', 'tblTempVendorCDR_20' ) end [2025-01-22 04:10:20] Production.INFO: ProcessCDR(1,14302452,1,1,2) [2025-01-22 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302452', 'tblTempUsageDetail_20' ) start [2025-01-22 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302452', 'tblTempUsageDetail_20' ) end [2025-01-22 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:10:23] Production.INFO: ==20604== Releasing lock... [2025-01-22 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:11:05 [end_date_ymd] => 2025-01-22 04:11:05 [RateCDR] => 1 ) [2025-01-22 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:11:05' and `end` < '2025-01-22 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:11:18] Production.INFO: count ==183 [2025-01-22 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:11:05 - End Time 2025-01-22 04:11:05 [2025-01-22 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302457', 'tblTempUsageDetail_20' ) start [2025-01-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302457', 'tblTempUsageDetail_20' ) end [2025-01-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302457', 'tblTempVendorCDR_20' ) start [2025-01-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302457', 'tblTempVendorCDR_20' ) end [2025-01-22 04:11:18] Production.INFO: ProcessCDR(1,14302457,1,1,2) [2025-01-22 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302457', 'tblTempUsageDetail_20' ) start [2025-01-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302457', 'tblTempUsageDetail_20' ) end [2025-01-22 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:11:21] Production.INFO: ==20676== Releasing lock... [2025-01-22 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:12:05 [end_date_ymd] => 2025-01-22 04:12:05 [RateCDR] => 1 ) [2025-01-22 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:12:05' and `end` < '2025-01-22 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:12:18] Production.INFO: count ==183 [2025-01-22 04:12:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:12:05 - End Time 2025-01-22 04:12:05 [2025-01-22 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302462', 'tblTempUsageDetail_20' ) start [2025-01-22 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302462', 'tblTempUsageDetail_20' ) end [2025-01-22 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302462', 'tblTempVendorCDR_20' ) start [2025-01-22 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302462', 'tblTempVendorCDR_20' ) end [2025-01-22 04:12:19] Production.INFO: ProcessCDR(1,14302462,1,1,2) [2025-01-22 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302462', 'tblTempUsageDetail_20' ) start [2025-01-22 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302462', 'tblTempUsageDetail_20' ) end [2025-01-22 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:12:22] Production.INFO: ==20755== Releasing lock... [2025-01-22 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:13:05 [end_date_ymd] => 2025-01-22 04:13:05 [RateCDR] => 1 ) [2025-01-22 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:13:05' and `end` < '2025-01-22 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:13:18] Production.INFO: count ==183 [2025-01-22 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:13:05 - End Time 2025-01-22 04:13:05 [2025-01-22 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302467', 'tblTempUsageDetail_20' ) start [2025-01-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302467', 'tblTempUsageDetail_20' ) end [2025-01-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302467', 'tblTempVendorCDR_20' ) start [2025-01-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302467', 'tblTempVendorCDR_20' ) end [2025-01-22 04:13:18] Production.INFO: ProcessCDR(1,14302467,1,1,2) [2025-01-22 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302467', 'tblTempUsageDetail_20' ) start [2025-01-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302467', 'tblTempUsageDetail_20' ) end [2025-01-22 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:13:21] Production.INFO: ==20828== Releasing lock... [2025-01-22 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:14:05 [end_date_ymd] => 2025-01-22 04:14:05 [RateCDR] => 1 ) [2025-01-22 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:14:05' and `end` < '2025-01-22 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:14:18] Production.INFO: count ==183 [2025-01-22 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:14:05 - End Time 2025-01-22 04:14:05 [2025-01-22 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302472', 'tblTempUsageDetail_20' ) start [2025-01-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302472', 'tblTempUsageDetail_20' ) end [2025-01-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302472', 'tblTempVendorCDR_20' ) start [2025-01-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302472', 'tblTempVendorCDR_20' ) end [2025-01-22 04:14:18] Production.INFO: ProcessCDR(1,14302472,1,1,2) [2025-01-22 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302472', 'tblTempUsageDetail_20' ) start [2025-01-22 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302472', 'tblTempUsageDetail_20' ) end [2025-01-22 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:14:21] Production.INFO: ==20904== Releasing lock... [2025-01-22 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:15:05 [end_date_ymd] => 2025-01-22 04:15:05 [RateCDR] => 1 ) [2025-01-22 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:15:05' and `end` < '2025-01-22 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:15:17] Production.INFO: count ==183 [2025-01-22 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:15:05 - End Time 2025-01-22 04:15:05 [2025-01-22 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302477', 'tblTempUsageDetail_20' ) start [2025-01-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302477', 'tblTempUsageDetail_20' ) end [2025-01-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302477', 'tblTempVendorCDR_20' ) start [2025-01-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302477', 'tblTempVendorCDR_20' ) end [2025-01-22 04:15:17] Production.INFO: ProcessCDR(1,14302477,1,1,2) [2025-01-22 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302477', 'tblTempUsageDetail_20' ) start [2025-01-22 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302477', 'tblTempUsageDetail_20' ) end [2025-01-22 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:15:21] Production.INFO: ==20978== Releasing lock... [2025-01-22 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:16:05 [end_date_ymd] => 2025-01-22 04:16:05 [RateCDR] => 1 ) [2025-01-22 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:16:05' and `end` < '2025-01-22 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:16:19] Production.INFO: count ==181 [2025-01-22 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:16:05 - End Time 2025-01-22 04:16:05 [2025-01-22 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302482', 'tblTempUsageDetail_20' ) start [2025-01-22 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302482', 'tblTempUsageDetail_20' ) end [2025-01-22 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302482', 'tblTempVendorCDR_20' ) start [2025-01-22 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302482', 'tblTempVendorCDR_20' ) end [2025-01-22 04:16:19] Production.INFO: ProcessCDR(1,14302482,1,1,2) [2025-01-22 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302482', 'tblTempUsageDetail_20' ) start [2025-01-22 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302482', 'tblTempUsageDetail_20' ) end [2025-01-22 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:16:22] Production.INFO: ==21054== Releasing lock... [2025-01-22 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:17:05 [end_date_ymd] => 2025-01-22 04:17:05 [RateCDR] => 1 ) [2025-01-22 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:17:05' and `end` < '2025-01-22 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:17:17] Production.INFO: count ==180 [2025-01-22 04:17:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:17:05 - End Time 2025-01-22 04:17:05 [2025-01-22 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302487', 'tblTempUsageDetail_20' ) start [2025-01-22 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302487', 'tblTempUsageDetail_20' ) end [2025-01-22 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302487', 'tblTempVendorCDR_20' ) start [2025-01-22 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302487', 'tblTempVendorCDR_20' ) end [2025-01-22 04:17:17] Production.INFO: ProcessCDR(1,14302487,1,1,2) [2025-01-22 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302487', 'tblTempUsageDetail_20' ) start [2025-01-22 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302487', 'tblTempUsageDetail_20' ) end [2025-01-22 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:17:20] Production.INFO: ==21127== Releasing lock... [2025-01-22 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:18:05 [end_date_ymd] => 2025-01-22 04:18:05 [RateCDR] => 1 ) [2025-01-22 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:18:05' and `end` < '2025-01-22 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:18:18] Production.INFO: count ==178 [2025-01-22 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:18:05 - End Time 2025-01-22 04:18:05 [2025-01-22 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302492', 'tblTempUsageDetail_20' ) start [2025-01-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302492', 'tblTempUsageDetail_20' ) end [2025-01-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302492', 'tblTempVendorCDR_20' ) start [2025-01-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302492', 'tblTempVendorCDR_20' ) end [2025-01-22 04:18:18] Production.INFO: ProcessCDR(1,14302492,1,1,2) [2025-01-22 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302492', 'tblTempUsageDetail_20' ) start [2025-01-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302492', 'tblTempUsageDetail_20' ) end [2025-01-22 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:18:21] Production.INFO: ==21215== Releasing lock... [2025-01-22 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:19:05 [end_date_ymd] => 2025-01-22 04:19:05 [RateCDR] => 1 ) [2025-01-22 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:19:05' and `end` < '2025-01-22 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:19:17] Production.INFO: count ==178 [2025-01-22 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:19:05 - End Time 2025-01-22 04:19:05 [2025-01-22 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302497', 'tblTempUsageDetail_20' ) start [2025-01-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302497', 'tblTempUsageDetail_20' ) end [2025-01-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302497', 'tblTempVendorCDR_20' ) start [2025-01-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302497', 'tblTempVendorCDR_20' ) end [2025-01-22 04:19:17] Production.INFO: ProcessCDR(1,14302497,1,1,2) [2025-01-22 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302497', 'tblTempUsageDetail_20' ) start [2025-01-22 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302497', 'tblTempUsageDetail_20' ) end [2025-01-22 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:19:20] Production.INFO: ==21289== Releasing lock... [2025-01-22 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:20:06 [end_date_ymd] => 2025-01-22 04:20:06 [RateCDR] => 1 ) [2025-01-22 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:20:06' and `end` < '2025-01-22 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:20:19] Production.INFO: count ==173 [2025-01-22 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:20:06 - End Time 2025-01-22 04:20:06 [2025-01-22 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302503', 'tblTempUsageDetail_20' ) start [2025-01-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302503', 'tblTempUsageDetail_20' ) end [2025-01-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302503', 'tblTempVendorCDR_20' ) start [2025-01-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302503', 'tblTempVendorCDR_20' ) end [2025-01-22 04:20:19] Production.INFO: ProcessCDR(1,14302503,1,1,2) [2025-01-22 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302503', 'tblTempUsageDetail_20' ) start [2025-01-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302503', 'tblTempUsageDetail_20' ) end [2025-01-22 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:20:22] Production.INFO: ==21410== Releasing lock... [2025-01-22 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:21:05 [end_date_ymd] => 2025-01-22 04:21:05 [RateCDR] => 1 ) [2025-01-22 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:21:05' and `end` < '2025-01-22 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:21:19] Production.INFO: count ==157 [2025-01-22 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:21:05 - End Time 2025-01-22 04:21:05 [2025-01-22 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302508', 'tblTempUsageDetail_20' ) start [2025-01-22 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302508', 'tblTempUsageDetail_20' ) end [2025-01-22 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302508', 'tblTempVendorCDR_20' ) start [2025-01-22 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302508', 'tblTempVendorCDR_20' ) end [2025-01-22 04:21:19] Production.INFO: ProcessCDR(1,14302508,1,1,2) [2025-01-22 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302508', 'tblTempUsageDetail_20' ) start [2025-01-22 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302508', 'tblTempUsageDetail_20' ) end [2025-01-22 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:21:22] Production.INFO: ==21501== Releasing lock... [2025-01-22 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:22:05 [end_date_ymd] => 2025-01-22 04:22:05 [RateCDR] => 1 ) [2025-01-22 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:22:05' and `end` < '2025-01-22 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:22:18] Production.INFO: count ==155 [2025-01-22 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:22:05 - End Time 2025-01-22 04:22:05 [2025-01-22 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302513', 'tblTempUsageDetail_20' ) start [2025-01-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302513', 'tblTempUsageDetail_20' ) end [2025-01-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302513', 'tblTempVendorCDR_20' ) start [2025-01-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302513', 'tblTempVendorCDR_20' ) end [2025-01-22 04:22:18] Production.INFO: ProcessCDR(1,14302513,1,1,2) [2025-01-22 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302513', 'tblTempUsageDetail_20' ) start [2025-01-22 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302513', 'tblTempUsageDetail_20' ) end [2025-01-22 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:22:22] Production.INFO: ==21591== Releasing lock... [2025-01-22 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:23:05 [end_date_ymd] => 2025-01-22 04:23:05 [RateCDR] => 1 ) [2025-01-22 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:23:05' and `end` < '2025-01-22 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:23:18] Production.INFO: count ==154 [2025-01-22 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:23:05 - End Time 2025-01-22 04:23:05 [2025-01-22 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302518', 'tblTempUsageDetail_20' ) start [2025-01-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302518', 'tblTempUsageDetail_20' ) end [2025-01-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302518', 'tblTempVendorCDR_20' ) start [2025-01-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302518', 'tblTempVendorCDR_20' ) end [2025-01-22 04:23:18] Production.INFO: ProcessCDR(1,14302518,1,1,2) [2025-01-22 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302518', 'tblTempUsageDetail_20' ) start [2025-01-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302518', 'tblTempUsageDetail_20' ) end [2025-01-22 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:23:21] Production.INFO: ==21674== Releasing lock... [2025-01-22 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:24:05 [end_date_ymd] => 2025-01-22 04:24:05 [RateCDR] => 1 ) [2025-01-22 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:24:05' and `end` < '2025-01-22 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:24:18] Production.INFO: count ==154 [2025-01-22 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:24:05 - End Time 2025-01-22 04:24:05 [2025-01-22 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302523', 'tblTempUsageDetail_20' ) start [2025-01-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302523', 'tblTempUsageDetail_20' ) end [2025-01-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302523', 'tblTempVendorCDR_20' ) start [2025-01-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302523', 'tblTempVendorCDR_20' ) end [2025-01-22 04:24:18] Production.INFO: ProcessCDR(1,14302523,1,1,2) [2025-01-22 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302523', 'tblTempUsageDetail_20' ) start [2025-01-22 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302523', 'tblTempUsageDetail_20' ) end [2025-01-22 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:24:21] Production.INFO: ==21761== Releasing lock... [2025-01-22 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:25:05 [end_date_ymd] => 2025-01-22 04:25:05 [RateCDR] => 1 ) [2025-01-22 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:25:05' and `end` < '2025-01-22 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:25:19] Production.INFO: count ==154 [2025-01-22 04:25:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:25:05 - End Time 2025-01-22 04:25:05 [2025-01-22 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302528', 'tblTempUsageDetail_20' ) start [2025-01-22 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302528', 'tblTempUsageDetail_20' ) end [2025-01-22 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302528', 'tblTempVendorCDR_20' ) start [2025-01-22 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302528', 'tblTempVendorCDR_20' ) end [2025-01-22 04:25:19] Production.INFO: ProcessCDR(1,14302528,1,1,2) [2025-01-22 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302528', 'tblTempUsageDetail_20' ) start [2025-01-22 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302528', 'tblTempUsageDetail_20' ) end [2025-01-22 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:25:22] Production.INFO: ==21847== Releasing lock... [2025-01-22 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:26:05 [end_date_ymd] => 2025-01-22 04:26:05 [RateCDR] => 1 ) [2025-01-22 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:26:05' and `end` < '2025-01-22 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:26:18] Production.INFO: count ==154 [2025-01-22 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:26:05 - End Time 2025-01-22 04:26:05 [2025-01-22 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302533', 'tblTempUsageDetail_20' ) start [2025-01-22 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302533', 'tblTempUsageDetail_20' ) end [2025-01-22 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302533', 'tblTempVendorCDR_20' ) start [2025-01-22 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302533', 'tblTempVendorCDR_20' ) end [2025-01-22 04:26:19] Production.INFO: ProcessCDR(1,14302533,1,1,2) [2025-01-22 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302533', 'tblTempUsageDetail_20' ) start [2025-01-22 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302533', 'tblTempUsageDetail_20' ) end [2025-01-22 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:26:22] Production.INFO: ==21940== Releasing lock... [2025-01-22 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:27:06 [end_date_ymd] => 2025-01-22 04:27:06 [RateCDR] => 1 ) [2025-01-22 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:27:06' and `end` < '2025-01-22 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:27:18] Production.INFO: count ==154 [2025-01-22 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:27:06 - End Time 2025-01-22 04:27:06 [2025-01-22 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302538', 'tblTempUsageDetail_20' ) start [2025-01-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302538', 'tblTempUsageDetail_20' ) end [2025-01-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302538', 'tblTempVendorCDR_20' ) start [2025-01-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302538', 'tblTempVendorCDR_20' ) end [2025-01-22 04:27:18] Production.INFO: ProcessCDR(1,14302538,1,1,2) [2025-01-22 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302538', 'tblTempUsageDetail_20' ) start [2025-01-22 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302538', 'tblTempUsageDetail_20' ) end [2025-01-22 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:27:22] Production.INFO: ==22026== Releasing lock... [2025-01-22 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:28:05 [end_date_ymd] => 2025-01-22 04:28:05 [RateCDR] => 1 ) [2025-01-22 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:28:05' and `end` < '2025-01-22 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:28:18] Production.INFO: count ==154 [2025-01-22 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:28:05 - End Time 2025-01-22 04:28:05 [2025-01-22 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302543', 'tblTempUsageDetail_20' ) start [2025-01-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302543', 'tblTempUsageDetail_20' ) end [2025-01-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302543', 'tblTempVendorCDR_20' ) start [2025-01-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302543', 'tblTempVendorCDR_20' ) end [2025-01-22 04:28:18] Production.INFO: ProcessCDR(1,14302543,1,1,2) [2025-01-22 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302543', 'tblTempUsageDetail_20' ) start [2025-01-22 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302543', 'tblTempUsageDetail_20' ) end [2025-01-22 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:28:21] Production.INFO: ==22118== Releasing lock... [2025-01-22 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:29:05 [end_date_ymd] => 2025-01-22 04:29:05 [RateCDR] => 1 ) [2025-01-22 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:29:05' and `end` < '2025-01-22 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:29:18] Production.INFO: count ==154 [2025-01-22 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:29:05 - End Time 2025-01-22 04:29:05 [2025-01-22 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302548', 'tblTempUsageDetail_20' ) start [2025-01-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302548', 'tblTempUsageDetail_20' ) end [2025-01-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302548', 'tblTempVendorCDR_20' ) start [2025-01-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302548', 'tblTempVendorCDR_20' ) end [2025-01-22 04:29:18] Production.INFO: ProcessCDR(1,14302548,1,1,2) [2025-01-22 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302548', 'tblTempUsageDetail_20' ) start [2025-01-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302548', 'tblTempUsageDetail_20' ) end [2025-01-22 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:29:21] Production.INFO: ==22206== Releasing lock... [2025-01-22 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:30:05 [end_date_ymd] => 2025-01-22 04:30:05 [RateCDR] => 1 ) [2025-01-22 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:30:05' and `end` < '2025-01-22 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:30:17] Production.INFO: count ==154 [2025-01-22 04:30:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:30:05 - End Time 2025-01-22 04:30:05 [2025-01-22 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302554', 'tblTempUsageDetail_20' ) start [2025-01-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302554', 'tblTempUsageDetail_20' ) end [2025-01-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302554', 'tblTempVendorCDR_20' ) start [2025-01-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302554', 'tblTempVendorCDR_20' ) end [2025-01-22 04:30:17] Production.INFO: ProcessCDR(1,14302554,1,1,2) [2025-01-22 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302554', 'tblTempUsageDetail_20' ) start [2025-01-22 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302554', 'tblTempUsageDetail_20' ) end [2025-01-22 04:30:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:30:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:30:20] Production.INFO: ==22288== Releasing lock... [2025-01-22 04:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:30:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:31:05 [end_date_ymd] => 2025-01-22 04:31:05 [RateCDR] => 1 ) [2025-01-22 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:31:05' and `end` < '2025-01-22 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:31:18] Production.INFO: count ==153 [2025-01-22 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:31:05 - End Time 2025-01-22 04:31:05 [2025-01-22 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302560', 'tblTempUsageDetail_20' ) start [2025-01-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302560', 'tblTempUsageDetail_20' ) end [2025-01-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302560', 'tblTempVendorCDR_20' ) start [2025-01-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302560', 'tblTempVendorCDR_20' ) end [2025-01-22 04:31:18] Production.INFO: ProcessCDR(1,14302560,1,1,2) [2025-01-22 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302560', 'tblTempUsageDetail_20' ) start [2025-01-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302560', 'tblTempUsageDetail_20' ) end [2025-01-22 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:31:21] Production.INFO: ==22368== Releasing lock... [2025-01-22 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:32:06 [end_date_ymd] => 2025-01-22 04:32:06 [RateCDR] => 1 ) [2025-01-22 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:32:06' and `end` < '2025-01-22 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:32:18] Production.INFO: count ==152 [2025-01-22 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:32:06 - End Time 2025-01-22 04:32:06 [2025-01-22 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302565', 'tblTempUsageDetail_20' ) start [2025-01-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302565', 'tblTempUsageDetail_20' ) end [2025-01-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302565', 'tblTempVendorCDR_20' ) start [2025-01-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302565', 'tblTempVendorCDR_20' ) end [2025-01-22 04:32:18] Production.INFO: ProcessCDR(1,14302565,1,1,2) [2025-01-22 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302565', 'tblTempUsageDetail_20' ) start [2025-01-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302565', 'tblTempUsageDetail_20' ) end [2025-01-22 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:32:21] Production.INFO: ==22457== Releasing lock... [2025-01-22 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:33:05 [end_date_ymd] => 2025-01-22 04:33:05 [RateCDR] => 1 ) [2025-01-22 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:33:05' and `end` < '2025-01-22 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:33:17] Production.INFO: count ==152 [2025-01-22 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:33:05 - End Time 2025-01-22 04:33:05 [2025-01-22 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302570', 'tblTempUsageDetail_20' ) start [2025-01-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302570', 'tblTempUsageDetail_20' ) end [2025-01-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302570', 'tblTempVendorCDR_20' ) start [2025-01-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302570', 'tblTempVendorCDR_20' ) end [2025-01-22 04:33:17] Production.INFO: ProcessCDR(1,14302570,1,1,2) [2025-01-22 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302570', 'tblTempUsageDetail_20' ) start [2025-01-22 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302570', 'tblTempUsageDetail_20' ) end [2025-01-22 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:33:20] Production.INFO: ==22529== Releasing lock... [2025-01-22 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:34:05 [end_date_ymd] => 2025-01-22 04:34:05 [RateCDR] => 1 ) [2025-01-22 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:34:05' and `end` < '2025-01-22 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:34:19] Production.INFO: count ==154 [2025-01-22 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:34:05 - End Time 2025-01-22 04:34:05 [2025-01-22 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302575', 'tblTempUsageDetail_20' ) start [2025-01-22 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302575', 'tblTempUsageDetail_20' ) end [2025-01-22 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302575', 'tblTempVendorCDR_20' ) start [2025-01-22 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302575', 'tblTempVendorCDR_20' ) end [2025-01-22 04:34:19] Production.INFO: ProcessCDR(1,14302575,1,1,2) [2025-01-22 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302575', 'tblTempUsageDetail_20' ) start [2025-01-22 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302575', 'tblTempUsageDetail_20' ) end [2025-01-22 04:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:34:23] Production.INFO: ==22606== Releasing lock... [2025-01-22 04:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:34:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:35:05 [end_date_ymd] => 2025-01-22 04:35:05 [RateCDR] => 1 ) [2025-01-22 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:35:05' and `end` < '2025-01-22 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:35:21] Production.INFO: count ==155 [2025-01-22 04:35:21] Production.ERROR: pbx CDR StartTime 2025-01-22 01:35:05 - End Time 2025-01-22 04:35:05 [2025-01-22 04:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302580', 'tblTempUsageDetail_20' ) start [2025-01-22 04:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302580', 'tblTempUsageDetail_20' ) end [2025-01-22 04:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302580', 'tblTempVendorCDR_20' ) start [2025-01-22 04:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302580', 'tblTempVendorCDR_20' ) end [2025-01-22 04:35:21] Production.INFO: ProcessCDR(1,14302580,1,1,2) [2025-01-22 04:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302580', 'tblTempUsageDetail_20' ) start [2025-01-22 04:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302580', 'tblTempUsageDetail_20' ) end [2025-01-22 04:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:35:24] Production.INFO: ==22720== Releasing lock... [2025-01-22 04:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:35:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:36:06 [end_date_ymd] => 2025-01-22 04:36:06 [RateCDR] => 1 ) [2025-01-22 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:36:06' and `end` < '2025-01-22 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:36:18] Production.INFO: count ==155 [2025-01-22 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:36:06 - End Time 2025-01-22 04:36:06 [2025-01-22 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302585', 'tblTempUsageDetail_20' ) start [2025-01-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302585', 'tblTempUsageDetail_20' ) end [2025-01-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302585', 'tblTempVendorCDR_20' ) start [2025-01-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302585', 'tblTempVendorCDR_20' ) end [2025-01-22 04:36:18] Production.INFO: ProcessCDR(1,14302585,1,1,2) [2025-01-22 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302585', 'tblTempUsageDetail_20' ) start [2025-01-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302585', 'tblTempUsageDetail_20' ) end [2025-01-22 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:36:21] Production.INFO: ==22798== Releasing lock... [2025-01-22 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:37:05 [end_date_ymd] => 2025-01-22 04:37:05 [RateCDR] => 1 ) [2025-01-22 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:37:05' and `end` < '2025-01-22 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:37:17] Production.INFO: count ==155 [2025-01-22 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:37:05 - End Time 2025-01-22 04:37:05 [2025-01-22 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302590', 'tblTempUsageDetail_20' ) start [2025-01-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302590', 'tblTempUsageDetail_20' ) end [2025-01-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302590', 'tblTempVendorCDR_20' ) start [2025-01-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302590', 'tblTempVendorCDR_20' ) end [2025-01-22 04:37:17] Production.INFO: ProcessCDR(1,14302590,1,1,2) [2025-01-22 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302590', 'tblTempUsageDetail_20' ) start [2025-01-22 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302590', 'tblTempUsageDetail_20' ) end [2025-01-22 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:37:20] Production.INFO: ==22871== Releasing lock... [2025-01-22 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:38:05 [end_date_ymd] => 2025-01-22 04:38:05 [RateCDR] => 1 ) [2025-01-22 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:38:05' and `end` < '2025-01-22 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:38:18] Production.INFO: count ==155 [2025-01-22 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:38:05 - End Time 2025-01-22 04:38:05 [2025-01-22 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302595', 'tblTempUsageDetail_20' ) start [2025-01-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302595', 'tblTempUsageDetail_20' ) end [2025-01-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302595', 'tblTempVendorCDR_20' ) start [2025-01-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302595', 'tblTempVendorCDR_20' ) end [2025-01-22 04:38:18] Production.INFO: ProcessCDR(1,14302595,1,1,2) [2025-01-22 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302595', 'tblTempUsageDetail_20' ) start [2025-01-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302595', 'tblTempUsageDetail_20' ) end [2025-01-22 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:38:21] Production.INFO: ==22948== Releasing lock... [2025-01-22 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:39:05 [end_date_ymd] => 2025-01-22 04:39:05 [RateCDR] => 1 ) [2025-01-22 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:39:05' and `end` < '2025-01-22 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:39:17] Production.INFO: count ==155 [2025-01-22 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:39:05 - End Time 2025-01-22 04:39:05 [2025-01-22 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302600', 'tblTempUsageDetail_20' ) start [2025-01-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302600', 'tblTempUsageDetail_20' ) end [2025-01-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302600', 'tblTempVendorCDR_20' ) start [2025-01-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302600', 'tblTempVendorCDR_20' ) end [2025-01-22 04:39:17] Production.INFO: ProcessCDR(1,14302600,1,1,2) [2025-01-22 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302600', 'tblTempUsageDetail_20' ) start [2025-01-22 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302600', 'tblTempUsageDetail_20' ) end [2025-01-22 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:39:20] Production.INFO: ==23026== Releasing lock... [2025-01-22 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:40:06 [end_date_ymd] => 2025-01-22 04:40:06 [RateCDR] => 1 ) [2025-01-22 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:40:06' and `end` < '2025-01-22 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:40:18] Production.INFO: count ==155 [2025-01-22 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:40:06 - End Time 2025-01-22 04:40:06 [2025-01-22 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302606', 'tblTempUsageDetail_20' ) start [2025-01-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302606', 'tblTempUsageDetail_20' ) end [2025-01-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302606', 'tblTempVendorCDR_20' ) start [2025-01-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302606', 'tblTempVendorCDR_20' ) end [2025-01-22 04:40:18] Production.INFO: ProcessCDR(1,14302606,1,1,2) [2025-01-22 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302606', 'tblTempUsageDetail_20' ) start [2025-01-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302606', 'tblTempUsageDetail_20' ) end [2025-01-22 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:40:21] Production.INFO: ==23109== Releasing lock... [2025-01-22 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:41:05 [end_date_ymd] => 2025-01-22 04:41:05 [RateCDR] => 1 ) [2025-01-22 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:41:05' and `end` < '2025-01-22 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:41:18] Production.INFO: count ==155 [2025-01-22 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:41:05 - End Time 2025-01-22 04:41:05 [2025-01-22 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302611', 'tblTempUsageDetail_20' ) start [2025-01-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302611', 'tblTempUsageDetail_20' ) end [2025-01-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302611', 'tblTempVendorCDR_20' ) start [2025-01-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302611', 'tblTempVendorCDR_20' ) end [2025-01-22 04:41:18] Production.INFO: ProcessCDR(1,14302611,1,1,2) [2025-01-22 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302611', 'tblTempUsageDetail_20' ) start [2025-01-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302611', 'tblTempUsageDetail_20' ) end [2025-01-22 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:41:21] Production.INFO: ==23189== Releasing lock... [2025-01-22 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:42:05 [end_date_ymd] => 2025-01-22 04:42:05 [RateCDR] => 1 ) [2025-01-22 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:42:05' and `end` < '2025-01-22 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:42:18] Production.INFO: count ==155 [2025-01-22 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:42:05 - End Time 2025-01-22 04:42:05 [2025-01-22 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302616', 'tblTempUsageDetail_20' ) start [2025-01-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302616', 'tblTempUsageDetail_20' ) end [2025-01-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302616', 'tblTempVendorCDR_20' ) start [2025-01-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302616', 'tblTempVendorCDR_20' ) end [2025-01-22 04:42:18] Production.INFO: ProcessCDR(1,14302616,1,1,2) [2025-01-22 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302616', 'tblTempUsageDetail_20' ) start [2025-01-22 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302616', 'tblTempUsageDetail_20' ) end [2025-01-22 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:42:21] Production.INFO: ==23265== Releasing lock... [2025-01-22 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:43:05 [end_date_ymd] => 2025-01-22 04:43:05 [RateCDR] => 1 ) [2025-01-22 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:43:05' and `end` < '2025-01-22 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:43:18] Production.INFO: count ==155 [2025-01-22 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:43:05 - End Time 2025-01-22 04:43:05 [2025-01-22 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302621', 'tblTempUsageDetail_20' ) start [2025-01-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302621', 'tblTempUsageDetail_20' ) end [2025-01-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302621', 'tblTempVendorCDR_20' ) start [2025-01-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302621', 'tblTempVendorCDR_20' ) end [2025-01-22 04:43:18] Production.INFO: ProcessCDR(1,14302621,1,1,2) [2025-01-22 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302621', 'tblTempUsageDetail_20' ) start [2025-01-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302621', 'tblTempUsageDetail_20' ) end [2025-01-22 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:43:21] Production.INFO: ==23339== Releasing lock... [2025-01-22 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:44:05 [end_date_ymd] => 2025-01-22 04:44:05 [RateCDR] => 1 ) [2025-01-22 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:44:05' and `end` < '2025-01-22 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:44:18] Production.INFO: count ==155 [2025-01-22 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:44:05 - End Time 2025-01-22 04:44:05 [2025-01-22 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302626', 'tblTempUsageDetail_20' ) start [2025-01-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302626', 'tblTempUsageDetail_20' ) end [2025-01-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302626', 'tblTempVendorCDR_20' ) start [2025-01-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302626', 'tblTempVendorCDR_20' ) end [2025-01-22 04:44:18] Production.INFO: ProcessCDR(1,14302626,1,1,2) [2025-01-22 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302626', 'tblTempUsageDetail_20' ) start [2025-01-22 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302626', 'tblTempUsageDetail_20' ) end [2025-01-22 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:44:21] Production.INFO: ==23419== Releasing lock... [2025-01-22 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:45:05 [end_date_ymd] => 2025-01-22 04:45:05 [RateCDR] => 1 ) [2025-01-22 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:45:05' and `end` < '2025-01-22 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:45:17] Production.INFO: count ==155 [2025-01-22 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-22 01:45:05 - End Time 2025-01-22 04:45:05 [2025-01-22 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302631', 'tblTempUsageDetail_20' ) start [2025-01-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302631', 'tblTempUsageDetail_20' ) end [2025-01-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302631', 'tblTempVendorCDR_20' ) start [2025-01-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302631', 'tblTempVendorCDR_20' ) end [2025-01-22 04:45:17] Production.INFO: ProcessCDR(1,14302631,1,1,2) [2025-01-22 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302631', 'tblTempUsageDetail_20' ) start [2025-01-22 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302631', 'tblTempUsageDetail_20' ) end [2025-01-22 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:45:20] Production.INFO: ==23498== Releasing lock... [2025-01-22 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:46:05 [end_date_ymd] => 2025-01-22 04:46:05 [RateCDR] => 1 ) [2025-01-22 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:46:05' and `end` < '2025-01-22 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:46:22] Production.INFO: count ==155 [2025-01-22 04:46:22] Production.ERROR: pbx CDR StartTime 2025-01-22 01:46:05 - End Time 2025-01-22 04:46:05 [2025-01-22 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302636', 'tblTempUsageDetail_20' ) start [2025-01-22 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302636', 'tblTempUsageDetail_20' ) end [2025-01-22 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302636', 'tblTempVendorCDR_20' ) start [2025-01-22 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302636', 'tblTempVendorCDR_20' ) end [2025-01-22 04:46:22] Production.INFO: ProcessCDR(1,14302636,1,1,2) [2025-01-22 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302636', 'tblTempUsageDetail_20' ) start [2025-01-22 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302636', 'tblTempUsageDetail_20' ) end [2025-01-22 04:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:46:25] Production.INFO: ==23572== Releasing lock... [2025-01-22 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:46:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:47:04 [end_date_ymd] => 2025-01-22 04:47:04 [RateCDR] => 1 ) [2025-01-22 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:47:04' and `end` < '2025-01-22 04:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:47:19] Production.INFO: count ==155 [2025-01-22 04:47:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:47:04 - End Time 2025-01-22 04:47:04 [2025-01-22 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302641', 'tblTempUsageDetail_20' ) start [2025-01-22 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302641', 'tblTempUsageDetail_20' ) end [2025-01-22 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302641', 'tblTempVendorCDR_20' ) start [2025-01-22 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302641', 'tblTempVendorCDR_20' ) end [2025-01-22 04:47:19] Production.INFO: ProcessCDR(1,14302641,1,1,2) [2025-01-22 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302641', 'tblTempUsageDetail_20' ) start [2025-01-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302641', 'tblTempUsageDetail_20' ) end [2025-01-22 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:47:22] Production.INFO: ==23651== Releasing lock... [2025-01-22 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:48:05 [end_date_ymd] => 2025-01-22 04:48:05 [RateCDR] => 1 ) [2025-01-22 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:48:05' and `end` < '2025-01-22 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:48:20] Production.INFO: count ==155 [2025-01-22 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:48:05 - End Time 2025-01-22 04:48:05 [2025-01-22 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302646', 'tblTempUsageDetail_20' ) start [2025-01-22 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302646', 'tblTempUsageDetail_20' ) end [2025-01-22 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302646', 'tblTempVendorCDR_20' ) start [2025-01-22 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302646', 'tblTempVendorCDR_20' ) end [2025-01-22 04:48:20] Production.INFO: ProcessCDR(1,14302646,1,1,2) [2025-01-22 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302646', 'tblTempUsageDetail_20' ) start [2025-01-22 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302646', 'tblTempUsageDetail_20' ) end [2025-01-22 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:48:23] Production.INFO: ==23728== Releasing lock... [2025-01-22 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:49:05 [end_date_ymd] => 2025-01-22 04:49:05 [RateCDR] => 1 ) [2025-01-22 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:49:05' and `end` < '2025-01-22 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:49:19] Production.INFO: count ==155 [2025-01-22 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:49:05 - End Time 2025-01-22 04:49:05 [2025-01-22 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302651', 'tblTempUsageDetail_20' ) start [2025-01-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302651', 'tblTempUsageDetail_20' ) end [2025-01-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302651', 'tblTempVendorCDR_20' ) start [2025-01-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302651', 'tblTempVendorCDR_20' ) end [2025-01-22 04:49:19] Production.INFO: ProcessCDR(1,14302651,1,1,2) [2025-01-22 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302651', 'tblTempUsageDetail_20' ) start [2025-01-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302651', 'tblTempUsageDetail_20' ) end [2025-01-22 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:49:22] Production.INFO: ==23802== Releasing lock... [2025-01-22 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:50:06 [end_date_ymd] => 2025-01-22 04:50:06 [RateCDR] => 1 ) [2025-01-22 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:50:06' and `end` < '2025-01-22 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:50:20] Production.INFO: count ==151 [2025-01-22 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:50:06 - End Time 2025-01-22 04:50:06 [2025-01-22 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302657', 'tblTempUsageDetail_20' ) start [2025-01-22 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302657', 'tblTempUsageDetail_20' ) end [2025-01-22 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302657', 'tblTempVendorCDR_20' ) start [2025-01-22 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302657', 'tblTempVendorCDR_20' ) end [2025-01-22 04:50:20] Production.INFO: ProcessCDR(1,14302657,1,1,2) [2025-01-22 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302657', 'tblTempUsageDetail_20' ) start [2025-01-22 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302657', 'tblTempUsageDetail_20' ) end [2025-01-22 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:50:23] Production.INFO: ==23885== Releasing lock... [2025-01-22 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:51:04 [end_date_ymd] => 2025-01-22 04:51:04 [RateCDR] => 1 ) [2025-01-22 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:51:04' and `end` < '2025-01-22 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:51:18] Production.INFO: count ==151 [2025-01-22 04:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:51:04 - End Time 2025-01-22 04:51:04 [2025-01-22 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302662', 'tblTempUsageDetail_20' ) start [2025-01-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302662', 'tblTempUsageDetail_20' ) end [2025-01-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302662', 'tblTempVendorCDR_20' ) start [2025-01-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302662', 'tblTempVendorCDR_20' ) end [2025-01-22 04:51:18] Production.INFO: ProcessCDR(1,14302662,1,1,2) [2025-01-22 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302662', 'tblTempUsageDetail_20' ) start [2025-01-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302662', 'tblTempUsageDetail_20' ) end [2025-01-22 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:51:21] Production.INFO: ==24000== Releasing lock... [2025-01-22 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:52:05 [end_date_ymd] => 2025-01-22 04:52:05 [RateCDR] => 1 ) [2025-01-22 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:52:05' and `end` < '2025-01-22 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:52:19] Production.INFO: count ==151 [2025-01-22 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:52:05 - End Time 2025-01-22 04:52:05 [2025-01-22 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302667', 'tblTempUsageDetail_20' ) start [2025-01-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302667', 'tblTempUsageDetail_20' ) end [2025-01-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302667', 'tblTempVendorCDR_20' ) start [2025-01-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302667', 'tblTempVendorCDR_20' ) end [2025-01-22 04:52:19] Production.INFO: ProcessCDR(1,14302667,1,1,2) [2025-01-22 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302667', 'tblTempUsageDetail_20' ) start [2025-01-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302667', 'tblTempUsageDetail_20' ) end [2025-01-22 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:52:22] Production.INFO: ==24077== Releasing lock... [2025-01-22 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:53:06 [end_date_ymd] => 2025-01-22 04:53:06 [RateCDR] => 1 ) [2025-01-22 04:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:53:06' and `end` < '2025-01-22 04:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:53:20] Production.INFO: count ==151 [2025-01-22 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:53:06 - End Time 2025-01-22 04:53:06 [2025-01-22 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302672', 'tblTempUsageDetail_20' ) start [2025-01-22 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302672', 'tblTempUsageDetail_20' ) end [2025-01-22 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302672', 'tblTempVendorCDR_20' ) start [2025-01-22 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302672', 'tblTempVendorCDR_20' ) end [2025-01-22 04:53:20] Production.INFO: ProcessCDR(1,14302672,1,1,2) [2025-01-22 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302672', 'tblTempUsageDetail_20' ) start [2025-01-22 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302672', 'tblTempUsageDetail_20' ) end [2025-01-22 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:53:23] Production.INFO: ==24154== Releasing lock... [2025-01-22 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:54:05 [end_date_ymd] => 2025-01-22 04:54:05 [RateCDR] => 1 ) [2025-01-22 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:54:05' and `end` < '2025-01-22 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:54:18] Production.INFO: count ==151 [2025-01-22 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:54:05 - End Time 2025-01-22 04:54:05 [2025-01-22 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302677', 'tblTempUsageDetail_20' ) start [2025-01-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302677', 'tblTempUsageDetail_20' ) end [2025-01-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302677', 'tblTempVendorCDR_20' ) start [2025-01-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302677', 'tblTempVendorCDR_20' ) end [2025-01-22 04:54:18] Production.INFO: ProcessCDR(1,14302677,1,1,2) [2025-01-22 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302677', 'tblTempUsageDetail_20' ) start [2025-01-22 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302677', 'tblTempUsageDetail_20' ) end [2025-01-22 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:54:21] Production.INFO: ==24227== Releasing lock... [2025-01-22 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:55:06 [end_date_ymd] => 2025-01-22 04:55:06 [RateCDR] => 1 ) [2025-01-22 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:55:06' and `end` < '2025-01-22 04:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:55:20] Production.INFO: count ==151 [2025-01-22 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:55:06 - End Time 2025-01-22 04:55:06 [2025-01-22 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302682', 'tblTempUsageDetail_20' ) start [2025-01-22 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302682', 'tblTempUsageDetail_20' ) end [2025-01-22 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302682', 'tblTempVendorCDR_20' ) start [2025-01-22 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302682', 'tblTempVendorCDR_20' ) end [2025-01-22 04:55:20] Production.INFO: ProcessCDR(1,14302682,1,1,2) [2025-01-22 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302682', 'tblTempUsageDetail_20' ) start [2025-01-22 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302682', 'tblTempUsageDetail_20' ) end [2025-01-22 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:55:23] Production.INFO: ==24306== Releasing lock... [2025-01-22 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:56:05 [end_date_ymd] => 2025-01-22 04:56:05 [RateCDR] => 1 ) [2025-01-22 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:56:05' and `end` < '2025-01-22 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:56:18] Production.INFO: count ==151 [2025-01-22 04:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 01:56:05 - End Time 2025-01-22 04:56:05 [2025-01-22 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302687', 'tblTempUsageDetail_20' ) start [2025-01-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302687', 'tblTempUsageDetail_20' ) end [2025-01-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302687', 'tblTempVendorCDR_20' ) start [2025-01-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302687', 'tblTempVendorCDR_20' ) end [2025-01-22 04:56:18] Production.INFO: ProcessCDR(1,14302687,1,1,2) [2025-01-22 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302687', 'tblTempUsageDetail_20' ) start [2025-01-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302687', 'tblTempUsageDetail_20' ) end [2025-01-22 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:56:22] Production.INFO: ==24387== Releasing lock... [2025-01-22 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:57:05 [end_date_ymd] => 2025-01-22 04:57:05 [RateCDR] => 1 ) [2025-01-22 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:57:05' and `end` < '2025-01-22 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:57:20] Production.INFO: count ==151 [2025-01-22 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-22 01:57:05 - End Time 2025-01-22 04:57:05 [2025-01-22 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302692', 'tblTempUsageDetail_20' ) start [2025-01-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302692', 'tblTempUsageDetail_20' ) end [2025-01-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302692', 'tblTempVendorCDR_20' ) start [2025-01-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302692', 'tblTempVendorCDR_20' ) end [2025-01-22 04:57:20] Production.INFO: ProcessCDR(1,14302692,1,1,2) [2025-01-22 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302692', 'tblTempUsageDetail_20' ) start [2025-01-22 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302692', 'tblTempUsageDetail_20' ) end [2025-01-22 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:57:23] Production.INFO: ==24465== Releasing lock... [2025-01-22 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:57:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:58:05 [end_date_ymd] => 2025-01-22 04:58:05 [RateCDR] => 1 ) [2025-01-22 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:58:05' and `end` < '2025-01-22 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:58:19] Production.INFO: count ==151 [2025-01-22 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:58:05 - End Time 2025-01-22 04:58:05 [2025-01-22 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302697', 'tblTempUsageDetail_20' ) start [2025-01-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302697', 'tblTempUsageDetail_20' ) end [2025-01-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302697', 'tblTempVendorCDR_20' ) start [2025-01-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302697', 'tblTempVendorCDR_20' ) end [2025-01-22 04:58:19] Production.INFO: ProcessCDR(1,14302697,1,1,2) [2025-01-22 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302697', 'tblTempUsageDetail_20' ) start [2025-01-22 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302697', 'tblTempUsageDetail_20' ) end [2025-01-22 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:58:22] Production.INFO: ==24541== Releasing lock... [2025-01-22 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 01:59:05 [end_date_ymd] => 2025-01-22 04:59:05 [RateCDR] => 1 ) [2025-01-22 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 01:59:05' and `end` < '2025-01-22 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 04:59:19] Production.INFO: count ==151 [2025-01-22 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-22 01:59:05 - End Time 2025-01-22 04:59:05 [2025-01-22 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302702', 'tblTempUsageDetail_20' ) start [2025-01-22 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302702', 'tblTempUsageDetail_20' ) end [2025-01-22 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302702', 'tblTempVendorCDR_20' ) start [2025-01-22 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302702', 'tblTempVendorCDR_20' ) end [2025-01-22 04:59:19] Production.INFO: ProcessCDR(1,14302702,1,1,2) [2025-01-22 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302702', 'tblTempUsageDetail_20' ) start [2025-01-22 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302702', 'tblTempUsageDetail_20' ) end [2025-01-22 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 04:59:22] Production.INFO: ==24623== Releasing lock... [2025-01-22 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 04:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:00:05 [end_date_ymd] => 2025-01-22 05:00:05 [RateCDR] => 1 ) [2025-01-22 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:00:05' and `end` < '2025-01-22 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:00:19] Production.INFO: count ==148 [2025-01-22 05:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:00:05 - End Time 2025-01-22 05:00:05 [2025-01-22 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302708', 'tblTempUsageDetail_20' ) start [2025-01-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302708', 'tblTempUsageDetail_20' ) end [2025-01-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302708', 'tblTempVendorCDR_20' ) start [2025-01-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302708', 'tblTempVendorCDR_20' ) end [2025-01-22 05:00:19] Production.INFO: ProcessCDR(1,14302708,1,1,2) [2025-01-22 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302708', 'tblTempUsageDetail_20' ) start [2025-01-22 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302708', 'tblTempUsageDetail_20' ) end [2025-01-22 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:00:22] Production.INFO: ==24701== Releasing lock... [2025-01-22 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:01:05 [end_date_ymd] => 2025-01-22 05:01:05 [RateCDR] => 1 ) [2025-01-22 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:01:05' and `end` < '2025-01-22 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:01:19] Production.INFO: count ==146 [2025-01-22 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:01:05 - End Time 2025-01-22 05:01:05 [2025-01-22 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302713', 'tblTempUsageDetail_20' ) start [2025-01-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302713', 'tblTempUsageDetail_20' ) end [2025-01-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302713', 'tblTempVendorCDR_20' ) start [2025-01-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302713', 'tblTempVendorCDR_20' ) end [2025-01-22 05:01:19] Production.INFO: ProcessCDR(1,14302713,1,1,2) [2025-01-22 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302713', 'tblTempUsageDetail_20' ) start [2025-01-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302713', 'tblTempUsageDetail_20' ) end [2025-01-22 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:01:22] Production.INFO: ==24790== Releasing lock... [2025-01-22 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:02:05 [end_date_ymd] => 2025-01-22 05:02:05 [RateCDR] => 1 ) [2025-01-22 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:02:05' and `end` < '2025-01-22 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:02:19] Production.INFO: count ==146 [2025-01-22 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:02:05 - End Time 2025-01-22 05:02:05 [2025-01-22 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302718', 'tblTempUsageDetail_20' ) start [2025-01-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302718', 'tblTempUsageDetail_20' ) end [2025-01-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302718', 'tblTempVendorCDR_20' ) start [2025-01-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302718', 'tblTempVendorCDR_20' ) end [2025-01-22 05:02:19] Production.INFO: ProcessCDR(1,14302718,1,1,2) [2025-01-22 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302718', 'tblTempUsageDetail_20' ) start [2025-01-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302718', 'tblTempUsageDetail_20' ) end [2025-01-22 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:02:22] Production.INFO: ==24869== Releasing lock... [2025-01-22 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:03:05 [end_date_ymd] => 2025-01-22 05:03:05 [RateCDR] => 1 ) [2025-01-22 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:03:05' and `end` < '2025-01-22 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:03:19] Production.INFO: count ==146 [2025-01-22 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:03:05 - End Time 2025-01-22 05:03:05 [2025-01-22 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302723', 'tblTempUsageDetail_20' ) start [2025-01-22 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302723', 'tblTempUsageDetail_20' ) end [2025-01-22 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302723', 'tblTempVendorCDR_20' ) start [2025-01-22 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302723', 'tblTempVendorCDR_20' ) end [2025-01-22 05:03:19] Production.INFO: ProcessCDR(1,14302723,1,1,2) [2025-01-22 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302723', 'tblTempUsageDetail_20' ) start [2025-01-22 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302723', 'tblTempUsageDetail_20' ) end [2025-01-22 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:03:22] Production.INFO: ==24946== Releasing lock... [2025-01-22 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:04:05 [end_date_ymd] => 2025-01-22 05:04:05 [RateCDR] => 1 ) [2025-01-22 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:04:05' and `end` < '2025-01-22 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:04:18] Production.INFO: count ==145 [2025-01-22 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:04:05 - End Time 2025-01-22 05:04:05 [2025-01-22 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302728', 'tblTempUsageDetail_20' ) start [2025-01-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302728', 'tblTempUsageDetail_20' ) end [2025-01-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302728', 'tblTempVendorCDR_20' ) start [2025-01-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302728', 'tblTempVendorCDR_20' ) end [2025-01-22 05:04:18] Production.INFO: ProcessCDR(1,14302728,1,1,2) [2025-01-22 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302728', 'tblTempUsageDetail_20' ) start [2025-01-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302728', 'tblTempUsageDetail_20' ) end [2025-01-22 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:04:21] Production.INFO: ==25021== Releasing lock... [2025-01-22 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:05:06 [end_date_ymd] => 2025-01-22 05:05:06 [RateCDR] => 1 ) [2025-01-22 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:05:06' and `end` < '2025-01-22 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:05:19] Production.INFO: count ==144 [2025-01-22 05:05:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:05:06 - End Time 2025-01-22 05:05:06 [2025-01-22 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302733', 'tblTempUsageDetail_20' ) start [2025-01-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302733', 'tblTempUsageDetail_20' ) end [2025-01-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302733', 'tblTempVendorCDR_20' ) start [2025-01-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302733', 'tblTempVendorCDR_20' ) end [2025-01-22 05:05:19] Production.INFO: ProcessCDR(1,14302733,1,1,2) [2025-01-22 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302733', 'tblTempUsageDetail_20' ) start [2025-01-22 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302733', 'tblTempUsageDetail_20' ) end [2025-01-22 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:05:22] Production.INFO: ==25097== Releasing lock... [2025-01-22 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:06:05 [end_date_ymd] => 2025-01-22 05:06:05 [RateCDR] => 1 ) [2025-01-22 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:06:05' and `end` < '2025-01-22 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:06:19] Production.INFO: count ==144 [2025-01-22 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:06:05 - End Time 2025-01-22 05:06:05 [2025-01-22 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302738', 'tblTempUsageDetail_20' ) start [2025-01-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302738', 'tblTempUsageDetail_20' ) end [2025-01-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302738', 'tblTempVendorCDR_20' ) start [2025-01-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302738', 'tblTempVendorCDR_20' ) end [2025-01-22 05:06:19] Production.INFO: ProcessCDR(1,14302738,1,1,2) [2025-01-22 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302738', 'tblTempUsageDetail_20' ) start [2025-01-22 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302738', 'tblTempUsageDetail_20' ) end [2025-01-22 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:06:22] Production.INFO: ==25210== Releasing lock... [2025-01-22 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:07:05 [end_date_ymd] => 2025-01-22 05:07:05 [RateCDR] => 1 ) [2025-01-22 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:07:05' and `end` < '2025-01-22 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:07:17] Production.INFO: count ==142 [2025-01-22 05:07:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:07:05 - End Time 2025-01-22 05:07:05 [2025-01-22 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302743', 'tblTempUsageDetail_20' ) start [2025-01-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302743', 'tblTempUsageDetail_20' ) end [2025-01-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302743', 'tblTempVendorCDR_20' ) start [2025-01-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302743', 'tblTempVendorCDR_20' ) end [2025-01-22 05:07:17] Production.INFO: ProcessCDR(1,14302743,1,1,2) [2025-01-22 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302743', 'tblTempUsageDetail_20' ) start [2025-01-22 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302743', 'tblTempUsageDetail_20' ) end [2025-01-22 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:07:20] Production.INFO: ==25286== Releasing lock... [2025-01-22 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:08:05 [end_date_ymd] => 2025-01-22 05:08:05 [RateCDR] => 1 ) [2025-01-22 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:08:05' and `end` < '2025-01-22 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:08:18] Production.INFO: count ==140 [2025-01-22 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:08:05 - End Time 2025-01-22 05:08:05 [2025-01-22 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302748', 'tblTempUsageDetail_20' ) start [2025-01-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302748', 'tblTempUsageDetail_20' ) end [2025-01-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302748', 'tblTempVendorCDR_20' ) start [2025-01-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302748', 'tblTempVendorCDR_20' ) end [2025-01-22 05:08:18] Production.INFO: ProcessCDR(1,14302748,1,1,2) [2025-01-22 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302748', 'tblTempUsageDetail_20' ) start [2025-01-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302748', 'tblTempUsageDetail_20' ) end [2025-01-22 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:08:21] Production.INFO: ==25361== Releasing lock... [2025-01-22 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:09:05 [end_date_ymd] => 2025-01-22 05:09:05 [RateCDR] => 1 ) [2025-01-22 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:09:05' and `end` < '2025-01-22 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:09:18] Production.INFO: count ==140 [2025-01-22 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:09:05 - End Time 2025-01-22 05:09:05 [2025-01-22 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302753', 'tblTempUsageDetail_20' ) start [2025-01-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302753', 'tblTempUsageDetail_20' ) end [2025-01-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302753', 'tblTempVendorCDR_20' ) start [2025-01-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302753', 'tblTempVendorCDR_20' ) end [2025-01-22 05:09:18] Production.INFO: ProcessCDR(1,14302753,1,1,2) [2025-01-22 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302753', 'tblTempUsageDetail_20' ) start [2025-01-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302753', 'tblTempUsageDetail_20' ) end [2025-01-22 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:09:21] Production.INFO: ==25438== Releasing lock... [2025-01-22 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:10:06 [end_date_ymd] => 2025-01-22 05:10:06 [RateCDR] => 1 ) [2025-01-22 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:10:06' and `end` < '2025-01-22 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:10:19] Production.INFO: count ==128 [2025-01-22 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:10:06 - End Time 2025-01-22 05:10:06 [2025-01-22 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302758', 'tblTempUsageDetail_20' ) start [2025-01-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302758', 'tblTempUsageDetail_20' ) end [2025-01-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302758', 'tblTempVendorCDR_20' ) start [2025-01-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302758', 'tblTempVendorCDR_20' ) end [2025-01-22 05:10:19] Production.INFO: ProcessCDR(1,14302758,1,1,2) [2025-01-22 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302758', 'tblTempUsageDetail_20' ) start [2025-01-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302758', 'tblTempUsageDetail_20' ) end [2025-01-22 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:10:22] Production.INFO: ==25516== Releasing lock... [2025-01-22 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:11:05 [end_date_ymd] => 2025-01-22 05:11:05 [RateCDR] => 1 ) [2025-01-22 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:11:05' and `end` < '2025-01-22 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:11:18] Production.INFO: count ==128 [2025-01-22 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:11:05 - End Time 2025-01-22 05:11:05 [2025-01-22 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302764', 'tblTempUsageDetail_20' ) start [2025-01-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302764', 'tblTempUsageDetail_20' ) end [2025-01-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302764', 'tblTempVendorCDR_20' ) start [2025-01-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302764', 'tblTempVendorCDR_20' ) end [2025-01-22 05:11:18] Production.INFO: ProcessCDR(1,14302764,1,1,2) [2025-01-22 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302764', 'tblTempUsageDetail_20' ) start [2025-01-22 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302764', 'tblTempUsageDetail_20' ) end [2025-01-22 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:11:21] Production.INFO: ==25596== Releasing lock... [2025-01-22 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:12:06 [end_date_ymd] => 2025-01-22 05:12:06 [RateCDR] => 1 ) [2025-01-22 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:12:06' and `end` < '2025-01-22 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:12:18] Production.INFO: count ==128 [2025-01-22 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:12:06 - End Time 2025-01-22 05:12:06 [2025-01-22 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302769', 'tblTempUsageDetail_20' ) start [2025-01-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302769', 'tblTempUsageDetail_20' ) end [2025-01-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302769', 'tblTempVendorCDR_20' ) start [2025-01-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302769', 'tblTempVendorCDR_20' ) end [2025-01-22 05:12:18] Production.INFO: ProcessCDR(1,14302769,1,1,2) [2025-01-22 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302769', 'tblTempUsageDetail_20' ) start [2025-01-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302769', 'tblTempUsageDetail_20' ) end [2025-01-22 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:12:21] Production.INFO: ==25669== Releasing lock... [2025-01-22 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:13:05 [end_date_ymd] => 2025-01-22 05:13:05 [RateCDR] => 1 ) [2025-01-22 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:13:05' and `end` < '2025-01-22 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:13:17] Production.INFO: count ==128 [2025-01-22 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:13:05 - End Time 2025-01-22 05:13:05 [2025-01-22 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302774', 'tblTempUsageDetail_20' ) start [2025-01-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302774', 'tblTempUsageDetail_20' ) end [2025-01-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302774', 'tblTempVendorCDR_20' ) start [2025-01-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302774', 'tblTempVendorCDR_20' ) end [2025-01-22 05:13:17] Production.INFO: ProcessCDR(1,14302774,1,1,2) [2025-01-22 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302774', 'tblTempUsageDetail_20' ) start [2025-01-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302774', 'tblTempUsageDetail_20' ) end [2025-01-22 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:13:20] Production.INFO: ==25746== Releasing lock... [2025-01-22 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:14:05 [end_date_ymd] => 2025-01-22 05:14:05 [RateCDR] => 1 ) [2025-01-22 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:14:05' and `end` < '2025-01-22 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:14:18] Production.INFO: count ==128 [2025-01-22 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:14:05 - End Time 2025-01-22 05:14:05 [2025-01-22 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302779', 'tblTempUsageDetail_20' ) start [2025-01-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302779', 'tblTempUsageDetail_20' ) end [2025-01-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302779', 'tblTempVendorCDR_20' ) start [2025-01-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302779', 'tblTempVendorCDR_20' ) end [2025-01-22 05:14:18] Production.INFO: ProcessCDR(1,14302779,1,1,2) [2025-01-22 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302779', 'tblTempUsageDetail_20' ) start [2025-01-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302779', 'tblTempUsageDetail_20' ) end [2025-01-22 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:14:21] Production.INFO: ==25823== Releasing lock... [2025-01-22 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:15:05 [end_date_ymd] => 2025-01-22 05:15:05 [RateCDR] => 1 ) [2025-01-22 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:15:05' and `end` < '2025-01-22 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:15:18] Production.INFO: count ==128 [2025-01-22 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:15:05 - End Time 2025-01-22 05:15:05 [2025-01-22 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302784', 'tblTempUsageDetail_20' ) start [2025-01-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302784', 'tblTempUsageDetail_20' ) end [2025-01-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302784', 'tblTempVendorCDR_20' ) start [2025-01-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302784', 'tblTempVendorCDR_20' ) end [2025-01-22 05:15:18] Production.INFO: ProcessCDR(1,14302784,1,1,2) [2025-01-22 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302784', 'tblTempUsageDetail_20' ) start [2025-01-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302784', 'tblTempUsageDetail_20' ) end [2025-01-22 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:15:21] Production.INFO: ==25903== Releasing lock... [2025-01-22 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:16:06 [end_date_ymd] => 2025-01-22 05:16:06 [RateCDR] => 1 ) [2025-01-22 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:16:06' and `end` < '2025-01-22 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:16:18] Production.INFO: count ==128 [2025-01-22 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:16:06 - End Time 2025-01-22 05:16:06 [2025-01-22 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302789', 'tblTempUsageDetail_20' ) start [2025-01-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302789', 'tblTempUsageDetail_20' ) end [2025-01-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302789', 'tblTempVendorCDR_20' ) start [2025-01-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302789', 'tblTempVendorCDR_20' ) end [2025-01-22 05:16:18] Production.INFO: ProcessCDR(1,14302789,1,1,2) [2025-01-22 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302789', 'tblTempUsageDetail_20' ) start [2025-01-22 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302789', 'tblTempUsageDetail_20' ) end [2025-01-22 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:16:21] Production.INFO: ==25983== Releasing lock... [2025-01-22 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:17:05 [end_date_ymd] => 2025-01-22 05:17:05 [RateCDR] => 1 ) [2025-01-22 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:17:05' and `end` < '2025-01-22 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:17:18] Production.INFO: count ==128 [2025-01-22 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:17:05 - End Time 2025-01-22 05:17:05 [2025-01-22 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302794', 'tblTempUsageDetail_20' ) start [2025-01-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302794', 'tblTempUsageDetail_20' ) end [2025-01-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302794', 'tblTempVendorCDR_20' ) start [2025-01-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302794', 'tblTempVendorCDR_20' ) end [2025-01-22 05:17:18] Production.INFO: ProcessCDR(1,14302794,1,1,2) [2025-01-22 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302794', 'tblTempUsageDetail_20' ) start [2025-01-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302794', 'tblTempUsageDetail_20' ) end [2025-01-22 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:17:21] Production.INFO: ==26058== Releasing lock... [2025-01-22 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:18:05 [end_date_ymd] => 2025-01-22 05:18:05 [RateCDR] => 1 ) [2025-01-22 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:18:05' and `end` < '2025-01-22 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:18:18] Production.INFO: count ==128 [2025-01-22 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:18:05 - End Time 2025-01-22 05:18:05 [2025-01-22 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302799', 'tblTempUsageDetail_20' ) start [2025-01-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302799', 'tblTempUsageDetail_20' ) end [2025-01-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302799', 'tblTempVendorCDR_20' ) start [2025-01-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302799', 'tblTempVendorCDR_20' ) end [2025-01-22 05:18:18] Production.INFO: ProcessCDR(1,14302799,1,1,2) [2025-01-22 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302799', 'tblTempUsageDetail_20' ) start [2025-01-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302799', 'tblTempUsageDetail_20' ) end [2025-01-22 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:18:21] Production.INFO: ==26137== Releasing lock... [2025-01-22 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:19:05 [end_date_ymd] => 2025-01-22 05:19:05 [RateCDR] => 1 ) [2025-01-22 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:19:05' and `end` < '2025-01-22 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:19:18] Production.INFO: count ==128 [2025-01-22 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:19:05 - End Time 2025-01-22 05:19:05 [2025-01-22 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302804', 'tblTempUsageDetail_20' ) start [2025-01-22 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302804', 'tblTempUsageDetail_20' ) end [2025-01-22 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302804', 'tblTempVendorCDR_20' ) start [2025-01-22 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302804', 'tblTempVendorCDR_20' ) end [2025-01-22 05:19:18] Production.INFO: ProcessCDR(1,14302804,1,1,2) [2025-01-22 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302804', 'tblTempUsageDetail_20' ) start [2025-01-22 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302804', 'tblTempUsageDetail_20' ) end [2025-01-22 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:19:21] Production.INFO: ==26212== Releasing lock... [2025-01-22 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:20:06 [end_date_ymd] => 2025-01-22 05:20:06 [RateCDR] => 1 ) [2025-01-22 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:20:06' and `end` < '2025-01-22 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:20:19] Production.INFO: count ==126 [2025-01-22 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:20:06 - End Time 2025-01-22 05:20:06 [2025-01-22 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302809', 'tblTempUsageDetail_20' ) start [2025-01-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302809', 'tblTempUsageDetail_20' ) end [2025-01-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302809', 'tblTempVendorCDR_20' ) start [2025-01-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302809', 'tblTempVendorCDR_20' ) end [2025-01-22 05:20:19] Production.INFO: ProcessCDR(1,14302809,1,1,2) [2025-01-22 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302809', 'tblTempUsageDetail_20' ) start [2025-01-22 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302809', 'tblTempUsageDetail_20' ) end [2025-01-22 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:20:23] Production.INFO: ==26291== Releasing lock... [2025-01-22 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:21:05 [end_date_ymd] => 2025-01-22 05:21:05 [RateCDR] => 1 ) [2025-01-22 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:21:05' and `end` < '2025-01-22 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:21:18] Production.INFO: count ==126 [2025-01-22 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:21:05 - End Time 2025-01-22 05:21:05 [2025-01-22 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302815', 'tblTempUsageDetail_20' ) start [2025-01-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302815', 'tblTempUsageDetail_20' ) end [2025-01-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302815', 'tblTempVendorCDR_20' ) start [2025-01-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302815', 'tblTempVendorCDR_20' ) end [2025-01-22 05:21:18] Production.INFO: ProcessCDR(1,14302815,1,1,2) [2025-01-22 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302815', 'tblTempUsageDetail_20' ) start [2025-01-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302815', 'tblTempUsageDetail_20' ) end [2025-01-22 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:21:21] Production.INFO: ==26371== Releasing lock... [2025-01-22 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:22:05 [end_date_ymd] => 2025-01-22 05:22:05 [RateCDR] => 1 ) [2025-01-22 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:22:05' and `end` < '2025-01-22 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:22:18] Production.INFO: count ==126 [2025-01-22 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:22:05 - End Time 2025-01-22 05:22:05 [2025-01-22 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302820', 'tblTempUsageDetail_20' ) start [2025-01-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302820', 'tblTempUsageDetail_20' ) end [2025-01-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302820', 'tblTempVendorCDR_20' ) start [2025-01-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302820', 'tblTempVendorCDR_20' ) end [2025-01-22 05:22:18] Production.INFO: ProcessCDR(1,14302820,1,1,2) [2025-01-22 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302820', 'tblTempUsageDetail_20' ) start [2025-01-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302820', 'tblTempUsageDetail_20' ) end [2025-01-22 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:22:21] Production.INFO: ==26493== Releasing lock... [2025-01-22 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:23:05 [end_date_ymd] => 2025-01-22 05:23:05 [RateCDR] => 1 ) [2025-01-22 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:23:05' and `end` < '2025-01-22 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:23:18] Production.INFO: count ==126 [2025-01-22 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:23:05 - End Time 2025-01-22 05:23:05 [2025-01-22 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302825', 'tblTempUsageDetail_20' ) start [2025-01-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302825', 'tblTempUsageDetail_20' ) end [2025-01-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302825', 'tblTempVendorCDR_20' ) start [2025-01-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302825', 'tblTempVendorCDR_20' ) end [2025-01-22 05:23:18] Production.INFO: ProcessCDR(1,14302825,1,1,2) [2025-01-22 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302825', 'tblTempUsageDetail_20' ) start [2025-01-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302825', 'tblTempUsageDetail_20' ) end [2025-01-22 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:23:21] Production.INFO: ==26568== Releasing lock... [2025-01-22 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:24:06 [end_date_ymd] => 2025-01-22 05:24:06 [RateCDR] => 1 ) [2025-01-22 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:24:06' and `end` < '2025-01-22 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:24:19] Production.INFO: count ==126 [2025-01-22 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:24:06 - End Time 2025-01-22 05:24:06 [2025-01-22 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302830', 'tblTempUsageDetail_20' ) start [2025-01-22 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302830', 'tblTempUsageDetail_20' ) end [2025-01-22 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302830', 'tblTempVendorCDR_20' ) start [2025-01-22 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302830', 'tblTempVendorCDR_20' ) end [2025-01-22 05:24:19] Production.INFO: ProcessCDR(1,14302830,1,1,2) [2025-01-22 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302830', 'tblTempUsageDetail_20' ) start [2025-01-22 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302830', 'tblTempUsageDetail_20' ) end [2025-01-22 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:24:22] Production.INFO: ==26642== Releasing lock... [2025-01-22 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:25:05 [end_date_ymd] => 2025-01-22 05:25:05 [RateCDR] => 1 ) [2025-01-22 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:25:05' and `end` < '2025-01-22 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:25:18] Production.INFO: count ==126 [2025-01-22 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:25:05 - End Time 2025-01-22 05:25:05 [2025-01-22 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302835', 'tblTempUsageDetail_20' ) start [2025-01-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302835', 'tblTempUsageDetail_20' ) end [2025-01-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302835', 'tblTempVendorCDR_20' ) start [2025-01-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302835', 'tblTempVendorCDR_20' ) end [2025-01-22 05:25:18] Production.INFO: ProcessCDR(1,14302835,1,1,2) [2025-01-22 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302835', 'tblTempUsageDetail_20' ) start [2025-01-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302835', 'tblTempUsageDetail_20' ) end [2025-01-22 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:25:21] Production.INFO: ==26723== Releasing lock... [2025-01-22 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:26:04 [end_date_ymd] => 2025-01-22 05:26:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 02:26:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 05:26:17] Production.INFO: count ==126 [2025-01-22 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:26:04 - End Time 2025-01-22 05:26:04 [2025-01-22 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302840', 'tblTempUsageDetail_20' ) start [2025-01-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302840', 'tblTempUsageDetail_20' ) end [2025-01-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302840', 'tblTempVendorCDR_20' ) start [2025-01-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302840', 'tblTempVendorCDR_20' ) end [2025-01-22 05:26:17] Production.INFO: ProcessCDR(1,14302840,1,1,2) [2025-01-22 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302840', 'tblTempUsageDetail_20' ) start [2025-01-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302840', 'tblTempUsageDetail_20' ) end [2025-01-22 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:26:20] Production.INFO: ==26799== Releasing lock... [2025-01-22 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:27:05 [end_date_ymd] => 2025-01-22 05:27:05 [RateCDR] => 1 ) [2025-01-22 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:27:05' and `end` < '2025-01-22 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:27:18] Production.INFO: count ==126 [2025-01-22 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:27:05 - End Time 2025-01-22 05:27:05 [2025-01-22 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302845', 'tblTempUsageDetail_20' ) start [2025-01-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302845', 'tblTempUsageDetail_20' ) end [2025-01-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302845', 'tblTempVendorCDR_20' ) start [2025-01-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302845', 'tblTempVendorCDR_20' ) end [2025-01-22 05:27:18] Production.INFO: ProcessCDR(1,14302845,1,1,2) [2025-01-22 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302845', 'tblTempUsageDetail_20' ) start [2025-01-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302845', 'tblTempUsageDetail_20' ) end [2025-01-22 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:27:21] Production.INFO: ==26885== Releasing lock... [2025-01-22 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:28:04 [end_date_ymd] => 2025-01-22 05:28:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 02:28:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 05:28:17] Production.INFO: count ==126 [2025-01-22 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:28:04 - End Time 2025-01-22 05:28:04 [2025-01-22 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302850', 'tblTempUsageDetail_20' ) start [2025-01-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302850', 'tblTempUsageDetail_20' ) end [2025-01-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302850', 'tblTempVendorCDR_20' ) start [2025-01-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302850', 'tblTempVendorCDR_20' ) end [2025-01-22 05:28:18] Production.INFO: ProcessCDR(1,14302850,1,1,2) [2025-01-22 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302850', 'tblTempUsageDetail_20' ) start [2025-01-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302850', 'tblTempUsageDetail_20' ) end [2025-01-22 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:28:21] Production.INFO: ==26962== Releasing lock... [2025-01-22 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:29:05 [end_date_ymd] => 2025-01-22 05:29:05 [RateCDR] => 1 ) [2025-01-22 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:29:05' and `end` < '2025-01-22 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:29:17] Production.INFO: count ==126 [2025-01-22 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:29:05 - End Time 2025-01-22 05:29:05 [2025-01-22 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302855', 'tblTempUsageDetail_20' ) start [2025-01-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302855', 'tblTempUsageDetail_20' ) end [2025-01-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302855', 'tblTempVendorCDR_20' ) start [2025-01-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302855', 'tblTempVendorCDR_20' ) end [2025-01-22 05:29:17] Production.INFO: ProcessCDR(1,14302855,1,1,2) [2025-01-22 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302855', 'tblTempUsageDetail_20' ) start [2025-01-22 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302855', 'tblTempUsageDetail_20' ) end [2025-01-22 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:29:21] Production.INFO: ==27043== Releasing lock... [2025-01-22 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:30:05 [end_date_ymd] => 2025-01-22 05:30:05 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 02:30:05' and `end` < '2025-01-22 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 ,'') [2025-01-22 05:30:18] Production.INFO: count ==123 [2025-01-22 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:30:05 - End Time 2025-01-22 05:30:05 [2025-01-22 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302860', 'tblTempUsageDetail_20' ) start [2025-01-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302860', 'tblTempUsageDetail_20' ) end [2025-01-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302860', 'tblTempVendorCDR_20' ) start [2025-01-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302860', 'tblTempVendorCDR_20' ) end [2025-01-22 05:30:18] Production.INFO: ProcessCDR(1,14302860,1,1,2) [2025-01-22 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302860', 'tblTempUsageDetail_20' ) start [2025-01-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302860', 'tblTempUsageDetail_20' ) end [2025-01-22 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:30:21] Production.INFO: ==27121== Releasing lock... [2025-01-22 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:31:05 [end_date_ymd] => 2025-01-22 05:31:05 [RateCDR] => 1 ) [2025-01-22 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:31:05' and `end` < '2025-01-22 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:31:18] Production.INFO: count ==123 [2025-01-22 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:31:05 - End Time 2025-01-22 05:31:05 [2025-01-22 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302864', 'tblTempUsageDetail_20' ) start [2025-01-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302864', 'tblTempUsageDetail_20' ) end [2025-01-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302864', 'tblTempVendorCDR_20' ) start [2025-01-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302864', 'tblTempVendorCDR_20' ) end [2025-01-22 05:31:18] Production.INFO: ProcessCDR(1,14302864,1,1,2) [2025-01-22 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302864', 'tblTempUsageDetail_20' ) start [2025-01-22 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302864', 'tblTempUsageDetail_20' ) end [2025-01-22 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:31:21] Production.INFO: ==27202== Releasing lock... [2025-01-22 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:32:06 [end_date_ymd] => 2025-01-22 05:32:06 [RateCDR] => 1 ) [2025-01-22 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:32:06' and `end` < '2025-01-22 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:32:19] Production.INFO: count ==123 [2025-01-22 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:32:06 - End Time 2025-01-22 05:32:06 [2025-01-22 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302871', 'tblTempUsageDetail_20' ) start [2025-01-22 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302871', 'tblTempUsageDetail_20' ) end [2025-01-22 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302871', 'tblTempVendorCDR_20' ) start [2025-01-22 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302871', 'tblTempVendorCDR_20' ) end [2025-01-22 05:32:19] Production.INFO: ProcessCDR(1,14302871,1,1,2) [2025-01-22 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302871', 'tblTempUsageDetail_20' ) start [2025-01-22 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302871', 'tblTempUsageDetail_20' ) end [2025-01-22 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:32:22] Production.INFO: ==27281== Releasing lock... [2025-01-22 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:33:05 [end_date_ymd] => 2025-01-22 05:33:05 [RateCDR] => 1 ) [2025-01-22 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:33:05' and `end` < '2025-01-22 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:33:17] Production.INFO: count ==123 [2025-01-22 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:33:05 - End Time 2025-01-22 05:33:05 [2025-01-22 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302876', 'tblTempUsageDetail_20' ) start [2025-01-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302876', 'tblTempUsageDetail_20' ) end [2025-01-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302876', 'tblTempVendorCDR_20' ) start [2025-01-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302876', 'tblTempVendorCDR_20' ) end [2025-01-22 05:33:17] Production.INFO: ProcessCDR(1,14302876,1,1,2) [2025-01-22 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302876', 'tblTempUsageDetail_20' ) start [2025-01-22 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302876', 'tblTempUsageDetail_20' ) end [2025-01-22 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:33:21] Production.INFO: ==27356== Releasing lock... [2025-01-22 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:34:05 [end_date_ymd] => 2025-01-22 05:34:05 [RateCDR] => 1 ) [2025-01-22 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:34:05' and `end` < '2025-01-22 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:34:18] Production.INFO: count ==123 [2025-01-22 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:34:05 - End Time 2025-01-22 05:34:05 [2025-01-22 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302881', 'tblTempUsageDetail_20' ) start [2025-01-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302881', 'tblTempUsageDetail_20' ) end [2025-01-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302881', 'tblTempVendorCDR_20' ) start [2025-01-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302881', 'tblTempVendorCDR_20' ) end [2025-01-22 05:34:18] Production.INFO: ProcessCDR(1,14302881,1,1,2) [2025-01-22 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302881', 'tblTempUsageDetail_20' ) start [2025-01-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302881', 'tblTempUsageDetail_20' ) end [2025-01-22 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:34:21] Production.INFO: ==27434== Releasing lock... [2025-01-22 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:35:05 [end_date_ymd] => 2025-01-22 05:35:05 [RateCDR] => 1 ) [2025-01-22 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:35:05' and `end` < '2025-01-22 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:35:18] Production.INFO: count ==123 [2025-01-22 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:35:05 - End Time 2025-01-22 05:35:05 [2025-01-22 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302886', 'tblTempUsageDetail_20' ) start [2025-01-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302886', 'tblTempUsageDetail_20' ) end [2025-01-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302886', 'tblTempVendorCDR_20' ) start [2025-01-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302886', 'tblTempVendorCDR_20' ) end [2025-01-22 05:35:18] Production.INFO: ProcessCDR(1,14302886,1,1,2) [2025-01-22 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302886', 'tblTempUsageDetail_20' ) start [2025-01-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302886', 'tblTempUsageDetail_20' ) end [2025-01-22 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:35:21] Production.INFO: ==27508== Releasing lock... [2025-01-22 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:36:05 [end_date_ymd] => 2025-01-22 05:36:05 [RateCDR] => 1 ) [2025-01-22 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:36:05' and `end` < '2025-01-22 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:36:18] Production.INFO: count ==123 [2025-01-22 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:36:05 - End Time 2025-01-22 05:36:05 [2025-01-22 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302891', 'tblTempUsageDetail_20' ) start [2025-01-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302891', 'tblTempUsageDetail_20' ) end [2025-01-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302891', 'tblTempVendorCDR_20' ) start [2025-01-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302891', 'tblTempVendorCDR_20' ) end [2025-01-22 05:36:18] Production.INFO: ProcessCDR(1,14302891,1,1,2) [2025-01-22 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302891', 'tblTempUsageDetail_20' ) start [2025-01-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302891', 'tblTempUsageDetail_20' ) end [2025-01-22 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:36:21] Production.INFO: ==27584== Releasing lock... [2025-01-22 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:37:05 [end_date_ymd] => 2025-01-22 05:37:05 [RateCDR] => 1 ) [2025-01-22 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:37:05' and `end` < '2025-01-22 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:37:17] Production.INFO: count ==123 [2025-01-22 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:37:05 - End Time 2025-01-22 05:37:05 [2025-01-22 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302896', 'tblTempUsageDetail_20' ) start [2025-01-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302896', 'tblTempUsageDetail_20' ) end [2025-01-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302896', 'tblTempVendorCDR_20' ) start [2025-01-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302896', 'tblTempVendorCDR_20' ) end [2025-01-22 05:37:17] Production.INFO: ProcessCDR(1,14302896,1,1,2) [2025-01-22 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302896', 'tblTempUsageDetail_20' ) start [2025-01-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302896', 'tblTempUsageDetail_20' ) end [2025-01-22 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:37:20] Production.INFO: ==27701== Releasing lock... [2025-01-22 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:38:06 [end_date_ymd] => 2025-01-22 05:38:06 [RateCDR] => 1 ) [2025-01-22 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:38:06' and `end` < '2025-01-22 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:38:18] Production.INFO: count ==123 [2025-01-22 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:38:06 - End Time 2025-01-22 05:38:06 [2025-01-22 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302901', 'tblTempUsageDetail_20' ) start [2025-01-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302901', 'tblTempUsageDetail_20' ) end [2025-01-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302901', 'tblTempVendorCDR_20' ) start [2025-01-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302901', 'tblTempVendorCDR_20' ) end [2025-01-22 05:38:18] Production.INFO: ProcessCDR(1,14302901,1,1,2) [2025-01-22 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302901', 'tblTempUsageDetail_20' ) start [2025-01-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302901', 'tblTempUsageDetail_20' ) end [2025-01-22 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:38:21] Production.INFO: ==27775== Releasing lock... [2025-01-22 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:39:05 [end_date_ymd] => 2025-01-22 05:39:05 [RateCDR] => 1 ) [2025-01-22 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:39:05' and `end` < '2025-01-22 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:39:17] Production.INFO: count ==123 [2025-01-22 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:39:05 - End Time 2025-01-22 05:39:05 [2025-01-22 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302906', 'tblTempUsageDetail_20' ) start [2025-01-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302906', 'tblTempUsageDetail_20' ) end [2025-01-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302906', 'tblTempVendorCDR_20' ) start [2025-01-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302906', 'tblTempVendorCDR_20' ) end [2025-01-22 05:39:17] Production.INFO: ProcessCDR(1,14302906,1,1,2) [2025-01-22 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302906', 'tblTempUsageDetail_20' ) start [2025-01-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302906', 'tblTempUsageDetail_20' ) end [2025-01-22 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:39:21] Production.INFO: ==27852== Releasing lock... [2025-01-22 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:40:06 [end_date_ymd] => 2025-01-22 05:40:06 [RateCDR] => 1 ) [2025-01-22 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:40:06' and `end` < '2025-01-22 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:40:18] Production.INFO: count ==120 [2025-01-22 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:40:06 - End Time 2025-01-22 05:40:06 [2025-01-22 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302912', 'tblTempUsageDetail_20' ) start [2025-01-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302912', 'tblTempUsageDetail_20' ) end [2025-01-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302912', 'tblTempVendorCDR_20' ) start [2025-01-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302912', 'tblTempVendorCDR_20' ) end [2025-01-22 05:40:18] Production.INFO: ProcessCDR(1,14302912,1,1,2) [2025-01-22 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302912', 'tblTempUsageDetail_20' ) start [2025-01-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302912', 'tblTempUsageDetail_20' ) end [2025-01-22 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:40:21] Production.INFO: ==27930== Releasing lock... [2025-01-22 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:41:05 [end_date_ymd] => 2025-01-22 05:41:05 [RateCDR] => 1 ) [2025-01-22 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:41:05' and `end` < '2025-01-22 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:41:18] Production.INFO: count ==120 [2025-01-22 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:41:05 - End Time 2025-01-22 05:41:05 [2025-01-22 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302917', 'tblTempUsageDetail_20' ) start [2025-01-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302917', 'tblTempUsageDetail_20' ) end [2025-01-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302917', 'tblTempVendorCDR_20' ) start [2025-01-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302917', 'tblTempVendorCDR_20' ) end [2025-01-22 05:41:18] Production.INFO: ProcessCDR(1,14302917,1,1,2) [2025-01-22 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302917', 'tblTempUsageDetail_20' ) start [2025-01-22 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302917', 'tblTempUsageDetail_20' ) end [2025-01-22 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:41:21] Production.INFO: ==28010== Releasing lock... [2025-01-22 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:42:05 [end_date_ymd] => 2025-01-22 05:42:05 [RateCDR] => 1 ) [2025-01-22 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:42:05' and `end` < '2025-01-22 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:42:18] Production.INFO: count ==120 [2025-01-22 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:42:05 - End Time 2025-01-22 05:42:05 [2025-01-22 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302922', 'tblTempUsageDetail_20' ) start [2025-01-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302922', 'tblTempUsageDetail_20' ) end [2025-01-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302922', 'tblTempVendorCDR_20' ) start [2025-01-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302922', 'tblTempVendorCDR_20' ) end [2025-01-22 05:42:18] Production.INFO: ProcessCDR(1,14302922,1,1,2) [2025-01-22 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302922', 'tblTempUsageDetail_20' ) start [2025-01-22 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302922', 'tblTempUsageDetail_20' ) end [2025-01-22 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:42:21] Production.INFO: ==28084== Releasing lock... [2025-01-22 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:43:04 [end_date_ymd] => 2025-01-22 05:43:04 [RateCDR] => 1 ) [2025-01-22 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:43:04' and `end` < '2025-01-22 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:43:17] Production.INFO: count ==120 [2025-01-22 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:43:04 - End Time 2025-01-22 05:43:04 [2025-01-22 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302927', 'tblTempUsageDetail_20' ) start [2025-01-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302927', 'tblTempUsageDetail_20' ) end [2025-01-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302927', 'tblTempVendorCDR_20' ) start [2025-01-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302927', 'tblTempVendorCDR_20' ) end [2025-01-22 05:43:17] Production.INFO: ProcessCDR(1,14302927,1,1,2) [2025-01-22 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302927', 'tblTempUsageDetail_20' ) start [2025-01-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302927', 'tblTempUsageDetail_20' ) end [2025-01-22 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:43:20] Production.INFO: ==28161== Releasing lock... [2025-01-22 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:44:05 [end_date_ymd] => 2025-01-22 05:44:05 [RateCDR] => 1 ) [2025-01-22 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:44:05' and `end` < '2025-01-22 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:44:18] Production.INFO: count ==120 [2025-01-22 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:44:05 - End Time 2025-01-22 05:44:05 [2025-01-22 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302932', 'tblTempUsageDetail_20' ) start [2025-01-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302932', 'tblTempUsageDetail_20' ) end [2025-01-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302932', 'tblTempVendorCDR_20' ) start [2025-01-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302932', 'tblTempVendorCDR_20' ) end [2025-01-22 05:44:18] Production.INFO: ProcessCDR(1,14302932,1,1,2) [2025-01-22 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302932', 'tblTempUsageDetail_20' ) start [2025-01-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302932', 'tblTempUsageDetail_20' ) end [2025-01-22 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:44:21] Production.INFO: ==28235== Releasing lock... [2025-01-22 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:45:05 [end_date_ymd] => 2025-01-22 05:45:05 [RateCDR] => 1 ) [2025-01-22 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:45:05' and `end` < '2025-01-22 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:45:17] Production.INFO: count ==120 [2025-01-22 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:45:05 - End Time 2025-01-22 05:45:05 [2025-01-22 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302937', 'tblTempUsageDetail_20' ) start [2025-01-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302937', 'tblTempUsageDetail_20' ) end [2025-01-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302937', 'tblTempVendorCDR_20' ) start [2025-01-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302937', 'tblTempVendorCDR_20' ) end [2025-01-22 05:45:17] Production.INFO: ProcessCDR(1,14302937,1,1,2) [2025-01-22 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302937', 'tblTempUsageDetail_20' ) start [2025-01-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302937', 'tblTempUsageDetail_20' ) end [2025-01-22 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:45:20] Production.INFO: ==28308== Releasing lock... [2025-01-22 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:46:05 [end_date_ymd] => 2025-01-22 05:46:05 [RateCDR] => 1 ) [2025-01-22 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:46:05' and `end` < '2025-01-22 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:46:18] Production.INFO: count ==120 [2025-01-22 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:46:05 - End Time 2025-01-22 05:46:05 [2025-01-22 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302942', 'tblTempUsageDetail_20' ) start [2025-01-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302942', 'tblTempUsageDetail_20' ) end [2025-01-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302942', 'tblTempVendorCDR_20' ) start [2025-01-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302942', 'tblTempVendorCDR_20' ) end [2025-01-22 05:46:18] Production.INFO: ProcessCDR(1,14302942,1,1,2) [2025-01-22 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302942', 'tblTempUsageDetail_20' ) start [2025-01-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302942', 'tblTempUsageDetail_20' ) end [2025-01-22 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:46:21] Production.INFO: ==28383== Releasing lock... [2025-01-22 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:47:06 [end_date_ymd] => 2025-01-22 05:47:06 [RateCDR] => 1 ) [2025-01-22 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:47:06' and `end` < '2025-01-22 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:47:18] Production.INFO: count ==120 [2025-01-22 05:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:47:06 - End Time 2025-01-22 05:47:06 [2025-01-22 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302947', 'tblTempUsageDetail_20' ) start [2025-01-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302947', 'tblTempUsageDetail_20' ) end [2025-01-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302947', 'tblTempVendorCDR_20' ) start [2025-01-22 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302947', 'tblTempVendorCDR_20' ) end [2025-01-22 05:47:19] Production.INFO: ProcessCDR(1,14302947,1,1,2) [2025-01-22 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302947', 'tblTempUsageDetail_20' ) start [2025-01-22 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302947', 'tblTempUsageDetail_20' ) end [2025-01-22 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:47:21] Production.INFO: ==28459== Releasing lock... [2025-01-22 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:48:05 [end_date_ymd] => 2025-01-22 05:48:05 [RateCDR] => 1 ) [2025-01-22 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:48:05' and `end` < '2025-01-22 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:48:18] Production.INFO: count ==120 [2025-01-22 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:48:05 - End Time 2025-01-22 05:48:05 [2025-01-22 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302952', 'tblTempUsageDetail_20' ) start [2025-01-22 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302952', 'tblTempUsageDetail_20' ) end [2025-01-22 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302952', 'tblTempVendorCDR_20' ) start [2025-01-22 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302952', 'tblTempVendorCDR_20' ) end [2025-01-22 05:48:18] Production.INFO: ProcessCDR(1,14302952,1,1,2) [2025-01-22 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302952', 'tblTempUsageDetail_20' ) start [2025-01-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302952', 'tblTempUsageDetail_20' ) end [2025-01-22 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:48:21] Production.INFO: ==28534== Releasing lock... [2025-01-22 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:49:06 [end_date_ymd] => 2025-01-22 05:49:06 [RateCDR] => 1 ) [2025-01-22 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:49:06' and `end` < '2025-01-22 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:49:18] Production.INFO: count ==119 [2025-01-22 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:49:06 - End Time 2025-01-22 05:49:06 [2025-01-22 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302957', 'tblTempUsageDetail_20' ) start [2025-01-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302957', 'tblTempUsageDetail_20' ) end [2025-01-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302957', 'tblTempVendorCDR_20' ) start [2025-01-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302957', 'tblTempVendorCDR_20' ) end [2025-01-22 05:49:18] Production.INFO: ProcessCDR(1,14302957,1,1,2) [2025-01-22 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302957', 'tblTempUsageDetail_20' ) start [2025-01-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302957', 'tblTempUsageDetail_20' ) end [2025-01-22 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:49:21] Production.INFO: ==28611== Releasing lock... [2025-01-22 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:50:06 [end_date_ymd] => 2025-01-22 05:50:06 [RateCDR] => 1 ) [2025-01-22 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:50:06' and `end` < '2025-01-22 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:50:18] Production.INFO: count ==103 [2025-01-22 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:50:06 - End Time 2025-01-22 05:50:06 [2025-01-22 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302963', 'tblTempUsageDetail_20' ) start [2025-01-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302963', 'tblTempUsageDetail_20' ) end [2025-01-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302963', 'tblTempVendorCDR_20' ) start [2025-01-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302963', 'tblTempVendorCDR_20' ) end [2025-01-22 05:50:18] Production.INFO: ProcessCDR(1,14302963,1,1,2) [2025-01-22 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302963', 'tblTempUsageDetail_20' ) start [2025-01-22 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302963', 'tblTempUsageDetail_20' ) end [2025-01-22 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:50:21] Production.INFO: ==28685== Releasing lock... [2025-01-22 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:51:05 [end_date_ymd] => 2025-01-22 05:51:05 [RateCDR] => 1 ) [2025-01-22 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:51:05' and `end` < '2025-01-22 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:51:18] Production.INFO: count ==103 [2025-01-22 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:51:05 - End Time 2025-01-22 05:51:05 [2025-01-22 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302968', 'tblTempUsageDetail_20' ) start [2025-01-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302968', 'tblTempUsageDetail_20' ) end [2025-01-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302968', 'tblTempVendorCDR_20' ) start [2025-01-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302968', 'tblTempVendorCDR_20' ) end [2025-01-22 05:51:18] Production.INFO: ProcessCDR(1,14302968,1,1,2) [2025-01-22 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302968', 'tblTempUsageDetail_20' ) start [2025-01-22 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302968', 'tblTempUsageDetail_20' ) end [2025-01-22 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:51:21] Production.INFO: ==28764== Releasing lock... [2025-01-22 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:52:05 [end_date_ymd] => 2025-01-22 05:52:05 [RateCDR] => 1 ) [2025-01-22 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:52:05' and `end` < '2025-01-22 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:52:18] Production.INFO: count ==103 [2025-01-22 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:52:05 - End Time 2025-01-22 05:52:05 [2025-01-22 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302973', 'tblTempUsageDetail_20' ) start [2025-01-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302973', 'tblTempUsageDetail_20' ) end [2025-01-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302973', 'tblTempVendorCDR_20' ) start [2025-01-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302973', 'tblTempVendorCDR_20' ) end [2025-01-22 05:52:18] Production.INFO: ProcessCDR(1,14302973,1,1,2) [2025-01-22 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302973', 'tblTempUsageDetail_20' ) start [2025-01-22 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302973', 'tblTempUsageDetail_20' ) end [2025-01-22 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:52:21] Production.INFO: ==28839== Releasing lock... [2025-01-22 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:53:04 [end_date_ymd] => 2025-01-22 05:53:04 [RateCDR] => 1 ) [2025-01-22 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:53:04' and `end` < '2025-01-22 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:53:17] Production.INFO: count ==103 [2025-01-22 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:53:04 - End Time 2025-01-22 05:53:04 [2025-01-22 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302978', 'tblTempUsageDetail_20' ) start [2025-01-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302978', 'tblTempUsageDetail_20' ) end [2025-01-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302978', 'tblTempVendorCDR_20' ) start [2025-01-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302978', 'tblTempVendorCDR_20' ) end [2025-01-22 05:53:17] Production.INFO: ProcessCDR(1,14302978,1,1,2) [2025-01-22 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302978', 'tblTempUsageDetail_20' ) start [2025-01-22 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302978', 'tblTempUsageDetail_20' ) end [2025-01-22 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:53:20] Production.INFO: ==28953== Releasing lock... [2025-01-22 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:54:05 [end_date_ymd] => 2025-01-22 05:54:05 [RateCDR] => 1 ) [2025-01-22 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:54:05' and `end` < '2025-01-22 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:54:18] Production.INFO: count ==103 [2025-01-22 05:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:54:05 - End Time 2025-01-22 05:54:05 [2025-01-22 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302983', 'tblTempUsageDetail_20' ) start [2025-01-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302983', 'tblTempUsageDetail_20' ) end [2025-01-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302983', 'tblTempVendorCDR_20' ) start [2025-01-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302983', 'tblTempVendorCDR_20' ) end [2025-01-22 05:54:18] Production.INFO: ProcessCDR(1,14302983,1,1,2) [2025-01-22 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302983', 'tblTempUsageDetail_20' ) start [2025-01-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302983', 'tblTempUsageDetail_20' ) end [2025-01-22 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:54:21] Production.INFO: ==29038== Releasing lock... [2025-01-22 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:55:06 [end_date_ymd] => 2025-01-22 05:55:06 [RateCDR] => 1 ) [2025-01-22 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:55:06' and `end` < '2025-01-22 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:55:19] Production.INFO: count ==103 [2025-01-22 05:55:19] Production.ERROR: pbx CDR StartTime 2025-01-22 02:55:06 - End Time 2025-01-22 05:55:06 [2025-01-22 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302988', 'tblTempUsageDetail_20' ) start [2025-01-22 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302988', 'tblTempUsageDetail_20' ) end [2025-01-22 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302988', 'tblTempVendorCDR_20' ) start [2025-01-22 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302988', 'tblTempVendorCDR_20' ) end [2025-01-22 05:55:19] Production.INFO: ProcessCDR(1,14302988,1,1,2) [2025-01-22 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302988', 'tblTempUsageDetail_20' ) start [2025-01-22 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302988', 'tblTempUsageDetail_20' ) end [2025-01-22 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:55:22] Production.INFO: ==29122== Releasing lock... [2025-01-22 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:56:05 [end_date_ymd] => 2025-01-22 05:56:05 [RateCDR] => 1 ) [2025-01-22 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:56:05' and `end` < '2025-01-22 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:56:18] Production.INFO: count ==103 [2025-01-22 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:56:05 - End Time 2025-01-22 05:56:05 [2025-01-22 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302993', 'tblTempUsageDetail_20' ) start [2025-01-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302993', 'tblTempUsageDetail_20' ) end [2025-01-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302993', 'tblTempVendorCDR_20' ) start [2025-01-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302993', 'tblTempVendorCDR_20' ) end [2025-01-22 05:56:18] Production.INFO: ProcessCDR(1,14302993,1,1,2) [2025-01-22 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302993', 'tblTempUsageDetail_20' ) start [2025-01-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302993', 'tblTempUsageDetail_20' ) end [2025-01-22 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:56:21] Production.INFO: ==29204== Releasing lock... [2025-01-22 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:57:06 [end_date_ymd] => 2025-01-22 05:57:06 [RateCDR] => 1 ) [2025-01-22 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:57:06' and `end` < '2025-01-22 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:57:18] Production.INFO: count ==105 [2025-01-22 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 02:57:06 - End Time 2025-01-22 05:57:06 [2025-01-22 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302998', 'tblTempUsageDetail_20' ) start [2025-01-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14302998', 'tblTempUsageDetail_20' ) end [2025-01-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302998', 'tblTempVendorCDR_20' ) start [2025-01-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14302998', 'tblTempVendorCDR_20' ) end [2025-01-22 05:57:18] Production.INFO: ProcessCDR(1,14302998,1,1,2) [2025-01-22 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14302998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14302998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14302998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14302998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302998', 'tblTempUsageDetail_20' ) start [2025-01-22 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14302998', 'tblTempUsageDetail_20' ) end [2025-01-22 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:57:23] Production.INFO: ==29286== Releasing lock... [2025-01-22 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:57:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:58:05 [end_date_ymd] => 2025-01-22 05:58:05 [RateCDR] => 1 ) [2025-01-22 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:58:05' and `end` < '2025-01-22 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:58:17] Production.INFO: count ==105 [2025-01-22 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:58:05 - End Time 2025-01-22 05:58:05 [2025-01-22 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303003', 'tblTempUsageDetail_20' ) start [2025-01-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303003', 'tblTempUsageDetail_20' ) end [2025-01-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303003', 'tblTempVendorCDR_20' ) start [2025-01-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303003', 'tblTempVendorCDR_20' ) end [2025-01-22 05:58:17] Production.INFO: ProcessCDR(1,14303003,1,1,2) [2025-01-22 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303003', 'tblTempUsageDetail_20' ) start [2025-01-22 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303003', 'tblTempUsageDetail_20' ) end [2025-01-22 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:58:20] Production.INFO: ==29378== Releasing lock... [2025-01-22 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 02:59:05 [end_date_ymd] => 2025-01-22 05:59:05 [RateCDR] => 1 ) [2025-01-22 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 02:59:05' and `end` < '2025-01-22 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 05:59:17] Production.INFO: count ==120 [2025-01-22 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-22 02:59:05 - End Time 2025-01-22 05:59:05 [2025-01-22 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303008', 'tblTempUsageDetail_20' ) start [2025-01-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303008', 'tblTempUsageDetail_20' ) end [2025-01-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303008', 'tblTempVendorCDR_20' ) start [2025-01-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303008', 'tblTempVendorCDR_20' ) end [2025-01-22 05:59:17] Production.INFO: ProcessCDR(1,14303008,1,1,2) [2025-01-22 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303008', 'tblTempUsageDetail_20' ) start [2025-01-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303008', 'tblTempUsageDetail_20' ) end [2025-01-22 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 05:59:20] Production.INFO: ==29458== Releasing lock... [2025-01-22 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 05:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:00:06 [end_date_ymd] => 2025-01-22 06:00:06 [RateCDR] => 1 ) [2025-01-22 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:00:06' and `end` < '2025-01-22 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:00:18] Production.INFO: count ==120 [2025-01-22 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:00:06 - End Time 2025-01-22 06:00:06 [2025-01-22 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303014', 'tblTempUsageDetail_20' ) start [2025-01-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303014', 'tblTempUsageDetail_20' ) end [2025-01-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303014', 'tblTempVendorCDR_20' ) start [2025-01-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303014', 'tblTempVendorCDR_20' ) end [2025-01-22 06:00:18] Production.INFO: ProcessCDR(1,14303014,1,1,2) [2025-01-22 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303014', 'tblTempUsageDetail_20' ) start [2025-01-22 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303014', 'tblTempUsageDetail_20' ) end [2025-01-22 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:00:21] Production.INFO: ==29541== Releasing lock... [2025-01-22 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:01:05 [end_date_ymd] => 2025-01-22 06:01:05 [RateCDR] => 1 ) [2025-01-22 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:01:05' and `end` < '2025-01-22 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:01:19] Production.INFO: count ==120 [2025-01-22 06:01:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:01:05 - End Time 2025-01-22 06:01:05 [2025-01-22 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303019', 'tblTempUsageDetail_20' ) start [2025-01-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303019', 'tblTempUsageDetail_20' ) end [2025-01-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303019', 'tblTempVendorCDR_20' ) start [2025-01-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303019', 'tblTempVendorCDR_20' ) end [2025-01-22 06:01:19] Production.INFO: ProcessCDR(1,14303019,1,1,2) [2025-01-22 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303019', 'tblTempUsageDetail_20' ) start [2025-01-22 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303019', 'tblTempUsageDetail_20' ) end [2025-01-22 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:01:22] Production.INFO: ==29633== Releasing lock... [2025-01-22 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:02:05 [end_date_ymd] => 2025-01-22 06:02:05 [RateCDR] => 1 ) [2025-01-22 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:02:05' and `end` < '2025-01-22 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:02:18] Production.INFO: count ==120 [2025-01-22 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:02:05 - End Time 2025-01-22 06:02:05 [2025-01-22 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303024', 'tblTempUsageDetail_20' ) start [2025-01-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303024', 'tblTempUsageDetail_20' ) end [2025-01-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303024', 'tblTempVendorCDR_20' ) start [2025-01-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303024', 'tblTempVendorCDR_20' ) end [2025-01-22 06:02:18] Production.INFO: ProcessCDR(1,14303024,1,1,2) [2025-01-22 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303024', 'tblTempUsageDetail_20' ) start [2025-01-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303024', 'tblTempUsageDetail_20' ) end [2025-01-22 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:02:21] Production.INFO: ==29703== Releasing lock... [2025-01-22 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:03:05 [end_date_ymd] => 2025-01-22 06:03:05 [RateCDR] => 1 ) [2025-01-22 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:03:05' and `end` < '2025-01-22 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:03:18] Production.INFO: count ==120 [2025-01-22 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:03:05 - End Time 2025-01-22 06:03:05 [2025-01-22 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303029', 'tblTempUsageDetail_20' ) start [2025-01-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303029', 'tblTempUsageDetail_20' ) end [2025-01-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303029', 'tblTempVendorCDR_20' ) start [2025-01-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303029', 'tblTempVendorCDR_20' ) end [2025-01-22 06:03:18] Production.INFO: ProcessCDR(1,14303029,1,1,2) [2025-01-22 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303029', 'tblTempUsageDetail_20' ) start [2025-01-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303029', 'tblTempUsageDetail_20' ) end [2025-01-22 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:03:21] Production.INFO: ==29776== Releasing lock... [2025-01-22 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:04:05 [end_date_ymd] => 2025-01-22 06:04:05 [RateCDR] => 1 ) [2025-01-22 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:04:05' and `end` < '2025-01-22 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:04:18] Production.INFO: count ==120 [2025-01-22 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:04:05 - End Time 2025-01-22 06:04:05 [2025-01-22 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303034', 'tblTempUsageDetail_20' ) start [2025-01-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303034', 'tblTempUsageDetail_20' ) end [2025-01-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303034', 'tblTempVendorCDR_20' ) start [2025-01-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303034', 'tblTempVendorCDR_20' ) end [2025-01-22 06:04:18] Production.INFO: ProcessCDR(1,14303034,1,1,2) [2025-01-22 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303034', 'tblTempUsageDetail_20' ) start [2025-01-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303034', 'tblTempUsageDetail_20' ) end [2025-01-22 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:04:21] Production.INFO: ==29851== Releasing lock... [2025-01-22 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:05:05 [end_date_ymd] => 2025-01-22 06:05:05 [RateCDR] => 1 ) [2025-01-22 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:05:05' and `end` < '2025-01-22 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:05:18] Production.INFO: count ==120 [2025-01-22 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:05:05 - End Time 2025-01-22 06:05:05 [2025-01-22 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303039', 'tblTempUsageDetail_20' ) start [2025-01-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303039', 'tblTempUsageDetail_20' ) end [2025-01-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303039', 'tblTempVendorCDR_20' ) start [2025-01-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303039', 'tblTempVendorCDR_20' ) end [2025-01-22 06:05:18] Production.INFO: ProcessCDR(1,14303039,1,1,2) [2025-01-22 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303039', 'tblTempUsageDetail_20' ) start [2025-01-22 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303039', 'tblTempUsageDetail_20' ) end [2025-01-22 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:05:21] Production.INFO: ==29921== Releasing lock... [2025-01-22 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:06:04 [end_date_ymd] => 2025-01-22 06:06:04 [RateCDR] => 1 ) [2025-01-22 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:06:04' and `end` < '2025-01-22 06:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:06:17] Production.INFO: count ==120 [2025-01-22 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:06:04 - End Time 2025-01-22 06:06:04 [2025-01-22 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303044', 'tblTempUsageDetail_20' ) start [2025-01-22 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303044', 'tblTempUsageDetail_20' ) end [2025-01-22 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303044', 'tblTempVendorCDR_20' ) start [2025-01-22 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303044', 'tblTempVendorCDR_20' ) end [2025-01-22 06:06:18] Production.INFO: ProcessCDR(1,14303044,1,1,2) [2025-01-22 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303044', 'tblTempUsageDetail_20' ) start [2025-01-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303044', 'tblTempUsageDetail_20' ) end [2025-01-22 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:06:20] Production.INFO: ==29991== Releasing lock... [2025-01-22 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:07:05 [end_date_ymd] => 2025-01-22 06:07:05 [RateCDR] => 1 ) [2025-01-22 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:07:05' and `end` < '2025-01-22 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:07:18] Production.INFO: count ==120 [2025-01-22 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:07:05 - End Time 2025-01-22 06:07:05 [2025-01-22 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303049', 'tblTempUsageDetail_20' ) start [2025-01-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303049', 'tblTempUsageDetail_20' ) end [2025-01-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303049', 'tblTempVendorCDR_20' ) start [2025-01-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303049', 'tblTempVendorCDR_20' ) end [2025-01-22 06:07:18] Production.INFO: ProcessCDR(1,14303049,1,1,2) [2025-01-22 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303049', 'tblTempUsageDetail_20' ) start [2025-01-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303049', 'tblTempUsageDetail_20' ) end [2025-01-22 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:07:21] Production.INFO: ==30065== Releasing lock... [2025-01-22 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:08:05 [end_date_ymd] => 2025-01-22 06:08:05 [RateCDR] => 1 ) [2025-01-22 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:08:05' and `end` < '2025-01-22 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:08:18] Production.INFO: count ==120 [2025-01-22 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:08:05 - End Time 2025-01-22 06:08:05 [2025-01-22 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303054', 'tblTempUsageDetail_20' ) start [2025-01-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303054', 'tblTempUsageDetail_20' ) end [2025-01-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303054', 'tblTempVendorCDR_20' ) start [2025-01-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303054', 'tblTempVendorCDR_20' ) end [2025-01-22 06:08:18] Production.INFO: ProcessCDR(1,14303054,1,1,2) [2025-01-22 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303054', 'tblTempUsageDetail_20' ) start [2025-01-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303054', 'tblTempUsageDetail_20' ) end [2025-01-22 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:08:21] Production.INFO: ==30176== Releasing lock... [2025-01-22 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:09:05 [end_date_ymd] => 2025-01-22 06:09:05 [RateCDR] => 1 ) [2025-01-22 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:09:05' and `end` < '2025-01-22 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:09:18] Production.INFO: count ==120 [2025-01-22 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:09:05 - End Time 2025-01-22 06:09:05 [2025-01-22 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303059', 'tblTempUsageDetail_20' ) start [2025-01-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303059', 'tblTempUsageDetail_20' ) end [2025-01-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303059', 'tblTempVendorCDR_20' ) start [2025-01-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303059', 'tblTempVendorCDR_20' ) end [2025-01-22 06:09:18] Production.INFO: ProcessCDR(1,14303059,1,1,2) [2025-01-22 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303059', 'tblTempUsageDetail_20' ) start [2025-01-22 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303059', 'tblTempUsageDetail_20' ) end [2025-01-22 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:09:21] Production.INFO: ==30252== Releasing lock... [2025-01-22 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:10:05 [end_date_ymd] => 2025-01-22 06:10:05 [RateCDR] => 1 ) [2025-01-22 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:10:05' and `end` < '2025-01-22 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:10:19] Production.INFO: count ==120 [2025-01-22 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:10:05 - End Time 2025-01-22 06:10:05 [2025-01-22 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303065', 'tblTempUsageDetail_20' ) start [2025-01-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303065', 'tblTempUsageDetail_20' ) end [2025-01-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303065', 'tblTempVendorCDR_20' ) start [2025-01-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303065', 'tblTempVendorCDR_20' ) end [2025-01-22 06:10:19] Production.INFO: ProcessCDR(1,14303065,1,1,2) [2025-01-22 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303065', 'tblTempUsageDetail_20' ) start [2025-01-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303065', 'tblTempUsageDetail_20' ) end [2025-01-22 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:10:22] Production.INFO: ==30325== Releasing lock... [2025-01-22 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:11:05 [end_date_ymd] => 2025-01-22 06:11:05 [RateCDR] => 1 ) [2025-01-22 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:11:05' and `end` < '2025-01-22 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:11:17] Production.INFO: count ==120 [2025-01-22 06:11:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:11:05 - End Time 2025-01-22 06:11:05 [2025-01-22 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303070', 'tblTempUsageDetail_20' ) start [2025-01-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303070', 'tblTempUsageDetail_20' ) end [2025-01-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303070', 'tblTempVendorCDR_20' ) start [2025-01-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303070', 'tblTempVendorCDR_20' ) end [2025-01-22 06:11:17] Production.INFO: ProcessCDR(1,14303070,1,1,2) [2025-01-22 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303070', 'tblTempUsageDetail_20' ) start [2025-01-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303070', 'tblTempUsageDetail_20' ) end [2025-01-22 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:11:20] Production.INFO: ==30403== Releasing lock... [2025-01-22 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:12:05 [end_date_ymd] => 2025-01-22 06:12:05 [RateCDR] => 1 ) [2025-01-22 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:12:05' and `end` < '2025-01-22 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:12:18] Production.INFO: count ==120 [2025-01-22 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:12:05 - End Time 2025-01-22 06:12:05 [2025-01-22 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303075', 'tblTempUsageDetail_20' ) start [2025-01-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303075', 'tblTempUsageDetail_20' ) end [2025-01-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303075', 'tblTempVendorCDR_20' ) start [2025-01-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303075', 'tblTempVendorCDR_20' ) end [2025-01-22 06:12:18] Production.INFO: ProcessCDR(1,14303075,1,1,2) [2025-01-22 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303075', 'tblTempUsageDetail_20' ) start [2025-01-22 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303075', 'tblTempUsageDetail_20' ) end [2025-01-22 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:12:21] Production.INFO: ==30485== Releasing lock... [2025-01-22 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:13:05 [end_date_ymd] => 2025-01-22 06:13:05 [RateCDR] => 1 ) [2025-01-22 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:13:05' and `end` < '2025-01-22 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:13:18] Production.INFO: count ==120 [2025-01-22 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:13:05 - End Time 2025-01-22 06:13:05 [2025-01-22 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303078', 'tblTempUsageDetail_20' ) start [2025-01-22 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303078', 'tblTempUsageDetail_20' ) end [2025-01-22 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303078', 'tblTempVendorCDR_20' ) start [2025-01-22 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303078', 'tblTempVendorCDR_20' ) end [2025-01-22 06:13:18] Production.INFO: ProcessCDR(1,14303078,1,1,2) [2025-01-22 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303078', 'tblTempUsageDetail_20' ) start [2025-01-22 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303078', 'tblTempUsageDetail_20' ) end [2025-01-22 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:13:21] Production.INFO: ==30580== Releasing lock... [2025-01-22 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:14:06 [end_date_ymd] => 2025-01-22 06:14:06 [RateCDR] => 1 ) [2025-01-22 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:14:06' and `end` < '2025-01-22 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:14:18] Production.INFO: count ==120 [2025-01-22 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:14:06 - End Time 2025-01-22 06:14:06 [2025-01-22 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303085', 'tblTempUsageDetail_20' ) start [2025-01-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303085', 'tblTempUsageDetail_20' ) end [2025-01-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303085', 'tblTempVendorCDR_20' ) start [2025-01-22 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303085', 'tblTempVendorCDR_20' ) end [2025-01-22 06:14:19] Production.INFO: ProcessCDR(1,14303085,1,1,2) [2025-01-22 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303085', 'tblTempUsageDetail_20' ) start [2025-01-22 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303085', 'tblTempUsageDetail_20' ) end [2025-01-22 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:14:21] Production.INFO: ==30671== Releasing lock... [2025-01-22 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:15:05 [end_date_ymd] => 2025-01-22 06:15:05 [RateCDR] => 1 ) [2025-01-22 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:15:05' and `end` < '2025-01-22 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:15:18] Production.INFO: count ==120 [2025-01-22 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:15:05 - End Time 2025-01-22 06:15:05 [2025-01-22 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303090', 'tblTempUsageDetail_20' ) start [2025-01-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303090', 'tblTempUsageDetail_20' ) end [2025-01-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303090', 'tblTempVendorCDR_20' ) start [2025-01-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303090', 'tblTempVendorCDR_20' ) end [2025-01-22 06:15:18] Production.INFO: ProcessCDR(1,14303090,1,1,2) [2025-01-22 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303090', 'tblTempUsageDetail_20' ) start [2025-01-22 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303090', 'tblTempUsageDetail_20' ) end [2025-01-22 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:15:20] Production.INFO: ==30766== Releasing lock... [2025-01-22 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:16:05 [end_date_ymd] => 2025-01-22 06:16:05 [RateCDR] => 1 ) [2025-01-22 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:16:05' and `end` < '2025-01-22 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:16:18] Production.INFO: count ==120 [2025-01-22 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:16:05 - End Time 2025-01-22 06:16:05 [2025-01-22 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303095', 'tblTempUsageDetail_20' ) start [2025-01-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303095', 'tblTempUsageDetail_20' ) end [2025-01-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303095', 'tblTempVendorCDR_20' ) start [2025-01-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303095', 'tblTempVendorCDR_20' ) end [2025-01-22 06:16:18] Production.INFO: ProcessCDR(1,14303095,1,1,2) [2025-01-22 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303095', 'tblTempUsageDetail_20' ) start [2025-01-22 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303095', 'tblTempUsageDetail_20' ) end [2025-01-22 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:16:21] Production.INFO: ==30860== Releasing lock... [2025-01-22 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:17:05 [end_date_ymd] => 2025-01-22 06:17:05 [RateCDR] => 1 ) [2025-01-22 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:17:05' and `end` < '2025-01-22 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:17:17] Production.INFO: count ==119 [2025-01-22 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:17:05 - End Time 2025-01-22 06:17:05 [2025-01-22 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303100', 'tblTempUsageDetail_20' ) start [2025-01-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303100', 'tblTempUsageDetail_20' ) end [2025-01-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303100', 'tblTempVendorCDR_20' ) start [2025-01-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303100', 'tblTempVendorCDR_20' ) end [2025-01-22 06:17:17] Production.INFO: ProcessCDR(1,14303100,1,1,2) [2025-01-22 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303100', 'tblTempUsageDetail_20' ) start [2025-01-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303100', 'tblTempUsageDetail_20' ) end [2025-01-22 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:17:20] Production.INFO: ==30951== Releasing lock... [2025-01-22 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:18:05 [end_date_ymd] => 2025-01-22 06:18:05 [RateCDR] => 1 ) [2025-01-22 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:18:05' and `end` < '2025-01-22 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:18:18] Production.INFO: count ==118 [2025-01-22 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:18:05 - End Time 2025-01-22 06:18:05 [2025-01-22 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303105', 'tblTempUsageDetail_20' ) start [2025-01-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303105', 'tblTempUsageDetail_20' ) end [2025-01-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303105', 'tblTempVendorCDR_20' ) start [2025-01-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303105', 'tblTempVendorCDR_20' ) end [2025-01-22 06:18:18] Production.INFO: ProcessCDR(1,14303105,1,1,2) [2025-01-22 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303105', 'tblTempUsageDetail_20' ) start [2025-01-22 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303105', 'tblTempUsageDetail_20' ) end [2025-01-22 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:18:21] Production.INFO: ==31048== Releasing lock... [2025-01-22 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:19:05 [end_date_ymd] => 2025-01-22 06:19:05 [RateCDR] => 1 ) [2025-01-22 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:19:05' and `end` < '2025-01-22 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:19:17] Production.INFO: count ==118 [2025-01-22 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:19:05 - End Time 2025-01-22 06:19:05 [2025-01-22 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303110', 'tblTempUsageDetail_20' ) start [2025-01-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303110', 'tblTempUsageDetail_20' ) end [2025-01-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303110', 'tblTempVendorCDR_20' ) start [2025-01-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303110', 'tblTempVendorCDR_20' ) end [2025-01-22 06:19:18] Production.INFO: ProcessCDR(1,14303110,1,1,2) [2025-01-22 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303110', 'tblTempUsageDetail_20' ) start [2025-01-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303110', 'tblTempUsageDetail_20' ) end [2025-01-22 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:19:20] Production.INFO: ==31142== Releasing lock... [2025-01-22 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:20:06 [end_date_ymd] => 2025-01-22 06:20:06 [RateCDR] => 1 ) [2025-01-22 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:20:06' and `end` < '2025-01-22 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:20:19] Production.INFO: count ==116 [2025-01-22 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:20:06 - End Time 2025-01-22 06:20:06 [2025-01-22 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303116', 'tblTempUsageDetail_20' ) start [2025-01-22 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303116', 'tblTempUsageDetail_20' ) end [2025-01-22 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303116', 'tblTempVendorCDR_20' ) start [2025-01-22 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303116', 'tblTempVendorCDR_20' ) end [2025-01-22 06:20:19] Production.INFO: ProcessCDR(1,14303116,1,1,2) [2025-01-22 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303116', 'tblTempUsageDetail_20' ) start [2025-01-22 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303116', 'tblTempUsageDetail_20' ) end [2025-01-22 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:20:22] Production.INFO: ==31243== Releasing lock... [2025-01-22 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:21:05 [end_date_ymd] => 2025-01-22 06:21:05 [RateCDR] => 1 ) [2025-01-22 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:21:05' and `end` < '2025-01-22 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:21:17] Production.INFO: count ==116 [2025-01-22 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:21:05 - End Time 2025-01-22 06:21:05 [2025-01-22 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303121', 'tblTempUsageDetail_20' ) start [2025-01-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303121', 'tblTempUsageDetail_20' ) end [2025-01-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303121', 'tblTempVendorCDR_20' ) start [2025-01-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303121', 'tblTempVendorCDR_20' ) end [2025-01-22 06:21:17] Production.INFO: ProcessCDR(1,14303121,1,1,2) [2025-01-22 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303121', 'tblTempUsageDetail_20' ) start [2025-01-22 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303121', 'tblTempUsageDetail_20' ) end [2025-01-22 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:21:20] Production.INFO: ==31339== Releasing lock... [2025-01-22 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:22:05 [end_date_ymd] => 2025-01-22 06:22:05 [RateCDR] => 1 ) [2025-01-22 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:22:05' and `end` < '2025-01-22 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:22:18] Production.INFO: count ==116 [2025-01-22 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:22:05 - End Time 2025-01-22 06:22:05 [2025-01-22 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303126', 'tblTempUsageDetail_20' ) start [2025-01-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303126', 'tblTempUsageDetail_20' ) end [2025-01-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303126', 'tblTempVendorCDR_20' ) start [2025-01-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303126', 'tblTempVendorCDR_20' ) end [2025-01-22 06:22:18] Production.INFO: ProcessCDR(1,14303126,1,1,2) [2025-01-22 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303126', 'tblTempUsageDetail_20' ) start [2025-01-22 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303126', 'tblTempUsageDetail_20' ) end [2025-01-22 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:22:21] Production.INFO: ==31432== Releasing lock... [2025-01-22 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:23:04 [end_date_ymd] => 2025-01-22 06:23:04 [RateCDR] => 1 ) [2025-01-22 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:23:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 06:23:18] Production.INFO: count ==116 [2025-01-22 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:23:04 - End Time 2025-01-22 06:23:04 [2025-01-22 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303131', 'tblTempUsageDetail_20' ) start [2025-01-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303131', 'tblTempUsageDetail_20' ) end [2025-01-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303131', 'tblTempVendorCDR_20' ) start [2025-01-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303131', 'tblTempVendorCDR_20' ) end [2025-01-22 06:23:18] Production.INFO: ProcessCDR(1,14303131,1,1,2) [2025-01-22 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303131', 'tblTempUsageDetail_20' ) start [2025-01-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303131', 'tblTempUsageDetail_20' ) end [2025-01-22 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:23:20] Production.INFO: ==31564== Releasing lock... [2025-01-22 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:24:05 [end_date_ymd] => 2025-01-22 06:24:05 [RateCDR] => 1 ) [2025-01-22 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:24:05' and `end` < '2025-01-22 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:24:18] Production.INFO: count ==116 [2025-01-22 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:24:05 - End Time 2025-01-22 06:24:05 [2025-01-22 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303136', 'tblTempUsageDetail_20' ) start [2025-01-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303136', 'tblTempUsageDetail_20' ) end [2025-01-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303136', 'tblTempVendorCDR_20' ) start [2025-01-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303136', 'tblTempVendorCDR_20' ) end [2025-01-22 06:24:18] Production.INFO: ProcessCDR(1,14303136,1,1,2) [2025-01-22 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303136', 'tblTempUsageDetail_20' ) start [2025-01-22 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303136', 'tblTempUsageDetail_20' ) end [2025-01-22 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:24:21] Production.INFO: ==31660== Releasing lock... [2025-01-22 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:25:06 [end_date_ymd] => 2025-01-22 06:25:06 [RateCDR] => 1 ) [2025-01-22 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:25:06' and `end` < '2025-01-22 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:25:19] Production.INFO: count ==116 [2025-01-22 06:25:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:25:06 - End Time 2025-01-22 06:25:06 [2025-01-22 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303141', 'tblTempUsageDetail_20' ) start [2025-01-22 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303141', 'tblTempUsageDetail_20' ) end [2025-01-22 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303141', 'tblTempVendorCDR_20' ) start [2025-01-22 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303141', 'tblTempVendorCDR_20' ) end [2025-01-22 06:25:19] Production.INFO: ProcessCDR(1,14303141,1,1,2) [2025-01-22 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303141', 'tblTempUsageDetail_20' ) start [2025-01-22 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303141', 'tblTempUsageDetail_20' ) end [2025-01-22 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:25:22] Production.INFO: ==31758== Releasing lock... [2025-01-22 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:26:05 [end_date_ymd] => 2025-01-22 06:26:05 [RateCDR] => 1 ) [2025-01-22 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:26:05' and `end` < '2025-01-22 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:26:18] Production.INFO: count ==116 [2025-01-22 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:26:05 - End Time 2025-01-22 06:26:05 [2025-01-22 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303146', 'tblTempUsageDetail_20' ) start [2025-01-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303146', 'tblTempUsageDetail_20' ) end [2025-01-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303146', 'tblTempVendorCDR_20' ) start [2025-01-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303146', 'tblTempVendorCDR_20' ) end [2025-01-22 06:26:18] Production.INFO: ProcessCDR(1,14303146,1,1,2) [2025-01-22 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303146', 'tblTempUsageDetail_20' ) start [2025-01-22 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303146', 'tblTempUsageDetail_20' ) end [2025-01-22 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:26:21] Production.INFO: ==31851== Releasing lock... [2025-01-22 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-22 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:27:05 [end_date_ymd] => 2025-01-22 06:27:05 [RateCDR] => 1 ) [2025-01-22 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:27:05' and `end` < '2025-01-22 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:27:17] Production.INFO: count ==120 [2025-01-22 06:27:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:27:05 - End Time 2025-01-22 06:27:05 [2025-01-22 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303151', 'tblTempUsageDetail_20' ) start [2025-01-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303151', 'tblTempUsageDetail_20' ) end [2025-01-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303151', 'tblTempVendorCDR_20' ) start [2025-01-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303151', 'tblTempVendorCDR_20' ) end [2025-01-22 06:27:17] Production.INFO: ProcessCDR(1,14303151,1,1,2) [2025-01-22 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303151', 'tblTempUsageDetail_20' ) start [2025-01-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303151', 'tblTempUsageDetail_20' ) end [2025-01-22 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:27:21] Production.INFO: ==31946== Releasing lock... [2025-01-22 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:28:04 [end_date_ymd] => 2025-01-22 06:28:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 03:28:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 06:28:17] Production.INFO: count ==120 [2025-01-22 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:28:04 - End Time 2025-01-22 06:28:04 [2025-01-22 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303156', 'tblTempUsageDetail_20' ) start [2025-01-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303156', 'tblTempUsageDetail_20' ) end [2025-01-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303156', 'tblTempVendorCDR_20' ) start [2025-01-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303156', 'tblTempVendorCDR_20' ) end [2025-01-22 06:28:17] Production.INFO: ProcessCDR(1,14303156,1,1,2) [2025-01-22 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303156', 'tblTempUsageDetail_20' ) start [2025-01-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303156', 'tblTempUsageDetail_20' ) end [2025-01-22 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:28:20] Production.INFO: ==32044== Releasing lock... [2025-01-22 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:29:05 [end_date_ymd] => 2025-01-22 06:29:05 [RateCDR] => 1 ) [2025-01-22 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:29:05' and `end` < '2025-01-22 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:29:18] Production.INFO: count ==120 [2025-01-22 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:29:05 - End Time 2025-01-22 06:29:05 [2025-01-22 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303161', 'tblTempUsageDetail_20' ) start [2025-01-22 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303161', 'tblTempUsageDetail_20' ) end [2025-01-22 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303161', 'tblTempVendorCDR_20' ) start [2025-01-22 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303161', 'tblTempVendorCDR_20' ) end [2025-01-22 06:29:18] Production.INFO: ProcessCDR(1,14303161,1,1,2) [2025-01-22 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303161', 'tblTempUsageDetail_20' ) start [2025-01-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303161', 'tblTempUsageDetail_20' ) end [2025-01-22 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:29:21] Production.INFO: ==32137== Releasing lock... [2025-01-22 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:30:05 [end_date_ymd] => 2025-01-22 06:30:05 [RateCDR] => 1 ) [2025-01-22 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:30:05' and `end` < '2025-01-22 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:30:18] Production.INFO: count ==124 [2025-01-22 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:30:05 - End Time 2025-01-22 06:30:05 [2025-01-22 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303167', 'tblTempUsageDetail_20' ) start [2025-01-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303167', 'tblTempUsageDetail_20' ) end [2025-01-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303167', 'tblTempVendorCDR_20' ) start [2025-01-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303167', 'tblTempVendorCDR_20' ) end [2025-01-22 06:30:18] Production.INFO: ProcessCDR(1,14303167,1,1,2) [2025-01-22 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303167', 'tblTempUsageDetail_20' ) start [2025-01-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303167', 'tblTempUsageDetail_20' ) end [2025-01-22 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:30:21] Production.INFO: ==32237== Releasing lock... [2025-01-22 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:31:05 [end_date_ymd] => 2025-01-22 06:31:05 [RateCDR] => 1 ) [2025-01-22 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:31:05' and `end` < '2025-01-22 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:31:18] Production.INFO: count ==125 [2025-01-22 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:31:05 - End Time 2025-01-22 06:31:05 [2025-01-22 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303172', 'tblTempUsageDetail_20' ) start [2025-01-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303172', 'tblTempUsageDetail_20' ) end [2025-01-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303172', 'tblTempVendorCDR_20' ) start [2025-01-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303172', 'tblTempVendorCDR_20' ) end [2025-01-22 06:31:18] Production.INFO: ProcessCDR(1,14303172,1,1,2) [2025-01-22 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303172', 'tblTempUsageDetail_20' ) start [2025-01-22 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303172', 'tblTempUsageDetail_20' ) end [2025-01-22 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:31:21] Production.INFO: ==32332== Releasing lock... [2025-01-22 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:32:05 [end_date_ymd] => 2025-01-22 06:32:05 [RateCDR] => 1 ) [2025-01-22 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:32:05' and `end` < '2025-01-22 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:32:18] Production.INFO: count ==125 [2025-01-22 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:32:05 - End Time 2025-01-22 06:32:05 [2025-01-22 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303177', 'tblTempUsageDetail_20' ) start [2025-01-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303177', 'tblTempUsageDetail_20' ) end [2025-01-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303177', 'tblTempVendorCDR_20' ) start [2025-01-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303177', 'tblTempVendorCDR_20' ) end [2025-01-22 06:32:18] Production.INFO: ProcessCDR(1,14303177,1,1,2) [2025-01-22 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303177', 'tblTempUsageDetail_20' ) start [2025-01-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303177', 'tblTempUsageDetail_20' ) end [2025-01-22 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:32:21] Production.INFO: ==32422== Releasing lock... [2025-01-22 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:33:05 [end_date_ymd] => 2025-01-22 06:33:05 [RateCDR] => 1 ) [2025-01-22 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:33:05' and `end` < '2025-01-22 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:33:18] Production.INFO: count ==125 [2025-01-22 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:33:05 - End Time 2025-01-22 06:33:05 [2025-01-22 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303182', 'tblTempUsageDetail_20' ) start [2025-01-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303182', 'tblTempUsageDetail_20' ) end [2025-01-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303182', 'tblTempVendorCDR_20' ) start [2025-01-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303182', 'tblTempVendorCDR_20' ) end [2025-01-22 06:33:18] Production.INFO: ProcessCDR(1,14303182,1,1,2) [2025-01-22 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303182', 'tblTempUsageDetail_20' ) start [2025-01-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303182', 'tblTempUsageDetail_20' ) end [2025-01-22 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:33:21] Production.INFO: ==32522== Releasing lock... [2025-01-22 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:34:05 [end_date_ymd] => 2025-01-22 06:34:05 [RateCDR] => 1 ) [2025-01-22 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:34:05' and `end` < '2025-01-22 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:34:18] Production.INFO: count ==125 [2025-01-22 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:34:05 - End Time 2025-01-22 06:34:05 [2025-01-22 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303187', 'tblTempUsageDetail_20' ) start [2025-01-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303187', 'tblTempUsageDetail_20' ) end [2025-01-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303187', 'tblTempVendorCDR_20' ) start [2025-01-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303187', 'tblTempVendorCDR_20' ) end [2025-01-22 06:34:18] Production.INFO: ProcessCDR(1,14303187,1,1,2) [2025-01-22 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303187', 'tblTempUsageDetail_20' ) start [2025-01-22 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303187', 'tblTempUsageDetail_20' ) end [2025-01-22 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:34:21] Production.INFO: ==32614== Releasing lock... [2025-01-22 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:35:05 [end_date_ymd] => 2025-01-22 06:35:05 [RateCDR] => 1 ) [2025-01-22 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:35:05' and `end` < '2025-01-22 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:35:18] Production.INFO: count ==125 [2025-01-22 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:35:05 - End Time 2025-01-22 06:35:05 [2025-01-22 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303192', 'tblTempUsageDetail_20' ) start [2025-01-22 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303192', 'tblTempUsageDetail_20' ) end [2025-01-22 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303192', 'tblTempVendorCDR_20' ) start [2025-01-22 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303192', 'tblTempVendorCDR_20' ) end [2025-01-22 06:35:18] Production.INFO: ProcessCDR(1,14303192,1,1,2) [2025-01-22 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303192', 'tblTempUsageDetail_20' ) start [2025-01-22 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303192', 'tblTempUsageDetail_20' ) end [2025-01-22 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:35:21] Production.INFO: ==32711== Releasing lock... [2025-01-22 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:36:05 [end_date_ymd] => 2025-01-22 06:36:05 [RateCDR] => 1 ) [2025-01-22 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:36:05' and `end` < '2025-01-22 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:36:18] Production.INFO: count ==125 [2025-01-22 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:36:05 - End Time 2025-01-22 06:36:05 [2025-01-22 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303197', 'tblTempUsageDetail_20' ) start [2025-01-22 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303197', 'tblTempUsageDetail_20' ) end [2025-01-22 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303197', 'tblTempVendorCDR_20' ) start [2025-01-22 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303197', 'tblTempVendorCDR_20' ) end [2025-01-22 06:36:18] Production.INFO: ProcessCDR(1,14303197,1,1,2) [2025-01-22 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303197', 'tblTempUsageDetail_20' ) start [2025-01-22 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303197', 'tblTempUsageDetail_20' ) end [2025-01-22 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:36:21] Production.INFO: ==357== Releasing lock... [2025-01-22 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:37:05 [end_date_ymd] => 2025-01-22 06:37:05 [RateCDR] => 1 ) [2025-01-22 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:37:05' and `end` < '2025-01-22 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:37:17] Production.INFO: count ==126 [2025-01-22 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:37:05 - End Time 2025-01-22 06:37:05 [2025-01-22 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303202', 'tblTempUsageDetail_20' ) start [2025-01-22 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303202', 'tblTempUsageDetail_20' ) end [2025-01-22 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303202', 'tblTempVendorCDR_20' ) start [2025-01-22 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303202', 'tblTempVendorCDR_20' ) end [2025-01-22 06:37:17] Production.INFO: ProcessCDR(1,14303202,1,1,2) [2025-01-22 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303202', 'tblTempUsageDetail_20' ) start [2025-01-22 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303202', 'tblTempUsageDetail_20' ) end [2025-01-22 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:37:20] Production.INFO: ==451== Releasing lock... [2025-01-22 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:38:05 [end_date_ymd] => 2025-01-22 06:38:05 [RateCDR] => 1 ) [2025-01-22 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:38:05' and `end` < '2025-01-22 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:38:19] Production.INFO: count ==126 [2025-01-22 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:38:05 - End Time 2025-01-22 06:38:05 [2025-01-22 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303207', 'tblTempUsageDetail_20' ) start [2025-01-22 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303207', 'tblTempUsageDetail_20' ) end [2025-01-22 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303207', 'tblTempVendorCDR_20' ) start [2025-01-22 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303207', 'tblTempVendorCDR_20' ) end [2025-01-22 06:38:19] Production.INFO: ProcessCDR(1,14303207,1,1,2) [2025-01-22 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303207', 'tblTempUsageDetail_20' ) start [2025-01-22 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303207', 'tblTempUsageDetail_20' ) end [2025-01-22 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:38:22] Production.INFO: ==551== Releasing lock... [2025-01-22 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:39:04 [end_date_ymd] => 2025-01-22 06:39:04 [RateCDR] => 1 ) [2025-01-22 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:39:04' and `end` < '2025-01-22 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:39:18] Production.INFO: count ==126 [2025-01-22 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:39:04 - End Time 2025-01-22 06:39:04 [2025-01-22 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303212', 'tblTempUsageDetail_20' ) start [2025-01-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303212', 'tblTempUsageDetail_20' ) end [2025-01-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303212', 'tblTempVendorCDR_20' ) start [2025-01-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303212', 'tblTempVendorCDR_20' ) end [2025-01-22 06:39:18] Production.INFO: ProcessCDR(1,14303212,1,1,2) [2025-01-22 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303212', 'tblTempUsageDetail_20' ) start [2025-01-22 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303212', 'tblTempUsageDetail_20' ) end [2025-01-22 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:39:21] Production.INFO: ==714== Releasing lock... [2025-01-22 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:40:06 [end_date_ymd] => 2025-01-22 06:40:06 [RateCDR] => 1 ) [2025-01-22 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:40:06' and `end` < '2025-01-22 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:40:18] Production.INFO: count ==128 [2025-01-22 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:40:06 - End Time 2025-01-22 06:40:06 [2025-01-22 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303217', 'tblTempUsageDetail_20' ) start [2025-01-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303217', 'tblTempUsageDetail_20' ) end [2025-01-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303217', 'tblTempVendorCDR_20' ) start [2025-01-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303217', 'tblTempVendorCDR_20' ) end [2025-01-22 06:40:18] Production.INFO: ProcessCDR(1,14303217,1,1,2) [2025-01-22 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303217', 'tblTempUsageDetail_20' ) start [2025-01-22 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303217', 'tblTempUsageDetail_20' ) end [2025-01-22 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:40:21] Production.INFO: ==793== Releasing lock... [2025-01-22 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:41:05 [end_date_ymd] => 2025-01-22 06:41:05 [RateCDR] => 1 ) [2025-01-22 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:41:05' and `end` < '2025-01-22 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:41:17] Production.INFO: count ==128 [2025-01-22 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:41:05 - End Time 2025-01-22 06:41:05 [2025-01-22 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303223', 'tblTempUsageDetail_20' ) start [2025-01-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303223', 'tblTempUsageDetail_20' ) end [2025-01-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303223', 'tblTempVendorCDR_20' ) start [2025-01-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303223', 'tblTempVendorCDR_20' ) end [2025-01-22 06:41:17] Production.INFO: ProcessCDR(1,14303223,1,1,2) [2025-01-22 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303223', 'tblTempUsageDetail_20' ) start [2025-01-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303223', 'tblTempUsageDetail_20' ) end [2025-01-22 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:41:20] Production.INFO: ==871== Releasing lock... [2025-01-22 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:42:05 [end_date_ymd] => 2025-01-22 06:42:05 [RateCDR] => 1 ) [2025-01-22 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:42:05' and `end` < '2025-01-22 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:42:17] Production.INFO: count ==130 [2025-01-22 06:42:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:42:05 - End Time 2025-01-22 06:42:05 [2025-01-22 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303228', 'tblTempUsageDetail_20' ) start [2025-01-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303228', 'tblTempUsageDetail_20' ) end [2025-01-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303228', 'tblTempVendorCDR_20' ) start [2025-01-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303228', 'tblTempVendorCDR_20' ) end [2025-01-22 06:42:17] Production.INFO: ProcessCDR(1,14303228,1,1,2) [2025-01-22 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303228', 'tblTempUsageDetail_20' ) start [2025-01-22 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303228', 'tblTempUsageDetail_20' ) end [2025-01-22 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:42:21] Production.INFO: ==952== Releasing lock... [2025-01-22 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-22 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:43:05 [end_date_ymd] => 2025-01-22 06:43:05 [RateCDR] => 1 ) [2025-01-22 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:43:05' and `end` < '2025-01-22 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:43:19] Production.INFO: count ==137 [2025-01-22 06:43:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:43:05 - End Time 2025-01-22 06:43:05 [2025-01-22 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303233', 'tblTempUsageDetail_20' ) start [2025-01-22 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303233', 'tblTempUsageDetail_20' ) end [2025-01-22 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303233', 'tblTempVendorCDR_20' ) start [2025-01-22 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303233', 'tblTempVendorCDR_20' ) end [2025-01-22 06:43:19] Production.INFO: ProcessCDR(1,14303233,1,1,2) [2025-01-22 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303233', 'tblTempUsageDetail_20' ) start [2025-01-22 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303233', 'tblTempUsageDetail_20' ) end [2025-01-22 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:43:22] Production.INFO: ==1028== Releasing lock... [2025-01-22 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 06:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:44:04 [end_date_ymd] => 2025-01-22 06:44:04 [RateCDR] => 1 ) [2025-01-22 06:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:44:04' and `end` < '2025-01-22 06:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:44:18] Production.INFO: count ==151 [2025-01-22 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:44:04 - End Time 2025-01-22 06:44:04 [2025-01-22 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303238', 'tblTempUsageDetail_20' ) start [2025-01-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303238', 'tblTempUsageDetail_20' ) end [2025-01-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303238', 'tblTempVendorCDR_20' ) start [2025-01-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303238', 'tblTempVendorCDR_20' ) end [2025-01-22 06:44:18] Production.INFO: ProcessCDR(1,14303238,1,1,2) [2025-01-22 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303238', 'tblTempUsageDetail_20' ) start [2025-01-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303238', 'tblTempUsageDetail_20' ) end [2025-01-22 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:44:21] Production.INFO: ==1105== Releasing lock... [2025-01-22 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-22 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:45:05 [end_date_ymd] => 2025-01-22 06:45:05 [RateCDR] => 1 ) [2025-01-22 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:45:05' and `end` < '2025-01-22 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:45:18] Production.INFO: count ==153 [2025-01-22 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:45:05 - End Time 2025-01-22 06:45:05 [2025-01-22 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303243', 'tblTempUsageDetail_20' ) start [2025-01-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303243', 'tblTempUsageDetail_20' ) end [2025-01-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303243', 'tblTempVendorCDR_20' ) start [2025-01-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303243', 'tblTempVendorCDR_20' ) end [2025-01-22 06:45:18] Production.INFO: ProcessCDR(1,14303243,1,1,2) [2025-01-22 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303243', 'tblTempUsageDetail_20' ) start [2025-01-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303243', 'tblTempUsageDetail_20' ) end [2025-01-22 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:45:21] Production.INFO: ==1192== Releasing lock... [2025-01-22 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-22 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:46:04 [end_date_ymd] => 2025-01-22 06:46:04 [RateCDR] => 1 ) [2025-01-22 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:46:04' and `end` < '2025-01-22 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:46:17] Production.INFO: count ==156 [2025-01-22 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:46:04 - End Time 2025-01-22 06:46:04 [2025-01-22 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303248', 'tblTempUsageDetail_20' ) start [2025-01-22 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303248', 'tblTempUsageDetail_20' ) end [2025-01-22 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303248', 'tblTempVendorCDR_20' ) start [2025-01-22 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303248', 'tblTempVendorCDR_20' ) end [2025-01-22 06:46:17] Production.INFO: ProcessCDR(1,14303248,1,1,2) [2025-01-22 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303248', 'tblTempUsageDetail_20' ) start [2025-01-22 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303248', 'tblTempUsageDetail_20' ) end [2025-01-22 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:46:20] Production.INFO: ==1280== Releasing lock... [2025-01-22 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:46:20] Production.INFO: 29 MB #Memory Used# [2025-01-22 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:47:05 [end_date_ymd] => 2025-01-22 06:47:05 [RateCDR] => 1 ) [2025-01-22 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:47:05' and `end` < '2025-01-22 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:47:18] Production.INFO: count ==169 [2025-01-22 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:47:05 - End Time 2025-01-22 06:47:05 [2025-01-22 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303253', 'tblTempUsageDetail_20' ) start [2025-01-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303253', 'tblTempUsageDetail_20' ) end [2025-01-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303253', 'tblTempVendorCDR_20' ) start [2025-01-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303253', 'tblTempVendorCDR_20' ) end [2025-01-22 06:47:18] Production.INFO: ProcessCDR(1,14303253,1,1,2) [2025-01-22 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303253', 'tblTempUsageDetail_20' ) start [2025-01-22 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303253', 'tblTempUsageDetail_20' ) end [2025-01-22 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:47:21] Production.INFO: ==1354== Releasing lock... [2025-01-22 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:48:05 [end_date_ymd] => 2025-01-22 06:48:05 [RateCDR] => 1 ) [2025-01-22 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:48:05' and `end` < '2025-01-22 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:48:19] Production.INFO: count ==170 [2025-01-22 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:48:05 - End Time 2025-01-22 06:48:05 [2025-01-22 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303258', 'tblTempUsageDetail_20' ) start [2025-01-22 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303258', 'tblTempUsageDetail_20' ) end [2025-01-22 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303258', 'tblTempVendorCDR_20' ) start [2025-01-22 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303258', 'tblTempVendorCDR_20' ) end [2025-01-22 06:48:19] Production.INFO: ProcessCDR(1,14303258,1,1,2) [2025-01-22 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303258', 'tblTempUsageDetail_20' ) start [2025-01-22 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303258', 'tblTempUsageDetail_20' ) end [2025-01-22 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:48:22] Production.INFO: ==1435== Releasing lock... [2025-01-22 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:49:05 [end_date_ymd] => 2025-01-22 06:49:05 [RateCDR] => 1 ) [2025-01-22 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:49:05' and `end` < '2025-01-22 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:49:17] Production.INFO: count ==170 [2025-01-22 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:49:05 - End Time 2025-01-22 06:49:05 [2025-01-22 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303263', 'tblTempUsageDetail_20' ) start [2025-01-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303263', 'tblTempUsageDetail_20' ) end [2025-01-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303263', 'tblTempVendorCDR_20' ) start [2025-01-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303263', 'tblTempVendorCDR_20' ) end [2025-01-22 06:49:17] Production.INFO: ProcessCDR(1,14303263,1,1,2) [2025-01-22 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303263', 'tblTempUsageDetail_20' ) start [2025-01-22 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303263', 'tblTempUsageDetail_20' ) end [2025-01-22 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:49:20] Production.INFO: ==1538== Releasing lock... [2025-01-22 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:50:06 [end_date_ymd] => 2025-01-22 06:50:06 [RateCDR] => 1 ) [2025-01-22 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:50:06' and `end` < '2025-01-22 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:50:19] Production.INFO: count ==174 [2025-01-22 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 03:50:06 - End Time 2025-01-22 06:50:06 [2025-01-22 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303269', 'tblTempUsageDetail_20' ) start [2025-01-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303269', 'tblTempUsageDetail_20' ) end [2025-01-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303269', 'tblTempVendorCDR_20' ) start [2025-01-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303269', 'tblTempVendorCDR_20' ) end [2025-01-22 06:50:19] Production.INFO: ProcessCDR(1,14303269,1,1,2) [2025-01-22 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303269', 'tblTempUsageDetail_20' ) start [2025-01-22 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303269', 'tblTempUsageDetail_20' ) end [2025-01-22 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:50:22] Production.INFO: ==1623== Releasing lock... [2025-01-22 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:51:05 [end_date_ymd] => 2025-01-22 06:51:05 [RateCDR] => 1 ) [2025-01-22 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:51:05' and `end` < '2025-01-22 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:51:18] Production.INFO: count ==174 [2025-01-22 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:51:05 - End Time 2025-01-22 06:51:05 [2025-01-22 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303274', 'tblTempUsageDetail_20' ) start [2025-01-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303274', 'tblTempUsageDetail_20' ) end [2025-01-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303274', 'tblTempVendorCDR_20' ) start [2025-01-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303274', 'tblTempVendorCDR_20' ) end [2025-01-22 06:51:18] Production.INFO: ProcessCDR(1,14303274,1,1,2) [2025-01-22 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303274', 'tblTempUsageDetail_20' ) start [2025-01-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303274', 'tblTempUsageDetail_20' ) end [2025-01-22 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:51:21] Production.INFO: ==1701== Releasing lock... [2025-01-22 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:52:06 [end_date_ymd] => 2025-01-22 06:52:06 [RateCDR] => 1 ) [2025-01-22 06:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:52:06' and `end` < '2025-01-22 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:52:18] Production.INFO: count ==174 [2025-01-22 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:52:06 - End Time 2025-01-22 06:52:06 [2025-01-22 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303279', 'tblTempUsageDetail_20' ) start [2025-01-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303279', 'tblTempUsageDetail_20' ) end [2025-01-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303279', 'tblTempVendorCDR_20' ) start [2025-01-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303279', 'tblTempVendorCDR_20' ) end [2025-01-22 06:52:18] Production.INFO: ProcessCDR(1,14303279,1,1,2) [2025-01-22 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303279', 'tblTempUsageDetail_20' ) start [2025-01-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303279', 'tblTempUsageDetail_20' ) end [2025-01-22 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:52:21] Production.INFO: ==1779== Releasing lock... [2025-01-22 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:53:05 [end_date_ymd] => 2025-01-22 06:53:05 [RateCDR] => 1 ) [2025-01-22 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:53:05' and `end` < '2025-01-22 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:53:18] Production.INFO: count ==173 [2025-01-22 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:53:05 - End Time 2025-01-22 06:53:05 [2025-01-22 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303284', 'tblTempUsageDetail_20' ) start [2025-01-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303284', 'tblTempUsageDetail_20' ) end [2025-01-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303284', 'tblTempVendorCDR_20' ) start [2025-01-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303284', 'tblTempVendorCDR_20' ) end [2025-01-22 06:53:18] Production.INFO: ProcessCDR(1,14303284,1,1,2) [2025-01-22 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303284', 'tblTempUsageDetail_20' ) start [2025-01-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303284', 'tblTempUsageDetail_20' ) end [2025-01-22 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:53:21] Production.INFO: ==1863== Releasing lock... [2025-01-22 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:54:05 [end_date_ymd] => 2025-01-22 06:54:05 [RateCDR] => 1 ) [2025-01-22 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:54:05' and `end` < '2025-01-22 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:54:18] Production.INFO: count ==172 [2025-01-22 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:54:05 - End Time 2025-01-22 06:54:05 [2025-01-22 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303289', 'tblTempUsageDetail_20' ) start [2025-01-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303289', 'tblTempUsageDetail_20' ) end [2025-01-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303289', 'tblTempVendorCDR_20' ) start [2025-01-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303289', 'tblTempVendorCDR_20' ) end [2025-01-22 06:54:18] Production.INFO: ProcessCDR(1,14303289,1,1,2) [2025-01-22 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303289', 'tblTempUsageDetail_20' ) start [2025-01-22 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303289', 'tblTempUsageDetail_20' ) end [2025-01-22 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:54:21] Production.INFO: ==1976== Releasing lock... [2025-01-22 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:55:05 [end_date_ymd] => 2025-01-22 06:55:05 [RateCDR] => 1 ) [2025-01-22 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:55:05' and `end` < '2025-01-22 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:55:17] Production.INFO: count ==172 [2025-01-22 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-22 03:55:05 - End Time 2025-01-22 06:55:05 [2025-01-22 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303294', 'tblTempUsageDetail_20' ) start [2025-01-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303294', 'tblTempUsageDetail_20' ) end [2025-01-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303294', 'tblTempVendorCDR_20' ) start [2025-01-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303294', 'tblTempVendorCDR_20' ) end [2025-01-22 06:55:17] Production.INFO: ProcessCDR(1,14303294,1,1,2) [2025-01-22 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303294', 'tblTempUsageDetail_20' ) start [2025-01-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303294', 'tblTempUsageDetail_20' ) end [2025-01-22 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:55:20] Production.INFO: ==2053== Releasing lock... [2025-01-22 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:56:05 [end_date_ymd] => 2025-01-22 06:56:05 [RateCDR] => 1 ) [2025-01-22 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:56:05' and `end` < '2025-01-22 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:56:18] Production.INFO: count ==172 [2025-01-22 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:56:05 - End Time 2025-01-22 06:56:05 [2025-01-22 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303299', 'tblTempUsageDetail_20' ) start [2025-01-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303299', 'tblTempUsageDetail_20' ) end [2025-01-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303299', 'tblTempVendorCDR_20' ) start [2025-01-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303299', 'tblTempVendorCDR_20' ) end [2025-01-22 06:56:18] Production.INFO: ProcessCDR(1,14303299,1,1,2) [2025-01-22 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303299', 'tblTempUsageDetail_20' ) start [2025-01-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303299', 'tblTempUsageDetail_20' ) end [2025-01-22 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:56:21] Production.INFO: ==2127== Releasing lock... [2025-01-22 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:57:05 [end_date_ymd] => 2025-01-22 06:57:05 [RateCDR] => 1 ) [2025-01-22 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:57:05' and `end` < '2025-01-22 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:57:18] Production.INFO: count ==172 [2025-01-22 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:57:05 - End Time 2025-01-22 06:57:05 [2025-01-22 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303304', 'tblTempUsageDetail_20' ) start [2025-01-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303304', 'tblTempUsageDetail_20' ) end [2025-01-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303304', 'tblTempVendorCDR_20' ) start [2025-01-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303304', 'tblTempVendorCDR_20' ) end [2025-01-22 06:57:18] Production.INFO: ProcessCDR(1,14303304,1,1,2) [2025-01-22 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303304', 'tblTempUsageDetail_20' ) start [2025-01-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303304', 'tblTempUsageDetail_20' ) end [2025-01-22 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:57:21] Production.INFO: ==2202== Releasing lock... [2025-01-22 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:58:05 [end_date_ymd] => 2025-01-22 06:58:05 [RateCDR] => 1 ) [2025-01-22 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:58:05' and `end` < '2025-01-22 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:58:18] Production.INFO: count ==172 [2025-01-22 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:58:05 - End Time 2025-01-22 06:58:05 [2025-01-22 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303309', 'tblTempUsageDetail_20' ) start [2025-01-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303309', 'tblTempUsageDetail_20' ) end [2025-01-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303309', 'tblTempVendorCDR_20' ) start [2025-01-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303309', 'tblTempVendorCDR_20' ) end [2025-01-22 06:58:18] Production.INFO: ProcessCDR(1,14303309,1,1,2) [2025-01-22 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303309', 'tblTempUsageDetail_20' ) start [2025-01-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303309', 'tblTempUsageDetail_20' ) end [2025-01-22 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:58:21] Production.INFO: ==2276== Releasing lock... [2025-01-22 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 03:59:05 [end_date_ymd] => 2025-01-22 06:59:05 [RateCDR] => 1 ) [2025-01-22 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 03:59:05' and `end` < '2025-01-22 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 06:59:18] Production.INFO: count ==172 [2025-01-22 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 03:59:05 - End Time 2025-01-22 06:59:05 [2025-01-22 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303314', 'tblTempUsageDetail_20' ) start [2025-01-22 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303314', 'tblTempUsageDetail_20' ) end [2025-01-22 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303314', 'tblTempVendorCDR_20' ) start [2025-01-22 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303314', 'tblTempVendorCDR_20' ) end [2025-01-22 06:59:18] Production.INFO: ProcessCDR(1,14303314,1,1,2) [2025-01-22 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303314', 'tblTempUsageDetail_20' ) start [2025-01-22 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303314', 'tblTempUsageDetail_20' ) end [2025-01-22 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 06:59:21] Production.INFO: ==2356== Releasing lock... [2025-01-22 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 06:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:00:05 [end_date_ymd] => 2025-01-22 07:00:05 [RateCDR] => 1 ) [2025-01-22 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:00:05' and `end` < '2025-01-22 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:00:18] Production.INFO: count ==167 [2025-01-22 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:00:05 - End Time 2025-01-22 07:00:05 [2025-01-22 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303319', 'tblTempUsageDetail_20' ) start [2025-01-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303319', 'tblTempUsageDetail_20' ) end [2025-01-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303319', 'tblTempVendorCDR_20' ) start [2025-01-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303319', 'tblTempVendorCDR_20' ) end [2025-01-22 07:00:18] Production.INFO: ProcessCDR(1,14303319,1,1,2) [2025-01-22 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303319', 'tblTempUsageDetail_20' ) start [2025-01-22 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303319', 'tblTempUsageDetail_20' ) end [2025-01-22 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:00:21] Production.INFO: ==2432== Releasing lock... [2025-01-22 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:01:06 [end_date_ymd] => 2025-01-22 07:01:06 [RateCDR] => 1 ) [2025-01-22 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:01:06' and `end` < '2025-01-22 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:01:25] Production.INFO: count ==167 [2025-01-22 07:01:25] Production.ERROR: pbx CDR StartTime 2025-01-22 04:01:06 - End Time 2025-01-22 07:01:06 [2025-01-22 07:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303325', 'tblTempUsageDetail_20' ) start [2025-01-22 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303325', 'tblTempUsageDetail_20' ) end [2025-01-22 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303325', 'tblTempVendorCDR_20' ) start [2025-01-22 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303325', 'tblTempVendorCDR_20' ) end [2025-01-22 07:01:25] Production.INFO: ProcessCDR(1,14303325,1,1,2) [2025-01-22 07:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303325', 'tblTempUsageDetail_20' ) start [2025-01-22 07:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303325', 'tblTempUsageDetail_20' ) end [2025-01-22 07:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:01:28] Production.INFO: ==2523== Releasing lock... [2025-01-22 07:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:01:28] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:02:05 [end_date_ymd] => 2025-01-22 07:02:05 [RateCDR] => 1 ) [2025-01-22 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:02:05' and `end` < '2025-01-22 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:02:24] Production.INFO: count ==167 [2025-01-22 07:02:24] Production.ERROR: pbx CDR StartTime 2025-01-22 04:02:05 - End Time 2025-01-22 07:02:05 [2025-01-22 07:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303330', 'tblTempUsageDetail_20' ) start [2025-01-22 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303330', 'tblTempUsageDetail_20' ) end [2025-01-22 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303330', 'tblTempVendorCDR_20' ) start [2025-01-22 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303330', 'tblTempVendorCDR_20' ) end [2025-01-22 07:02:24] Production.INFO: ProcessCDR(1,14303330,1,1,2) [2025-01-22 07:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303330', 'tblTempUsageDetail_20' ) start [2025-01-22 07:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303330', 'tblTempUsageDetail_20' ) end [2025-01-22 07:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:02:27] Production.INFO: ==2680== Releasing lock... [2025-01-22 07:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:02:27] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:03:06 [end_date_ymd] => 2025-01-22 07:03:06 [RateCDR] => 1 ) [2025-01-22 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:03:06' and `end` < '2025-01-22 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:03:20] Production.INFO: count ==167 [2025-01-22 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:03:06 - End Time 2025-01-22 07:03:06 [2025-01-22 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303335', 'tblTempUsageDetail_20' ) start [2025-01-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303335', 'tblTempUsageDetail_20' ) end [2025-01-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303335', 'tblTempVendorCDR_20' ) start [2025-01-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303335', 'tblTempVendorCDR_20' ) end [2025-01-22 07:03:20] Production.INFO: ProcessCDR(1,14303335,1,1,2) [2025-01-22 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303335', 'tblTempUsageDetail_20' ) start [2025-01-22 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303335', 'tblTempUsageDetail_20' ) end [2025-01-22 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:03:23] Production.INFO: ==2750== Releasing lock... [2025-01-22 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:03:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:04:05 [end_date_ymd] => 2025-01-22 07:04:05 [RateCDR] => 1 ) [2025-01-22 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:04:05' and `end` < '2025-01-22 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:04:21] Production.INFO: count ==167 [2025-01-22 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-22 04:04:05 - End Time 2025-01-22 07:04:05 [2025-01-22 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303340', 'tblTempUsageDetail_20' ) start [2025-01-22 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303340', 'tblTempUsageDetail_20' ) end [2025-01-22 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303340', 'tblTempVendorCDR_20' ) start [2025-01-22 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303340', 'tblTempVendorCDR_20' ) end [2025-01-22 07:04:21] Production.INFO: ProcessCDR(1,14303340,1,1,2) [2025-01-22 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303340', 'tblTempUsageDetail_20' ) start [2025-01-22 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303340', 'tblTempUsageDetail_20' ) end [2025-01-22 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:04:24] Production.INFO: ==2825== Releasing lock... [2025-01-22 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:05:05 [end_date_ymd] => 2025-01-22 07:05:05 [RateCDR] => 1 ) [2025-01-22 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:05:05' and `end` < '2025-01-22 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:05:20] Production.INFO: count ==169 [2025-01-22 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:05:05 - End Time 2025-01-22 07:05:05 [2025-01-22 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303345', 'tblTempUsageDetail_20' ) start [2025-01-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303345', 'tblTempUsageDetail_20' ) end [2025-01-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303345', 'tblTempVendorCDR_20' ) start [2025-01-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303345', 'tblTempVendorCDR_20' ) end [2025-01-22 07:05:20] Production.INFO: ProcessCDR(1,14303345,1,1,2) [2025-01-22 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303345', 'tblTempUsageDetail_20' ) start [2025-01-22 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303345', 'tblTempUsageDetail_20' ) end [2025-01-22 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:05:24] Production.INFO: ==2976== Releasing lock... [2025-01-22 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:06:05 [end_date_ymd] => 2025-01-22 07:06:05 [RateCDR] => 1 ) [2025-01-22 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:06:05' and `end` < '2025-01-22 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:06:18] Production.INFO: count ==169 [2025-01-22 07:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:06:05 - End Time 2025-01-22 07:06:05 [2025-01-22 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303350', 'tblTempUsageDetail_20' ) start [2025-01-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303350', 'tblTempUsageDetail_20' ) end [2025-01-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303350', 'tblTempVendorCDR_20' ) start [2025-01-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303350', 'tblTempVendorCDR_20' ) end [2025-01-22 07:06:18] Production.INFO: ProcessCDR(1,14303350,1,1,2) [2025-01-22 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303350', 'tblTempUsageDetail_20' ) start [2025-01-22 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303350', 'tblTempUsageDetail_20' ) end [2025-01-22 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:06:21] Production.INFO: ==3052== Releasing lock... [2025-01-22 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:07:05 [end_date_ymd] => 2025-01-22 07:07:05 [RateCDR] => 1 ) [2025-01-22 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:07:05' and `end` < '2025-01-22 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:07:20] Production.INFO: count ==169 [2025-01-22 07:07:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:07:05 - End Time 2025-01-22 07:07:05 [2025-01-22 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303355', 'tblTempUsageDetail_20' ) start [2025-01-22 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303355', 'tblTempUsageDetail_20' ) end [2025-01-22 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303355', 'tblTempVendorCDR_20' ) start [2025-01-22 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303355', 'tblTempVendorCDR_20' ) end [2025-01-22 07:07:20] Production.INFO: ProcessCDR(1,14303355,1,1,2) [2025-01-22 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303355', 'tblTempUsageDetail_20' ) start [2025-01-22 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303355', 'tblTempUsageDetail_20' ) end [2025-01-22 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:07:23] Production.INFO: ==3126== Releasing lock... [2025-01-22 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:08:05 [end_date_ymd] => 2025-01-22 07:08:05 [RateCDR] => 1 ) [2025-01-22 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:08:05' and `end` < '2025-01-22 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:08:19] Production.INFO: count ==169 [2025-01-22 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:08:05 - End Time 2025-01-22 07:08:05 [2025-01-22 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303360', 'tblTempUsageDetail_20' ) start [2025-01-22 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303360', 'tblTempUsageDetail_20' ) end [2025-01-22 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303360', 'tblTempVendorCDR_20' ) start [2025-01-22 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303360', 'tblTempVendorCDR_20' ) end [2025-01-22 07:08:19] Production.INFO: ProcessCDR(1,14303360,1,1,2) [2025-01-22 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303360', 'tblTempUsageDetail_20' ) start [2025-01-22 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303360', 'tblTempUsageDetail_20' ) end [2025-01-22 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:08:22] Production.INFO: ==3238== Releasing lock... [2025-01-22 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:09:05 [end_date_ymd] => 2025-01-22 07:09:05 [RateCDR] => 1 ) [2025-01-22 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:09:05' and `end` < '2025-01-22 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:09:18] Production.INFO: count ==167 [2025-01-22 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:09:05 - End Time 2025-01-22 07:09:05 [2025-01-22 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303365', 'tblTempUsageDetail_20' ) start [2025-01-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303365', 'tblTempUsageDetail_20' ) end [2025-01-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303365', 'tblTempVendorCDR_20' ) start [2025-01-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303365', 'tblTempVendorCDR_20' ) end [2025-01-22 07:09:18] Production.INFO: ProcessCDR(1,14303365,1,1,2) [2025-01-22 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303365', 'tblTempUsageDetail_20' ) start [2025-01-22 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303365', 'tblTempUsageDetail_20' ) end [2025-01-22 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:09:21] Production.INFO: ==3348== Releasing lock... [2025-01-22 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:10:05 [end_date_ymd] => 2025-01-22 07:10:05 [RateCDR] => 1 ) [2025-01-22 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:10:05' and `end` < '2025-01-22 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:10:20] Production.INFO: count ==160 [2025-01-22 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:10:05 - End Time 2025-01-22 07:10:05 [2025-01-22 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303371', 'tblTempUsageDetail_20' ) start [2025-01-22 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303371', 'tblTempUsageDetail_20' ) end [2025-01-22 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303371', 'tblTempVendorCDR_20' ) start [2025-01-22 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303371', 'tblTempVendorCDR_20' ) end [2025-01-22 07:10:20] Production.INFO: ProcessCDR(1,14303371,1,1,2) [2025-01-22 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303371', 'tblTempUsageDetail_20' ) start [2025-01-22 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303371', 'tblTempUsageDetail_20' ) end [2025-01-22 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:10:23] Production.INFO: ==3462== Releasing lock... [2025-01-22 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:11:05 [end_date_ymd] => 2025-01-22 07:11:05 [RateCDR] => 1 ) [2025-01-22 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:11:05' and `end` < '2025-01-22 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:11:19] Production.INFO: count ==166 [2025-01-22 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:11:05 - End Time 2025-01-22 07:11:05 [2025-01-22 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303376', 'tblTempUsageDetail_20' ) start [2025-01-22 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303376', 'tblTempUsageDetail_20' ) end [2025-01-22 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303376', 'tblTempVendorCDR_20' ) start [2025-01-22 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303376', 'tblTempVendorCDR_20' ) end [2025-01-22 07:11:19] Production.INFO: ProcessCDR(1,14303376,1,1,2) [2025-01-22 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303376', 'tblTempUsageDetail_20' ) start [2025-01-22 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303376', 'tblTempUsageDetail_20' ) end [2025-01-22 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:11:22] Production.INFO: ==3535== Releasing lock... [2025-01-22 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:12:05 [end_date_ymd] => 2025-01-22 07:12:05 [RateCDR] => 1 ) [2025-01-22 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:12:05' and `end` < '2025-01-22 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:12:20] Production.INFO: count ==166 [2025-01-22 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:12:05 - End Time 2025-01-22 07:12:05 [2025-01-22 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303381', 'tblTempUsageDetail_20' ) start [2025-01-22 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303381', 'tblTempUsageDetail_20' ) end [2025-01-22 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303381', 'tblTempVendorCDR_20' ) start [2025-01-22 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303381', 'tblTempVendorCDR_20' ) end [2025-01-22 07:12:20] Production.INFO: ProcessCDR(1,14303381,1,1,2) [2025-01-22 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303381', 'tblTempUsageDetail_20' ) start [2025-01-22 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303381', 'tblTempUsageDetail_20' ) end [2025-01-22 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:12:23] Production.INFO: ==3687== Releasing lock... [2025-01-22 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:13:05 [end_date_ymd] => 2025-01-22 07:13:05 [RateCDR] => 1 ) [2025-01-22 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:13:05' and `end` < '2025-01-22 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:13:19] Production.INFO: count ==166 [2025-01-22 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:13:05 - End Time 2025-01-22 07:13:05 [2025-01-22 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303386', 'tblTempUsageDetail_20' ) start [2025-01-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303386', 'tblTempUsageDetail_20' ) end [2025-01-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303386', 'tblTempVendorCDR_20' ) start [2025-01-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303386', 'tblTempVendorCDR_20' ) end [2025-01-22 07:13:19] Production.INFO: ProcessCDR(1,14303386,1,1,2) [2025-01-22 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303386', 'tblTempUsageDetail_20' ) start [2025-01-22 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303386', 'tblTempUsageDetail_20' ) end [2025-01-22 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:13:22] Production.INFO: ==3762== Releasing lock... [2025-01-22 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:14:05 [end_date_ymd] => 2025-01-22 07:14:05 [RateCDR] => 1 ) [2025-01-22 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:14:05' and `end` < '2025-01-22 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:14:19] Production.INFO: count ==166 [2025-01-22 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:14:05 - End Time 2025-01-22 07:14:05 [2025-01-22 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303391', 'tblTempUsageDetail_20' ) start [2025-01-22 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303391', 'tblTempUsageDetail_20' ) end [2025-01-22 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303391', 'tblTempVendorCDR_20' ) start [2025-01-22 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303391', 'tblTempVendorCDR_20' ) end [2025-01-22 07:14:19] Production.INFO: ProcessCDR(1,14303391,1,1,2) [2025-01-22 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303391', 'tblTempUsageDetail_20' ) start [2025-01-22 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303391', 'tblTempUsageDetail_20' ) end [2025-01-22 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:14:22] Production.INFO: ==3837== Releasing lock... [2025-01-22 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:15:05 [end_date_ymd] => 2025-01-22 07:15:05 [RateCDR] => 1 ) [2025-01-22 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:15:05' and `end` < '2025-01-22 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:15:19] Production.INFO: count ==166 [2025-01-22 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:15:05 - End Time 2025-01-22 07:15:05 [2025-01-22 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303396', 'tblTempUsageDetail_20' ) start [2025-01-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303396', 'tblTempUsageDetail_20' ) end [2025-01-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303396', 'tblTempVendorCDR_20' ) start [2025-01-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303396', 'tblTempVendorCDR_20' ) end [2025-01-22 07:15:19] Production.INFO: ProcessCDR(1,14303396,1,1,2) [2025-01-22 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303396', 'tblTempUsageDetail_20' ) start [2025-01-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303396', 'tblTempUsageDetail_20' ) end [2025-01-22 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:15:22] Production.INFO: ==3975== Releasing lock... [2025-01-22 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:16:06 [end_date_ymd] => 2025-01-22 07:16:06 [RateCDR] => 1 ) [2025-01-22 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:16:06' and `end` < '2025-01-22 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:16:20] Production.INFO: count ==166 [2025-01-22 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:16:06 - End Time 2025-01-22 07:16:06 [2025-01-22 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303401', 'tblTempUsageDetail_20' ) start [2025-01-22 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303401', 'tblTempUsageDetail_20' ) end [2025-01-22 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303401', 'tblTempVendorCDR_20' ) start [2025-01-22 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303401', 'tblTempVendorCDR_20' ) end [2025-01-22 07:16:20] Production.INFO: ProcessCDR(1,14303401,1,1,2) [2025-01-22 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303401', 'tblTempUsageDetail_20' ) start [2025-01-22 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303401', 'tblTempUsageDetail_20' ) end [2025-01-22 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:16:23] Production.INFO: ==4069== Releasing lock... [2025-01-22 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:16:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:17:05 [end_date_ymd] => 2025-01-22 07:17:05 [RateCDR] => 1 ) [2025-01-22 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:17:05' and `end` < '2025-01-22 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:17:20] Production.INFO: count ==166 [2025-01-22 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:17:05 - End Time 2025-01-22 07:17:05 [2025-01-22 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303406', 'tblTempUsageDetail_20' ) start [2025-01-22 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303406', 'tblTempUsageDetail_20' ) end [2025-01-22 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303406', 'tblTempVendorCDR_20' ) start [2025-01-22 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303406', 'tblTempVendorCDR_20' ) end [2025-01-22 07:17:20] Production.INFO: ProcessCDR(1,14303406,1,1,2) [2025-01-22 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303406', 'tblTempUsageDetail_20' ) start [2025-01-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303406', 'tblTempUsageDetail_20' ) end [2025-01-22 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:17:23] Production.INFO: ==4142== Releasing lock... [2025-01-22 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:18:05 [end_date_ymd] => 2025-01-22 07:18:05 [RateCDR] => 1 ) [2025-01-22 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:18:05' and `end` < '2025-01-22 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:18:20] Production.INFO: count ==166 [2025-01-22 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:18:05 - End Time 2025-01-22 07:18:05 [2025-01-22 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303411', 'tblTempUsageDetail_20' ) start [2025-01-22 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303411', 'tblTempUsageDetail_20' ) end [2025-01-22 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303411', 'tblTempVendorCDR_20' ) start [2025-01-22 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303411', 'tblTempVendorCDR_20' ) end [2025-01-22 07:18:20] Production.INFO: ProcessCDR(1,14303411,1,1,2) [2025-01-22 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303411', 'tblTempUsageDetail_20' ) start [2025-01-22 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303411', 'tblTempUsageDetail_20' ) end [2025-01-22 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:18:23] Production.INFO: ==4213== Releasing lock... [2025-01-22 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:19:04 [end_date_ymd] => 2025-01-22 07:19:04 [RateCDR] => 1 ) [2025-01-22 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:19:04' and `end` < '2025-01-22 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:19:17] Production.INFO: count ==166 [2025-01-22 07:19:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:19:04 - End Time 2025-01-22 07:19:04 [2025-01-22 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303416', 'tblTempUsageDetail_20' ) start [2025-01-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303416', 'tblTempUsageDetail_20' ) end [2025-01-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303416', 'tblTempVendorCDR_20' ) start [2025-01-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303416', 'tblTempVendorCDR_20' ) end [2025-01-22 07:19:17] Production.INFO: ProcessCDR(1,14303416,1,1,2) [2025-01-22 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303416', 'tblTempUsageDetail_20' ) start [2025-01-22 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303416', 'tblTempUsageDetail_20' ) end [2025-01-22 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:19:20] Production.INFO: ==4285== Releasing lock... [2025-01-22 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:20:06 [end_date_ymd] => 2025-01-22 07:20:06 [RateCDR] => 1 ) [2025-01-22 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:20:06' and `end` < '2025-01-22 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:20:19] Production.INFO: count ==168 [2025-01-22 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:20:06 - End Time 2025-01-22 07:20:06 [2025-01-22 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303422', 'tblTempUsageDetail_20' ) start [2025-01-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303422', 'tblTempUsageDetail_20' ) end [2025-01-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303422', 'tblTempVendorCDR_20' ) start [2025-01-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303422', 'tblTempVendorCDR_20' ) end [2025-01-22 07:20:19] Production.INFO: ProcessCDR(1,14303422,1,1,2) [2025-01-22 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303422', 'tblTempUsageDetail_20' ) start [2025-01-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303422', 'tblTempUsageDetail_20' ) end [2025-01-22 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:20:22] Production.INFO: ==4360== Releasing lock... [2025-01-22 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:21:05 [end_date_ymd] => 2025-01-22 07:21:05 [RateCDR] => 1 ) [2025-01-22 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:21:05' and `end` < '2025-01-22 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:21:20] Production.INFO: count ==168 [2025-01-22 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:21:05 - End Time 2025-01-22 07:21:05 [2025-01-22 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303427', 'tblTempUsageDetail_20' ) start [2025-01-22 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303427', 'tblTempUsageDetail_20' ) end [2025-01-22 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303427', 'tblTempVendorCDR_20' ) start [2025-01-22 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303427', 'tblTempVendorCDR_20' ) end [2025-01-22 07:21:20] Production.INFO: ProcessCDR(1,14303427,1,1,2) [2025-01-22 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303427', 'tblTempUsageDetail_20' ) start [2025-01-22 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303427', 'tblTempUsageDetail_20' ) end [2025-01-22 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:21:23] Production.INFO: ==4434== Releasing lock... [2025-01-22 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:22:05 [end_date_ymd] => 2025-01-22 07:22:05 [RateCDR] => 1 ) [2025-01-22 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:22:05' and `end` < '2025-01-22 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:22:17] Production.INFO: count ==168 [2025-01-22 07:22:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:22:05 - End Time 2025-01-22 07:22:05 [2025-01-22 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303432', 'tblTempUsageDetail_20' ) start [2025-01-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303432', 'tblTempUsageDetail_20' ) end [2025-01-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303432', 'tblTempVendorCDR_20' ) start [2025-01-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303432', 'tblTempVendorCDR_20' ) end [2025-01-22 07:22:17] Production.INFO: ProcessCDR(1,14303432,1,1,2) [2025-01-22 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303432', 'tblTempUsageDetail_20' ) start [2025-01-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303432', 'tblTempUsageDetail_20' ) end [2025-01-22 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:22:20] Production.INFO: ==4506== Releasing lock... [2025-01-22 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:23:06 [end_date_ymd] => 2025-01-22 07:23:06 [RateCDR] => 1 ) [2025-01-22 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:23:06' and `end` < '2025-01-22 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:23:19] Production.INFO: count ==168 [2025-01-22 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:23:06 - End Time 2025-01-22 07:23:06 [2025-01-22 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303437', 'tblTempUsageDetail_20' ) start [2025-01-22 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303437', 'tblTempUsageDetail_20' ) end [2025-01-22 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303437', 'tblTempVendorCDR_20' ) start [2025-01-22 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303437', 'tblTempVendorCDR_20' ) end [2025-01-22 07:23:19] Production.INFO: ProcessCDR(1,14303437,1,1,2) [2025-01-22 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303437', 'tblTempUsageDetail_20' ) start [2025-01-22 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303437', 'tblTempUsageDetail_20' ) end [2025-01-22 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:23:23] Production.INFO: ==4586== Releasing lock... [2025-01-22 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:24:04 [end_date_ymd] => 2025-01-22 07:24:04 [RateCDR] => 1 ) [2025-01-22 07:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:24:04' and `end` < '2025-01-22 07:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:24:18] Production.INFO: count ==168 [2025-01-22 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:24:04 - End Time 2025-01-22 07:24:04 [2025-01-22 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303442', 'tblTempUsageDetail_20' ) start [2025-01-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303442', 'tblTempUsageDetail_20' ) end [2025-01-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303442', 'tblTempVendorCDR_20' ) start [2025-01-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303442', 'tblTempVendorCDR_20' ) end [2025-01-22 07:24:18] Production.INFO: ProcessCDR(1,14303442,1,1,2) [2025-01-22 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303442', 'tblTempUsageDetail_20' ) start [2025-01-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303442', 'tblTempUsageDetail_20' ) end [2025-01-22 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:24:21] Production.INFO: ==4660== Releasing lock... [2025-01-22 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:25:05 [end_date_ymd] => 2025-01-22 07:25:05 [RateCDR] => 1 ) [2025-01-22 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:25:05' and `end` < '2025-01-22 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:25:18] Production.INFO: count ==168 [2025-01-22 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:25:05 - End Time 2025-01-22 07:25:05 [2025-01-22 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303447', 'tblTempUsageDetail_20' ) start [2025-01-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303447', 'tblTempUsageDetail_20' ) end [2025-01-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303447', 'tblTempVendorCDR_20' ) start [2025-01-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303447', 'tblTempVendorCDR_20' ) end [2025-01-22 07:25:18] Production.INFO: ProcessCDR(1,14303447,1,1,2) [2025-01-22 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303447', 'tblTempUsageDetail_20' ) start [2025-01-22 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303447', 'tblTempUsageDetail_20' ) end [2025-01-22 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:25:21] Production.INFO: ==4774== Releasing lock... [2025-01-22 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:26:05 [end_date_ymd] => 2025-01-22 07:26:05 [RateCDR] => 1 ) [2025-01-22 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:26:05' and `end` < '2025-01-22 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:26:18] Production.INFO: count ==168 [2025-01-22 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:26:05 - End Time 2025-01-22 07:26:05 [2025-01-22 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303452', 'tblTempUsageDetail_20' ) start [2025-01-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303452', 'tblTempUsageDetail_20' ) end [2025-01-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303452', 'tblTempVendorCDR_20' ) start [2025-01-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303452', 'tblTempVendorCDR_20' ) end [2025-01-22 07:26:18] Production.INFO: ProcessCDR(1,14303452,1,1,2) [2025-01-22 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303452', 'tblTempUsageDetail_20' ) start [2025-01-22 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303452', 'tblTempUsageDetail_20' ) end [2025-01-22 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:26:21] Production.INFO: ==4844== Releasing lock... [2025-01-22 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:27:06 [end_date_ymd] => 2025-01-22 07:27:06 [RateCDR] => 1 ) [2025-01-22 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:27:06' and `end` < '2025-01-22 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:27:19] Production.INFO: count ==168 [2025-01-22 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:27:06 - End Time 2025-01-22 07:27:06 [2025-01-22 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303457', 'tblTempUsageDetail_20' ) start [2025-01-22 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303457', 'tblTempUsageDetail_20' ) end [2025-01-22 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303457', 'tblTempVendorCDR_20' ) start [2025-01-22 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303457', 'tblTempVendorCDR_20' ) end [2025-01-22 07:27:19] Production.INFO: ProcessCDR(1,14303457,1,1,2) [2025-01-22 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303457', 'tblTempUsageDetail_20' ) start [2025-01-22 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303457', 'tblTempUsageDetail_20' ) end [2025-01-22 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:27:22] Production.INFO: ==4925== Releasing lock... [2025-01-22 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:28:05 [end_date_ymd] => 2025-01-22 07:28:05 [RateCDR] => 1 ) [2025-01-22 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:28:05' and `end` < '2025-01-22 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:28:18] Production.INFO: count ==168 [2025-01-22 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:28:05 - End Time 2025-01-22 07:28:05 [2025-01-22 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303462', 'tblTempUsageDetail_20' ) start [2025-01-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303462', 'tblTempUsageDetail_20' ) end [2025-01-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303462', 'tblTempVendorCDR_20' ) start [2025-01-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303462', 'tblTempVendorCDR_20' ) end [2025-01-22 07:28:18] Production.INFO: ProcessCDR(1,14303462,1,1,2) [2025-01-22 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303462', 'tblTempUsageDetail_20' ) start [2025-01-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303462', 'tblTempUsageDetail_20' ) end [2025-01-22 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:28:21] Production.INFO: ==4995== Releasing lock... [2025-01-22 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:29:05 [end_date_ymd] => 2025-01-22 07:29:05 [RateCDR] => 1 ) [2025-01-22 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:29:05' and `end` < '2025-01-22 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:29:18] Production.INFO: count ==168 [2025-01-22 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:29:05 - End Time 2025-01-22 07:29:05 [2025-01-22 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303467', 'tblTempUsageDetail_20' ) start [2025-01-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303467', 'tblTempUsageDetail_20' ) end [2025-01-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303467', 'tblTempVendorCDR_20' ) start [2025-01-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303467', 'tblTempVendorCDR_20' ) end [2025-01-22 07:29:18] Production.INFO: ProcessCDR(1,14303467,1,1,2) [2025-01-22 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303467', 'tblTempUsageDetail_20' ) start [2025-01-22 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303467', 'tblTempUsageDetail_20' ) end [2025-01-22 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:29:21] Production.INFO: ==5067== Releasing lock... [2025-01-22 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:30:06 [end_date_ymd] => 2025-01-22 07:30:06 [RateCDR] => 1 ) [2025-01-22 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:30:06' and `end` < '2025-01-22 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:30:19] Production.INFO: count ==163 [2025-01-22 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:30:06 - End Time 2025-01-22 07:30:06 [2025-01-22 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303472', 'tblTempUsageDetail_20' ) start [2025-01-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303472', 'tblTempUsageDetail_20' ) end [2025-01-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303472', 'tblTempVendorCDR_20' ) start [2025-01-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303472', 'tblTempVendorCDR_20' ) end [2025-01-22 07:30:19] Production.INFO: ProcessCDR(1,14303472,1,1,2) [2025-01-22 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303472', 'tblTempUsageDetail_20' ) start [2025-01-22 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303472', 'tblTempUsageDetail_20' ) end [2025-01-22 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:30:22] Production.INFO: ==5143== Releasing lock... [2025-01-22 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:31:05 [end_date_ymd] => 2025-01-22 07:31:05 [RateCDR] => 1 ) [2025-01-22 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:31:05' and `end` < '2025-01-22 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:31:17] Production.INFO: count ==163 [2025-01-22 07:31:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:31:05 - End Time 2025-01-22 07:31:05 [2025-01-22 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303478', 'tblTempUsageDetail_20' ) start [2025-01-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303478', 'tblTempUsageDetail_20' ) end [2025-01-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303478', 'tblTempVendorCDR_20' ) start [2025-01-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303478', 'tblTempVendorCDR_20' ) end [2025-01-22 07:31:17] Production.INFO: ProcessCDR(1,14303478,1,1,2) [2025-01-22 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303478', 'tblTempUsageDetail_20' ) start [2025-01-22 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303478', 'tblTempUsageDetail_20' ) end [2025-01-22 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:31:20] Production.INFO: ==5216== Releasing lock... [2025-01-22 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:32:05 [end_date_ymd] => 2025-01-22 07:32:05 [RateCDR] => 1 ) [2025-01-22 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:32:05' and `end` < '2025-01-22 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:32:19] Production.INFO: count ==163 [2025-01-22 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:32:05 - End Time 2025-01-22 07:32:05 [2025-01-22 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303483', 'tblTempUsageDetail_20' ) start [2025-01-22 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303483', 'tblTempUsageDetail_20' ) end [2025-01-22 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303483', 'tblTempVendorCDR_20' ) start [2025-01-22 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303483', 'tblTempVendorCDR_20' ) end [2025-01-22 07:32:19] Production.INFO: ProcessCDR(1,14303483,1,1,2) [2025-01-22 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303483', 'tblTempUsageDetail_20' ) start [2025-01-22 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303483', 'tblTempUsageDetail_20' ) end [2025-01-22 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:32:22] Production.INFO: ==5289== Releasing lock... [2025-01-22 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:33:05 [end_date_ymd] => 2025-01-22 07:33:05 [RateCDR] => 1 ) [2025-01-22 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:33:05' and `end` < '2025-01-22 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:33:19] Production.INFO: count ==163 [2025-01-22 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:33:05 - End Time 2025-01-22 07:33:05 [2025-01-22 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303488', 'tblTempUsageDetail_20' ) start [2025-01-22 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303488', 'tblTempUsageDetail_20' ) end [2025-01-22 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303488', 'tblTempVendorCDR_20' ) start [2025-01-22 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303488', 'tblTempVendorCDR_20' ) end [2025-01-22 07:33:19] Production.INFO: ProcessCDR(1,14303488,1,1,2) [2025-01-22 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303488', 'tblTempUsageDetail_20' ) start [2025-01-22 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303488', 'tblTempUsageDetail_20' ) end [2025-01-22 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:33:22] Production.INFO: ==5360== Releasing lock... [2025-01-22 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:34:06 [end_date_ymd] => 2025-01-22 07:34:06 [RateCDR] => 1 ) [2025-01-22 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:34:06' and `end` < '2025-01-22 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:34:18] Production.INFO: count ==161 [2025-01-22 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:34:06 - End Time 2025-01-22 07:34:06 [2025-01-22 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303493', 'tblTempUsageDetail_20' ) start [2025-01-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303493', 'tblTempUsageDetail_20' ) end [2025-01-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303493', 'tblTempVendorCDR_20' ) start [2025-01-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303493', 'tblTempVendorCDR_20' ) end [2025-01-22 07:34:18] Production.INFO: ProcessCDR(1,14303493,1,1,2) [2025-01-22 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303493', 'tblTempUsageDetail_20' ) start [2025-01-22 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303493', 'tblTempUsageDetail_20' ) end [2025-01-22 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:34:21] Production.INFO: ==5447== Releasing lock... [2025-01-22 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:35:04 [end_date_ymd] => 2025-01-22 07:35:04 [RateCDR] => 1 ) [2025-01-22 07:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:35:04' and `end` < '2025-01-22 07:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:35:17] Production.INFO: count ==160 [2025-01-22 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:35:04 - End Time 2025-01-22 07:35:04 [2025-01-22 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303498', 'tblTempUsageDetail_20' ) start [2025-01-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303498', 'tblTempUsageDetail_20' ) end [2025-01-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303498', 'tblTempVendorCDR_20' ) start [2025-01-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303498', 'tblTempVendorCDR_20' ) end [2025-01-22 07:35:17] Production.INFO: ProcessCDR(1,14303498,1,1,2) [2025-01-22 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303498', 'tblTempUsageDetail_20' ) start [2025-01-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303498', 'tblTempUsageDetail_20' ) end [2025-01-22 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:35:20] Production.INFO: ==5517== Releasing lock... [2025-01-22 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:36:05 [end_date_ymd] => 2025-01-22 07:36:05 [RateCDR] => 1 ) [2025-01-22 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:36:05' and `end` < '2025-01-22 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:36:19] Production.INFO: count ==161 [2025-01-22 07:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:36:05 - End Time 2025-01-22 07:36:05 [2025-01-22 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303503', 'tblTempUsageDetail_20' ) start [2025-01-22 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303503', 'tblTempUsageDetail_20' ) end [2025-01-22 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303503', 'tblTempVendorCDR_20' ) start [2025-01-22 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303503', 'tblTempVendorCDR_20' ) end [2025-01-22 07:36:19] Production.INFO: ProcessCDR(1,14303503,1,1,2) [2025-01-22 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303503', 'tblTempUsageDetail_20' ) start [2025-01-22 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303503', 'tblTempUsageDetail_20' ) end [2025-01-22 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:36:22] Production.INFO: ==5591== Releasing lock... [2025-01-22 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:37:05 [end_date_ymd] => 2025-01-22 07:37:05 [RateCDR] => 1 ) [2025-01-22 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:37:05' and `end` < '2025-01-22 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:37:17] Production.INFO: count ==161 [2025-01-22 07:37:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:37:05 - End Time 2025-01-22 07:37:05 [2025-01-22 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303508', 'tblTempUsageDetail_20' ) start [2025-01-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303508', 'tblTempUsageDetail_20' ) end [2025-01-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303508', 'tblTempVendorCDR_20' ) start [2025-01-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303508', 'tblTempVendorCDR_20' ) end [2025-01-22 07:37:17] Production.INFO: ProcessCDR(1,14303508,1,1,2) [2025-01-22 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303508', 'tblTempUsageDetail_20' ) start [2025-01-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303508', 'tblTempUsageDetail_20' ) end [2025-01-22 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:37:20] Production.INFO: ==5662== Releasing lock... [2025-01-22 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:38:05 [end_date_ymd] => 2025-01-22 07:38:05 [RateCDR] => 1 ) [2025-01-22 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:38:05' and `end` < '2025-01-22 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:38:18] Production.INFO: count ==161 [2025-01-22 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:38:05 - End Time 2025-01-22 07:38:05 [2025-01-22 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303513', 'tblTempUsageDetail_20' ) start [2025-01-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303513', 'tblTempUsageDetail_20' ) end [2025-01-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303513', 'tblTempVendorCDR_20' ) start [2025-01-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303513', 'tblTempVendorCDR_20' ) end [2025-01-22 07:38:18] Production.INFO: ProcessCDR(1,14303513,1,1,2) [2025-01-22 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303513', 'tblTempUsageDetail_20' ) start [2025-01-22 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303513', 'tblTempUsageDetail_20' ) end [2025-01-22 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:38:20] Production.INFO: ==5734== Releasing lock... [2025-01-22 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:39:04 [end_date_ymd] => 2025-01-22 07:39:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 04:39:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 07:39:18] Production.INFO: count ==161 [2025-01-22 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:39:04 - End Time 2025-01-22 07:39:04 [2025-01-22 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303518', 'tblTempUsageDetail_20' ) start [2025-01-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303518', 'tblTempUsageDetail_20' ) end [2025-01-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303518', 'tblTempVendorCDR_20' ) start [2025-01-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303518', 'tblTempVendorCDR_20' ) end [2025-01-22 07:39:18] Production.INFO: ProcessCDR(1,14303518,1,1,2) [2025-01-22 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303518', 'tblTempUsageDetail_20' ) start [2025-01-22 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303518', 'tblTempUsageDetail_20' ) end [2025-01-22 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:39:21] Production.INFO: ==5806== Releasing lock... [2025-01-22 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:40:06 [end_date_ymd] => 2025-01-22 07:40:06 [RateCDR] => 1 ) [2025-01-22 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:40:06' and `end` < '2025-01-22 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:40:20] Production.INFO: count ==159 [2025-01-22 07:40:20] Production.ERROR: pbx CDR StartTime 2025-01-22 04:40:06 - End Time 2025-01-22 07:40:06 [2025-01-22 07:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303524', 'tblTempUsageDetail_20' ) start [2025-01-22 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303524', 'tblTempUsageDetail_20' ) end [2025-01-22 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303524', 'tblTempVendorCDR_20' ) start [2025-01-22 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303524', 'tblTempVendorCDR_20' ) end [2025-01-22 07:40:20] Production.INFO: ProcessCDR(1,14303524,1,1,2) [2025-01-22 07:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303524', 'tblTempUsageDetail_20' ) start [2025-01-22 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303524', 'tblTempUsageDetail_20' ) end [2025-01-22 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:40:23] Production.INFO: ==5880== Releasing lock... [2025-01-22 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:41:05 [end_date_ymd] => 2025-01-22 07:41:05 [RateCDR] => 1 ) [2025-01-22 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:41:05' and `end` < '2025-01-22 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:41:18] Production.INFO: count ==159 [2025-01-22 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:41:05 - End Time 2025-01-22 07:41:05 [2025-01-22 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303529', 'tblTempUsageDetail_20' ) start [2025-01-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303529', 'tblTempUsageDetail_20' ) end [2025-01-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303529', 'tblTempVendorCDR_20' ) start [2025-01-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303529', 'tblTempVendorCDR_20' ) end [2025-01-22 07:41:18] Production.INFO: ProcessCDR(1,14303529,1,1,2) [2025-01-22 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303529', 'tblTempUsageDetail_20' ) start [2025-01-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303529', 'tblTempUsageDetail_20' ) end [2025-01-22 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:41:21] Production.INFO: ==5992== Releasing lock... [2025-01-22 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:42:05 [end_date_ymd] => 2025-01-22 07:42:05 [RateCDR] => 1 ) [2025-01-22 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:42:05' and `end` < '2025-01-22 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:42:17] Production.INFO: count ==159 [2025-01-22 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:42:05 - End Time 2025-01-22 07:42:05 [2025-01-22 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303534', 'tblTempUsageDetail_20' ) start [2025-01-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303534', 'tblTempUsageDetail_20' ) end [2025-01-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303534', 'tblTempVendorCDR_20' ) start [2025-01-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303534', 'tblTempVendorCDR_20' ) end [2025-01-22 07:42:17] Production.INFO: ProcessCDR(1,14303534,1,1,2) [2025-01-22 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303534', 'tblTempUsageDetail_20' ) start [2025-01-22 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303534', 'tblTempUsageDetail_20' ) end [2025-01-22 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:42:20] Production.INFO: ==6063== Releasing lock... [2025-01-22 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:43:05 [end_date_ymd] => 2025-01-22 07:43:05 [RateCDR] => 1 ) [2025-01-22 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:43:05' and `end` < '2025-01-22 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:43:18] Production.INFO: count ==159 [2025-01-22 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:43:05 - End Time 2025-01-22 07:43:05 [2025-01-22 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303539', 'tblTempUsageDetail_20' ) start [2025-01-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303539', 'tblTempUsageDetail_20' ) end [2025-01-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303539', 'tblTempVendorCDR_20' ) start [2025-01-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303539', 'tblTempVendorCDR_20' ) end [2025-01-22 07:43:18] Production.INFO: ProcessCDR(1,14303539,1,1,2) [2025-01-22 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303539', 'tblTempUsageDetail_20' ) start [2025-01-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303539', 'tblTempUsageDetail_20' ) end [2025-01-22 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:43:21] Production.INFO: ==6136== Releasing lock... [2025-01-22 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:44:05 [end_date_ymd] => 2025-01-22 07:44:05 [RateCDR] => 1 ) [2025-01-22 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:44:05' and `end` < '2025-01-22 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:44:18] Production.INFO: count ==159 [2025-01-22 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:44:05 - End Time 2025-01-22 07:44:05 [2025-01-22 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303544', 'tblTempUsageDetail_20' ) start [2025-01-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303544', 'tblTempUsageDetail_20' ) end [2025-01-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303544', 'tblTempVendorCDR_20' ) start [2025-01-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303544', 'tblTempVendorCDR_20' ) end [2025-01-22 07:44:18] Production.INFO: ProcessCDR(1,14303544,1,1,2) [2025-01-22 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303544', 'tblTempUsageDetail_20' ) start [2025-01-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303544', 'tblTempUsageDetail_20' ) end [2025-01-22 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:44:21] Production.INFO: ==6209== Releasing lock... [2025-01-22 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:45:05 [end_date_ymd] => 2025-01-22 07:45:05 [RateCDR] => 1 ) [2025-01-22 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:45:05' and `end` < '2025-01-22 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:45:17] Production.INFO: count ==159 [2025-01-22 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:45:05 - End Time 2025-01-22 07:45:05 [2025-01-22 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303549', 'tblTempUsageDetail_20' ) start [2025-01-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303549', 'tblTempUsageDetail_20' ) end [2025-01-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303549', 'tblTempVendorCDR_20' ) start [2025-01-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303549', 'tblTempVendorCDR_20' ) end [2025-01-22 07:45:17] Production.INFO: ProcessCDR(1,14303549,1,1,2) [2025-01-22 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303549', 'tblTempUsageDetail_20' ) start [2025-01-22 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303549', 'tblTempUsageDetail_20' ) end [2025-01-22 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:45:20] Production.INFO: ==6281== Releasing lock... [2025-01-22 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:46:05 [end_date_ymd] => 2025-01-22 07:46:05 [RateCDR] => 1 ) [2025-01-22 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:46:05' and `end` < '2025-01-22 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:46:18] Production.INFO: count ==159 [2025-01-22 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:46:05 - End Time 2025-01-22 07:46:05 [2025-01-22 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303554', 'tblTempUsageDetail_20' ) start [2025-01-22 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303554', 'tblTempUsageDetail_20' ) end [2025-01-22 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303554', 'tblTempVendorCDR_20' ) start [2025-01-22 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303554', 'tblTempVendorCDR_20' ) end [2025-01-22 07:46:18] Production.INFO: ProcessCDR(1,14303554,1,1,2) [2025-01-22 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303554', 'tblTempUsageDetail_20' ) start [2025-01-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303554', 'tblTempUsageDetail_20' ) end [2025-01-22 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:46:21] Production.INFO: ==6357== Releasing lock... [2025-01-22 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:47:05 [end_date_ymd] => 2025-01-22 07:47:05 [RateCDR] => 1 ) [2025-01-22 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:47:05' and `end` < '2025-01-22 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:47:18] Production.INFO: count ==159 [2025-01-22 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:47:05 - End Time 2025-01-22 07:47:05 [2025-01-22 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303559', 'tblTempUsageDetail_20' ) start [2025-01-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303559', 'tblTempUsageDetail_20' ) end [2025-01-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303559', 'tblTempVendorCDR_20' ) start [2025-01-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303559', 'tblTempVendorCDR_20' ) end [2025-01-22 07:47:18] Production.INFO: ProcessCDR(1,14303559,1,1,2) [2025-01-22 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303559', 'tblTempUsageDetail_20' ) start [2025-01-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303559', 'tblTempUsageDetail_20' ) end [2025-01-22 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:47:21] Production.INFO: ==6431== Releasing lock... [2025-01-22 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:48:05 [end_date_ymd] => 2025-01-22 07:48:05 [RateCDR] => 1 ) [2025-01-22 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:48:05' and `end` < '2025-01-22 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:48:19] Production.INFO: count ==159 [2025-01-22 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:48:05 - End Time 2025-01-22 07:48:05 [2025-01-22 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303564', 'tblTempUsageDetail_20' ) start [2025-01-22 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303564', 'tblTempUsageDetail_20' ) end [2025-01-22 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303564', 'tblTempVendorCDR_20' ) start [2025-01-22 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303564', 'tblTempVendorCDR_20' ) end [2025-01-22 07:48:19] Production.INFO: ProcessCDR(1,14303564,1,1,2) [2025-01-22 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303564', 'tblTempUsageDetail_20' ) start [2025-01-22 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303564', 'tblTempUsageDetail_20' ) end [2025-01-22 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:48:22] Production.INFO: ==6501== Releasing lock... [2025-01-22 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:49:05 [end_date_ymd] => 2025-01-22 07:49:05 [RateCDR] => 1 ) [2025-01-22 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:49:05' and `end` < '2025-01-22 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:49:18] Production.INFO: count ==159 [2025-01-22 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:49:05 - End Time 2025-01-22 07:49:05 [2025-01-22 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303569', 'tblTempUsageDetail_20' ) start [2025-01-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303569', 'tblTempUsageDetail_20' ) end [2025-01-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303569', 'tblTempVendorCDR_20' ) start [2025-01-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303569', 'tblTempVendorCDR_20' ) end [2025-01-22 07:49:18] Production.INFO: ProcessCDR(1,14303569,1,1,2) [2025-01-22 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303569', 'tblTempUsageDetail_20' ) start [2025-01-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303569', 'tblTempUsageDetail_20' ) end [2025-01-22 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:49:20] Production.INFO: ==6572== Releasing lock... [2025-01-22 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:50:05 [end_date_ymd] => 2025-01-22 07:50:05 [RateCDR] => 1 ) [2025-01-22 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:50:05' and `end` < '2025-01-22 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:50:18] Production.INFO: count ==161 [2025-01-22 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:50:05 - End Time 2025-01-22 07:50:05 [2025-01-22 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303574', 'tblTempUsageDetail_20' ) start [2025-01-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303574', 'tblTempUsageDetail_20' ) end [2025-01-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303574', 'tblTempVendorCDR_20' ) start [2025-01-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303574', 'tblTempVendorCDR_20' ) end [2025-01-22 07:50:18] Production.INFO: ProcessCDR(1,14303574,1,1,2) [2025-01-22 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303574', 'tblTempUsageDetail_20' ) start [2025-01-22 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303574', 'tblTempUsageDetail_20' ) end [2025-01-22 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:50:21] Production.INFO: ==6646== Releasing lock... [2025-01-22 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-22 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:51:05 [end_date_ymd] => 2025-01-22 07:51:05 [RateCDR] => 1 ) [2025-01-22 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:51:05' and `end` < '2025-01-22 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:51:19] Production.INFO: count ==169 [2025-01-22 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:51:05 - End Time 2025-01-22 07:51:05 [2025-01-22 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303580', 'tblTempUsageDetail_20' ) start [2025-01-22 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303580', 'tblTempUsageDetail_20' ) end [2025-01-22 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303580', 'tblTempVendorCDR_20' ) start [2025-01-22 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303580', 'tblTempVendorCDR_20' ) end [2025-01-22 07:51:19] Production.INFO: ProcessCDR(1,14303580,1,1,2) [2025-01-22 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303580', 'tblTempUsageDetail_20' ) start [2025-01-22 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303580', 'tblTempUsageDetail_20' ) end [2025-01-22 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:51:23] Production.INFO: ==6719== Releasing lock... [2025-01-22 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:51:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:52:05 [end_date_ymd] => 2025-01-22 07:52:05 [RateCDR] => 1 ) [2025-01-22 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:52:05' and `end` < '2025-01-22 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:52:17] Production.INFO: count ==169 [2025-01-22 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:52:05 - End Time 2025-01-22 07:52:05 [2025-01-22 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303585', 'tblTempUsageDetail_20' ) start [2025-01-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303585', 'tblTempUsageDetail_20' ) end [2025-01-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303585', 'tblTempVendorCDR_20' ) start [2025-01-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303585', 'tblTempVendorCDR_20' ) end [2025-01-22 07:52:17] Production.INFO: ProcessCDR(1,14303585,1,1,2) [2025-01-22 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303585', 'tblTempUsageDetail_20' ) start [2025-01-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303585', 'tblTempUsageDetail_20' ) end [2025-01-22 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:52:21] Production.INFO: ==6792== Releasing lock... [2025-01-22 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:53:05 [end_date_ymd] => 2025-01-22 07:53:05 [RateCDR] => 1 ) [2025-01-22 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:53:05' and `end` < '2025-01-22 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:53:17] Production.INFO: count ==170 [2025-01-22 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-22 04:53:05 - End Time 2025-01-22 07:53:05 [2025-01-22 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303590', 'tblTempUsageDetail_20' ) start [2025-01-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303590', 'tblTempUsageDetail_20' ) end [2025-01-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303590', 'tblTempVendorCDR_20' ) start [2025-01-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303590', 'tblTempVendorCDR_20' ) end [2025-01-22 07:53:17] Production.INFO: ProcessCDR(1,14303590,1,1,2) [2025-01-22 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303590', 'tblTempUsageDetail_20' ) start [2025-01-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303590', 'tblTempUsageDetail_20' ) end [2025-01-22 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:53:20] Production.INFO: ==6864== Releasing lock... [2025-01-22 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:54:05 [end_date_ymd] => 2025-01-22 07:54:05 [RateCDR] => 1 ) [2025-01-22 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:54:05' and `end` < '2025-01-22 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:54:18] Production.INFO: count ==170 [2025-01-22 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:54:05 - End Time 2025-01-22 07:54:05 [2025-01-22 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303595', 'tblTempUsageDetail_20' ) start [2025-01-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303595', 'tblTempUsageDetail_20' ) end [2025-01-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303595', 'tblTempVendorCDR_20' ) start [2025-01-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303595', 'tblTempVendorCDR_20' ) end [2025-01-22 07:54:18] Production.INFO: ProcessCDR(1,14303595,1,1,2) [2025-01-22 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303595', 'tblTempUsageDetail_20' ) start [2025-01-22 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303595', 'tblTempUsageDetail_20' ) end [2025-01-22 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:54:21] Production.INFO: ==6935== Releasing lock... [2025-01-22 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:55:05 [end_date_ymd] => 2025-01-22 07:55:05 [RateCDR] => 1 ) [2025-01-22 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:55:05' and `end` < '2025-01-22 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:55:18] Production.INFO: count ==170 [2025-01-22 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:55:05 - End Time 2025-01-22 07:55:05 [2025-01-22 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303600', 'tblTempUsageDetail_20' ) start [2025-01-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303600', 'tblTempUsageDetail_20' ) end [2025-01-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303600', 'tblTempVendorCDR_20' ) start [2025-01-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303600', 'tblTempVendorCDR_20' ) end [2025-01-22 07:55:18] Production.INFO: ProcessCDR(1,14303600,1,1,2) [2025-01-22 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303600', 'tblTempUsageDetail_20' ) start [2025-01-22 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303600', 'tblTempUsageDetail_20' ) end [2025-01-22 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:55:21] Production.INFO: ==7006== Releasing lock... [2025-01-22 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:56:05 [end_date_ymd] => 2025-01-22 07:56:05 [RateCDR] => 1 ) [2025-01-22 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:56:05' and `end` < '2025-01-22 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:56:18] Production.INFO: count ==170 [2025-01-22 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:56:05 - End Time 2025-01-22 07:56:05 [2025-01-22 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303605', 'tblTempUsageDetail_20' ) start [2025-01-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303605', 'tblTempUsageDetail_20' ) end [2025-01-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303605', 'tblTempVendorCDR_20' ) start [2025-01-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303605', 'tblTempVendorCDR_20' ) end [2025-01-22 07:56:18] Production.INFO: ProcessCDR(1,14303605,1,1,2) [2025-01-22 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303605', 'tblTempUsageDetail_20' ) start [2025-01-22 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303605', 'tblTempUsageDetail_20' ) end [2025-01-22 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:56:21] Production.INFO: ==7117== Releasing lock... [2025-01-22 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:57:05 [end_date_ymd] => 2025-01-22 07:57:05 [RateCDR] => 1 ) [2025-01-22 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:57:05' and `end` < '2025-01-22 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:57:19] Production.INFO: count ==175 [2025-01-22 07:57:19] Production.ERROR: pbx CDR StartTime 2025-01-22 04:57:05 - End Time 2025-01-22 07:57:05 [2025-01-22 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303610', 'tblTempUsageDetail_20' ) start [2025-01-22 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303610', 'tblTempUsageDetail_20' ) end [2025-01-22 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303610', 'tblTempVendorCDR_20' ) start [2025-01-22 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303610', 'tblTempVendorCDR_20' ) end [2025-01-22 07:57:19] Production.INFO: ProcessCDR(1,14303610,1,1,2) [2025-01-22 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303610', 'tblTempUsageDetail_20' ) start [2025-01-22 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303610', 'tblTempUsageDetail_20' ) end [2025-01-22 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:57:23] Production.INFO: ==7191== Releasing lock... [2025-01-22 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:57:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:58:04 [end_date_ymd] => 2025-01-22 07:58:04 [RateCDR] => 1 ) [2025-01-22 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:58:04' and `end` < '2025-01-22 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:58:18] Production.INFO: count ==177 [2025-01-22 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:58:04 - End Time 2025-01-22 07:58:04 [2025-01-22 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303615', 'tblTempUsageDetail_20' ) start [2025-01-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303615', 'tblTempUsageDetail_20' ) end [2025-01-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303615', 'tblTempVendorCDR_20' ) start [2025-01-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303615', 'tblTempVendorCDR_20' ) end [2025-01-22 07:58:18] Production.INFO: ProcessCDR(1,14303615,1,1,2) [2025-01-22 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303615', 'tblTempUsageDetail_20' ) start [2025-01-22 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303615', 'tblTempUsageDetail_20' ) end [2025-01-22 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:58:22] Production.INFO: ==7270== Releasing lock... [2025-01-22 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 04:59:05 [end_date_ymd] => 2025-01-22 07:59:05 [RateCDR] => 1 ) [2025-01-22 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 04:59:05' and `end` < '2025-01-22 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 07:59:18] Production.INFO: count ==182 [2025-01-22 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 04:59:05 - End Time 2025-01-22 07:59:05 [2025-01-22 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303620', 'tblTempUsageDetail_20' ) start [2025-01-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303620', 'tblTempUsageDetail_20' ) end [2025-01-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303620', 'tblTempVendorCDR_20' ) start [2025-01-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303620', 'tblTempVendorCDR_20' ) end [2025-01-22 07:59:18] Production.INFO: ProcessCDR(1,14303620,1,1,2) [2025-01-22 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303620', 'tblTempUsageDetail_20' ) start [2025-01-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303620', 'tblTempUsageDetail_20' ) end [2025-01-22 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 07:59:21] Production.INFO: ==7356== Releasing lock... [2025-01-22 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:00:06 [end_date_ymd] => 2025-01-22 08:00:06 [RateCDR] => 1 ) [2025-01-22 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:00:06' and `end` < '2025-01-22 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:00:18] Production.INFO: count ==184 [2025-01-22 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:00:06 - End Time 2025-01-22 08:00:06 [2025-01-22 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303624', 'tblTempUsageDetail_20' ) start [2025-01-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303624', 'tblTempUsageDetail_20' ) end [2025-01-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303624', 'tblTempVendorCDR_20' ) start [2025-01-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303624', 'tblTempVendorCDR_20' ) end [2025-01-22 08:00:18] Production.INFO: ProcessCDR(1,14303624,1,1,2) [2025-01-22 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303624', 'tblTempUsageDetail_20' ) start [2025-01-22 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303624', 'tblTempUsageDetail_20' ) end [2025-01-22 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:00:21] Production.INFO: ==7440== Releasing lock... [2025-01-22 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:01:05 [end_date_ymd] => 2025-01-22 08:01:05 [RateCDR] => 1 ) [2025-01-22 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:01:05' and `end` < '2025-01-22 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:01:18] Production.INFO: count ==186 [2025-01-22 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:01:05 - End Time 2025-01-22 08:01:05 [2025-01-22 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303630', 'tblTempUsageDetail_20' ) start [2025-01-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303630', 'tblTempUsageDetail_20' ) end [2025-01-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303630', 'tblTempVendorCDR_20' ) start [2025-01-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303630', 'tblTempVendorCDR_20' ) end [2025-01-22 08:01:18] Production.INFO: ProcessCDR(1,14303630,1,1,2) [2025-01-22 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303630', 'tblTempUsageDetail_20' ) start [2025-01-22 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303630', 'tblTempUsageDetail_20' ) end [2025-01-22 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:01:23] Production.INFO: ==7541== Releasing lock... [2025-01-22 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:02:05 [end_date_ymd] => 2025-01-22 08:02:05 [RateCDR] => 1 ) [2025-01-22 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:02:05' and `end` < '2025-01-22 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:02:18] Production.INFO: count ==186 [2025-01-22 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:02:05 - End Time 2025-01-22 08:02:05 [2025-01-22 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303636', 'tblTempUsageDetail_20' ) start [2025-01-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303636', 'tblTempUsageDetail_20' ) end [2025-01-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303636', 'tblTempVendorCDR_20' ) start [2025-01-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303636', 'tblTempVendorCDR_20' ) end [2025-01-22 08:02:18] Production.INFO: ProcessCDR(1,14303636,1,1,2) [2025-01-22 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303636', 'tblTempUsageDetail_20' ) start [2025-01-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303636', 'tblTempUsageDetail_20' ) end [2025-01-22 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:02:21] Production.INFO: ==7622== Releasing lock... [2025-01-22 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-22 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:03:05 [end_date_ymd] => 2025-01-22 08:03:05 [RateCDR] => 1 ) [2025-01-22 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:03:05' and `end` < '2025-01-22 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:03:17] Production.INFO: count ==193 [2025-01-22 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:03:05 - End Time 2025-01-22 08:03:05 [2025-01-22 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303641', 'tblTempUsageDetail_20' ) start [2025-01-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303641', 'tblTempUsageDetail_20' ) end [2025-01-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303641', 'tblTempVendorCDR_20' ) start [2025-01-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303641', 'tblTempVendorCDR_20' ) end [2025-01-22 08:03:18] Production.INFO: ProcessCDR(1,14303641,1,1,2) [2025-01-22 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303641', 'tblTempUsageDetail_20' ) start [2025-01-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303641', 'tblTempUsageDetail_20' ) end [2025-01-22 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:03:21] Production.INFO: ==7702== Releasing lock... [2025-01-22 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:04:05 [end_date_ymd] => 2025-01-22 08:04:05 [RateCDR] => 1 ) [2025-01-22 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:04:05' and `end` < '2025-01-22 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:04:18] Production.INFO: count ==193 [2025-01-22 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:04:05 - End Time 2025-01-22 08:04:05 [2025-01-22 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303646', 'tblTempUsageDetail_20' ) start [2025-01-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303646', 'tblTempUsageDetail_20' ) end [2025-01-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303646', 'tblTempVendorCDR_20' ) start [2025-01-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303646', 'tblTempVendorCDR_20' ) end [2025-01-22 08:04:18] Production.INFO: ProcessCDR(1,14303646,1,1,2) [2025-01-22 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303646', 'tblTempUsageDetail_20' ) start [2025-01-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303646', 'tblTempUsageDetail_20' ) end [2025-01-22 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:04:21] Production.INFO: ==7787== Releasing lock... [2025-01-22 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:05:04 [end_date_ymd] => 2025-01-22 08:05:04 [RateCDR] => 1 ) [2025-01-22 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:05:04' and `end` < '2025-01-22 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:05:18] Production.INFO: count ==199 [2025-01-22 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:05:04 - End Time 2025-01-22 08:05:04 [2025-01-22 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303651', 'tblTempUsageDetail_20' ) start [2025-01-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303651', 'tblTempUsageDetail_20' ) end [2025-01-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303651', 'tblTempVendorCDR_20' ) start [2025-01-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303651', 'tblTempVendorCDR_20' ) end [2025-01-22 08:05:18] Production.INFO: ProcessCDR(1,14303651,1,1,2) [2025-01-22 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303651', 'tblTempUsageDetail_20' ) start [2025-01-22 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303651', 'tblTempUsageDetail_20' ) end [2025-01-22 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:05:20] Production.INFO: ==7870== Releasing lock... [2025-01-22 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:06:05 [end_date_ymd] => 2025-01-22 08:06:05 [RateCDR] => 1 ) [2025-01-22 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:06:05' and `end` < '2025-01-22 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:06:19] Production.INFO: count ==200 [2025-01-22 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:06:05 - End Time 2025-01-22 08:06:05 [2025-01-22 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303656', 'tblTempUsageDetail_20' ) start [2025-01-22 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303656', 'tblTempUsageDetail_20' ) end [2025-01-22 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303656', 'tblTempVendorCDR_20' ) start [2025-01-22 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303656', 'tblTempVendorCDR_20' ) end [2025-01-22 08:06:19] Production.INFO: ProcessCDR(1,14303656,1,1,2) [2025-01-22 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303656', 'tblTempUsageDetail_20' ) start [2025-01-22 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303656', 'tblTempUsageDetail_20' ) end [2025-01-22 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:06:22] Production.INFO: ==7952== Releasing lock... [2025-01-22 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:07:05 [end_date_ymd] => 2025-01-22 08:07:05 [RateCDR] => 1 ) [2025-01-22 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:07:05' and `end` < '2025-01-22 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:07:19] Production.INFO: count ==202 [2025-01-22 08:07:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:07:05 - End Time 2025-01-22 08:07:05 [2025-01-22 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303661', 'tblTempUsageDetail_20' ) start [2025-01-22 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303661', 'tblTempUsageDetail_20' ) end [2025-01-22 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303661', 'tblTempVendorCDR_20' ) start [2025-01-22 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303661', 'tblTempVendorCDR_20' ) end [2025-01-22 08:07:19] Production.INFO: ProcessCDR(1,14303661,1,1,2) [2025-01-22 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303661', 'tblTempUsageDetail_20' ) start [2025-01-22 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303661', 'tblTempUsageDetail_20' ) end [2025-01-22 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:07:23] Production.INFO: ==8032== Releasing lock... [2025-01-22 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-22 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:08:05 [end_date_ymd] => 2025-01-22 08:08:05 [RateCDR] => 1 ) [2025-01-22 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:08:05' and `end` < '2025-01-22 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:08:17] Production.INFO: count ==212 [2025-01-22 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:08:05 - End Time 2025-01-22 08:08:05 [2025-01-22 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303666', 'tblTempUsageDetail_20' ) start [2025-01-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303666', 'tblTempUsageDetail_20' ) end [2025-01-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303666', 'tblTempVendorCDR_20' ) start [2025-01-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303666', 'tblTempVendorCDR_20' ) end [2025-01-22 08:08:17] Production.INFO: ProcessCDR(1,14303666,1,1,2) [2025-01-22 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303666', 'tblTempUsageDetail_20' ) start [2025-01-22 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303666', 'tblTempUsageDetail_20' ) end [2025-01-22 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:08:22] Production.INFO: ==8117== Releasing lock... [2025-01-22 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:09:05 [end_date_ymd] => 2025-01-22 08:09:05 [RateCDR] => 1 ) [2025-01-22 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:09:05' and `end` < '2025-01-22 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:09:17] Production.INFO: count ==213 [2025-01-22 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:09:05 - End Time 2025-01-22 08:09:05 [2025-01-22 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303671', 'tblTempUsageDetail_20' ) start [2025-01-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303671', 'tblTempUsageDetail_20' ) end [2025-01-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303671', 'tblTempVendorCDR_20' ) start [2025-01-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303671', 'tblTempVendorCDR_20' ) end [2025-01-22 08:09:17] Production.INFO: ProcessCDR(1,14303671,1,1,2) [2025-01-22 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303671', 'tblTempUsageDetail_20' ) start [2025-01-22 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303671', 'tblTempUsageDetail_20' ) end [2025-01-22 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:09:21] Production.INFO: ==8199== Releasing lock... [2025-01-22 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-22 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:10:06 [end_date_ymd] => 2025-01-22 08:10:06 [RateCDR] => 1 ) [2025-01-22 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:10:06' and `end` < '2025-01-22 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:10:19] Production.INFO: count ==239 [2025-01-22 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:10:06 - End Time 2025-01-22 08:10:06 [2025-01-22 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303677', 'tblTempUsageDetail_20' ) start [2025-01-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303677', 'tblTempUsageDetail_20' ) end [2025-01-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303677', 'tblTempVendorCDR_20' ) start [2025-01-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303677', 'tblTempVendorCDR_20' ) end [2025-01-22 08:10:19] Production.INFO: ProcessCDR(1,14303677,1,1,2) [2025-01-22 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303677', 'tblTempUsageDetail_20' ) start [2025-01-22 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303677', 'tblTempUsageDetail_20' ) end [2025-01-22 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:10:22] Production.INFO: ==8282== Releasing lock... [2025-01-22 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:10:22] Production.INFO: 30 MB #Memory Used# [2025-01-22 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:11:05 [end_date_ymd] => 2025-01-22 08:11:05 [RateCDR] => 1 ) [2025-01-22 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:11:05' and `end` < '2025-01-22 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:11:17] Production.INFO: count ==266 [2025-01-22 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:11:05 - End Time 2025-01-22 08:11:05 [2025-01-22 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303682', 'tblTempUsageDetail_20' ) start [2025-01-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303682', 'tblTempUsageDetail_20' ) end [2025-01-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303682', 'tblTempVendorCDR_20' ) start [2025-01-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303682', 'tblTempVendorCDR_20' ) end [2025-01-22 08:11:17] Production.INFO: ProcessCDR(1,14303682,1,1,2) [2025-01-22 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303682', 'tblTempUsageDetail_20' ) start [2025-01-22 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303682', 'tblTempUsageDetail_20' ) end [2025-01-22 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:11:22] Production.INFO: ==8373== Releasing lock... [2025-01-22 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:12:05 [end_date_ymd] => 2025-01-22 08:12:05 [RateCDR] => 1 ) [2025-01-22 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:12:05' and `end` < '2025-01-22 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:12:18] Production.INFO: count ==273 [2025-01-22 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:12:05 - End Time 2025-01-22 08:12:05 [2025-01-22 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303687', 'tblTempUsageDetail_20' ) start [2025-01-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303687', 'tblTempUsageDetail_20' ) end [2025-01-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303687', 'tblTempVendorCDR_20' ) start [2025-01-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303687', 'tblTempVendorCDR_20' ) end [2025-01-22 08:12:18] Production.INFO: ProcessCDR(1,14303687,1,1,2) [2025-01-22 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303687', 'tblTempUsageDetail_20' ) start [2025-01-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303687', 'tblTempUsageDetail_20' ) end [2025-01-22 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:12:21] Production.INFO: ==8497== Releasing lock... [2025-01-22 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-22 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:13:05 [end_date_ymd] => 2025-01-22 08:13:05 [RateCDR] => 1 ) [2025-01-22 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:13:05' and `end` < '2025-01-22 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:13:18] Production.INFO: count ==277 [2025-01-22 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:13:05 - End Time 2025-01-22 08:13:05 [2025-01-22 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303692', 'tblTempUsageDetail_20' ) start [2025-01-22 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303692', 'tblTempUsageDetail_20' ) end [2025-01-22 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303692', 'tblTempVendorCDR_20' ) start [2025-01-22 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303692', 'tblTempVendorCDR_20' ) end [2025-01-22 08:13:19] Production.INFO: ProcessCDR(1,14303692,1,1,2) [2025-01-22 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303692', 'tblTempUsageDetail_20' ) start [2025-01-22 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303692', 'tblTempUsageDetail_20' ) end [2025-01-22 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:13:23] Production.INFO: ==8578== Releasing lock... [2025-01-22 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:14:05 [end_date_ymd] => 2025-01-22 08:14:05 [RateCDR] => 1 ) [2025-01-22 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:14:05' and `end` < '2025-01-22 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:14:18] Production.INFO: count ==289 [2025-01-22 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:14:05 - End Time 2025-01-22 08:14:05 [2025-01-22 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303697', 'tblTempUsageDetail_20' ) start [2025-01-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303697', 'tblTempUsageDetail_20' ) end [2025-01-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303697', 'tblTempVendorCDR_20' ) start [2025-01-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303697', 'tblTempVendorCDR_20' ) end [2025-01-22 08:14:18] Production.INFO: ProcessCDR(1,14303697,1,1,2) [2025-01-22 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303697', 'tblTempUsageDetail_20' ) start [2025-01-22 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303697', 'tblTempUsageDetail_20' ) end [2025-01-22 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:14:23] Production.INFO: ==8660== Releasing lock... [2025-01-22 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:14:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-22 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:15:05 [end_date_ymd] => 2025-01-22 08:15:05 [RateCDR] => 1 ) [2025-01-22 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:15:05' and `end` < '2025-01-22 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:15:18] Production.INFO: count ==292 [2025-01-22 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:15:05 - End Time 2025-01-22 08:15:05 [2025-01-22 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303702', 'tblTempUsageDetail_20' ) start [2025-01-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303702', 'tblTempUsageDetail_20' ) end [2025-01-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303702', 'tblTempVendorCDR_20' ) start [2025-01-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303702', 'tblTempVendorCDR_20' ) end [2025-01-22 08:15:18] Production.INFO: ProcessCDR(1,14303702,1,1,2) [2025-01-22 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303702', 'tblTempUsageDetail_20' ) start [2025-01-22 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303702', 'tblTempUsageDetail_20' ) end [2025-01-22 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:15:22] Production.INFO: ==8744== Releasing lock... [2025-01-22 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-22 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:16:06 [end_date_ymd] => 2025-01-22 08:16:06 [RateCDR] => 1 ) [2025-01-22 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:16:06' and `end` < '2025-01-22 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:16:18] Production.INFO: count ==305 [2025-01-22 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:16:06 - End Time 2025-01-22 08:16:06 [2025-01-22 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303707', 'tblTempUsageDetail_20' ) start [2025-01-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303707', 'tblTempUsageDetail_20' ) end [2025-01-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303707', 'tblTempVendorCDR_20' ) start [2025-01-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303707', 'tblTempVendorCDR_20' ) end [2025-01-22 08:16:18] Production.INFO: ProcessCDR(1,14303707,1,1,2) [2025-01-22 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303707', 'tblTempUsageDetail_20' ) start [2025-01-22 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303707', 'tblTempUsageDetail_20' ) end [2025-01-22 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:16:23] Production.INFO: ==8832== Releasing lock... [2025-01-22 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:17:06 [end_date_ymd] => 2025-01-22 08:17:06 [RateCDR] => 1 ) [2025-01-22 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:17:06' and `end` < '2025-01-22 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:17:18] Production.INFO: count ==312 [2025-01-22 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:17:06 - End Time 2025-01-22 08:17:06 [2025-01-22 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303712', 'tblTempUsageDetail_20' ) start [2025-01-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303712', 'tblTempUsageDetail_20' ) end [2025-01-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303712', 'tblTempVendorCDR_20' ) start [2025-01-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303712', 'tblTempVendorCDR_20' ) end [2025-01-22 08:17:18] Production.INFO: ProcessCDR(1,14303712,1,1,2) [2025-01-22 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303712', 'tblTempUsageDetail_20' ) start [2025-01-22 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303712', 'tblTempUsageDetail_20' ) end [2025-01-22 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:17:23] Production.INFO: ==8921== Releasing lock... [2025-01-22 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:18:05 [end_date_ymd] => 2025-01-22 08:18:05 [RateCDR] => 1 ) [2025-01-22 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:18:05' and `end` < '2025-01-22 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:18:18] Production.INFO: count ==312 [2025-01-22 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:18:05 - End Time 2025-01-22 08:18:05 [2025-01-22 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303717', 'tblTempUsageDetail_20' ) start [2025-01-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303717', 'tblTempUsageDetail_20' ) end [2025-01-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303717', 'tblTempVendorCDR_20' ) start [2025-01-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303717', 'tblTempVendorCDR_20' ) end [2025-01-22 08:18:18] Production.INFO: ProcessCDR(1,14303717,1,1,2) [2025-01-22 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303717', 'tblTempUsageDetail_20' ) start [2025-01-22 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303717', 'tblTempUsageDetail_20' ) end [2025-01-22 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:18:21] Production.INFO: ==9021== Releasing lock... [2025-01-22 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:19:05 [end_date_ymd] => 2025-01-22 08:19:05 [RateCDR] => 1 ) [2025-01-22 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:19:05' and `end` < '2025-01-22 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:19:18] Production.INFO: count ==325 [2025-01-22 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:19:05 - End Time 2025-01-22 08:19:05 [2025-01-22 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303722', 'tblTempUsageDetail_20' ) start [2025-01-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303722', 'tblTempUsageDetail_20' ) end [2025-01-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303722', 'tblTempVendorCDR_20' ) start [2025-01-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303722', 'tblTempVendorCDR_20' ) end [2025-01-22 08:19:18] Production.INFO: ProcessCDR(1,14303722,1,1,2) [2025-01-22 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303722', 'tblTempUsageDetail_20' ) start [2025-01-22 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303722', 'tblTempUsageDetail_20' ) end [2025-01-22 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:19:23] Production.INFO: ==9105== Releasing lock... [2025-01-22 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:19:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:20:06 [end_date_ymd] => 2025-01-22 08:20:06 [RateCDR] => 1 ) [2025-01-22 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:20:06' and `end` < '2025-01-22 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:20:18] Production.INFO: count ==343 [2025-01-22 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:20:06 - End Time 2025-01-22 08:20:06 [2025-01-22 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303728', 'tblTempUsageDetail_20' ) start [2025-01-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303728', 'tblTempUsageDetail_20' ) end [2025-01-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303728', 'tblTempVendorCDR_20' ) start [2025-01-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303728', 'tblTempVendorCDR_20' ) end [2025-01-22 08:20:18] Production.INFO: ProcessCDR(1,14303728,1,1,2) [2025-01-22 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303728', 'tblTempUsageDetail_20' ) start [2025-01-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303728', 'tblTempUsageDetail_20' ) end [2025-01-22 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:20:22] Production.INFO: ==9195== Releasing lock... [2025-01-22 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-22 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:21:05 [end_date_ymd] => 2025-01-22 08:21:05 [RateCDR] => 1 ) [2025-01-22 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:21:05' and `end` < '2025-01-22 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:21:18] Production.INFO: count ==365 [2025-01-22 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:21:05 - End Time 2025-01-22 08:21:05 [2025-01-22 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303733', 'tblTempUsageDetail_20' ) start [2025-01-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303733', 'tblTempUsageDetail_20' ) end [2025-01-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303733', 'tblTempVendorCDR_20' ) start [2025-01-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303733', 'tblTempVendorCDR_20' ) end [2025-01-22 08:21:18] Production.INFO: ProcessCDR(1,14303733,1,1,2) [2025-01-22 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303733', 'tblTempUsageDetail_20' ) start [2025-01-22 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303733', 'tblTempUsageDetail_20' ) end [2025-01-22 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:21:21] Production.INFO: ==9287== Releasing lock... [2025-01-22 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-22 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:22:05 [end_date_ymd] => 2025-01-22 08:22:05 [RateCDR] => 1 ) [2025-01-22 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:22:05' and `end` < '2025-01-22 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:22:18] Production.INFO: count ==375 [2025-01-22 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:22:05 - End Time 2025-01-22 08:22:05 [2025-01-22 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303738', 'tblTempUsageDetail_20' ) start [2025-01-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303738', 'tblTempUsageDetail_20' ) end [2025-01-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303738', 'tblTempVendorCDR_20' ) start [2025-01-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303738', 'tblTempVendorCDR_20' ) end [2025-01-22 08:22:18] Production.INFO: ProcessCDR(1,14303738,1,1,2) [2025-01-22 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303738', 'tblTempUsageDetail_20' ) start [2025-01-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303738', 'tblTempUsageDetail_20' ) end [2025-01-22 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:22:21] Production.INFO: ==9372== Releasing lock... [2025-01-22 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:22:21] Production.INFO: 31 MB #Memory Used# [2025-01-22 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:23:05 [end_date_ymd] => 2025-01-22 08:23:05 [RateCDR] => 1 ) [2025-01-22 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:23:05' and `end` < '2025-01-22 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:23:17] Production.INFO: count ==381 [2025-01-22 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:23:05 - End Time 2025-01-22 08:23:05 [2025-01-22 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303742', 'tblTempUsageDetail_20' ) start [2025-01-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303742', 'tblTempUsageDetail_20' ) end [2025-01-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303742', 'tblTempVendorCDR_20' ) start [2025-01-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303742', 'tblTempVendorCDR_20' ) end [2025-01-22 08:23:18] Production.INFO: ProcessCDR(1,14303742,1,1,2) [2025-01-22 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303742', 'tblTempUsageDetail_20' ) start [2025-01-22 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303742', 'tblTempUsageDetail_20' ) end [2025-01-22 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:23:22] Production.INFO: ==9451== Releasing lock... [2025-01-22 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-22 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:24:06 [end_date_ymd] => 2025-01-22 08:24:06 [RateCDR] => 1 ) [2025-01-22 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:24:06' and `end` < '2025-01-22 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:24:20] Production.INFO: count ==381 [2025-01-22 08:24:20] Production.ERROR: pbx CDR StartTime 2025-01-22 05:24:06 - End Time 2025-01-22 08:24:06 [2025-01-22 08:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303748', 'tblTempUsageDetail_20' ) start [2025-01-22 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303748', 'tblTempUsageDetail_20' ) end [2025-01-22 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303748', 'tblTempVendorCDR_20' ) start [2025-01-22 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303748', 'tblTempVendorCDR_20' ) end [2025-01-22 08:24:20] Production.INFO: ProcessCDR(1,14303748,1,1,2) [2025-01-22 08:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303748', 'tblTempUsageDetail_20' ) start [2025-01-22 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303748', 'tblTempUsageDetail_20' ) end [2025-01-22 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:24:23] Production.INFO: ==9537== Releasing lock... [2025-01-22 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-22 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:25:06 [end_date_ymd] => 2025-01-22 08:25:06 [RateCDR] => 1 ) [2025-01-22 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:25:06' and `end` < '2025-01-22 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:25:18] Production.INFO: count ==384 [2025-01-22 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:25:06 - End Time 2025-01-22 08:25:06 [2025-01-22 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303753', 'tblTempUsageDetail_20' ) start [2025-01-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303753', 'tblTempUsageDetail_20' ) end [2025-01-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303753', 'tblTempVendorCDR_20' ) start [2025-01-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303753', 'tblTempVendorCDR_20' ) end [2025-01-22 08:25:18] Production.INFO: ProcessCDR(1,14303753,1,1,2) [2025-01-22 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303753', 'tblTempUsageDetail_20' ) start [2025-01-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303753', 'tblTempUsageDetail_20' ) end [2025-01-22 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:25:21] Production.INFO: ==9622== Releasing lock... [2025-01-22 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-22 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:26:04 [end_date_ymd] => 2025-01-22 08:26:04 [RateCDR] => 1 ) [2025-01-22 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:26:04' and `end` < '2025-01-22 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:26:17] Production.INFO: count ==384 [2025-01-22 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:26:04 - End Time 2025-01-22 08:26:04 [2025-01-22 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303758', 'tblTempUsageDetail_20' ) start [2025-01-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303758', 'tblTempUsageDetail_20' ) end [2025-01-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303758', 'tblTempVendorCDR_20' ) start [2025-01-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303758', 'tblTempVendorCDR_20' ) end [2025-01-22 08:26:17] Production.INFO: ProcessCDR(1,14303758,1,1,2) [2025-01-22 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303758', 'tblTempUsageDetail_20' ) start [2025-01-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303758', 'tblTempUsageDetail_20' ) end [2025-01-22 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:26:20] Production.INFO: ==9702== Releasing lock... [2025-01-22 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:26:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-22 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:27:05 [end_date_ymd] => 2025-01-22 08:27:05 [RateCDR] => 1 ) [2025-01-22 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:27:05' and `end` < '2025-01-22 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:27:17] Production.INFO: count ==388 [2025-01-22 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:27:05 - End Time 2025-01-22 08:27:05 [2025-01-22 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303763', 'tblTempUsageDetail_20' ) start [2025-01-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303763', 'tblTempUsageDetail_20' ) end [2025-01-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303763', 'tblTempVendorCDR_20' ) start [2025-01-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303763', 'tblTempVendorCDR_20' ) end [2025-01-22 08:27:18] Production.INFO: ProcessCDR(1,14303763,1,1,2) [2025-01-22 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303763', 'tblTempUsageDetail_20' ) start [2025-01-22 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303763', 'tblTempUsageDetail_20' ) end [2025-01-22 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:27:22] Production.INFO: ==9831== Releasing lock... [2025-01-22 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-22 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:28:06 [end_date_ymd] => 2025-01-22 08:28:06 [RateCDR] => 1 ) [2025-01-22 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:28:06' and `end` < '2025-01-22 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:28:18] Production.INFO: count ==396 [2025-01-22 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:28:06 - End Time 2025-01-22 08:28:06 [2025-01-22 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303768', 'tblTempUsageDetail_20' ) start [2025-01-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303768', 'tblTempUsageDetail_20' ) end [2025-01-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303768', 'tblTempVendorCDR_20' ) start [2025-01-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303768', 'tblTempVendorCDR_20' ) end [2025-01-22 08:28:18] Production.INFO: ProcessCDR(1,14303768,1,1,2) [2025-01-22 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303768', 'tblTempUsageDetail_20' ) start [2025-01-22 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303768', 'tblTempUsageDetail_20' ) end [2025-01-22 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:28:22] Production.INFO: ==9911== Releasing lock... [2025-01-22 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-22 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:29:05 [end_date_ymd] => 2025-01-22 08:29:05 [RateCDR] => 1 ) [2025-01-22 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:29:05' and `end` < '2025-01-22 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:29:17] Production.INFO: count ==402 [2025-01-22 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:29:05 - End Time 2025-01-22 08:29:05 [2025-01-22 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303773', 'tblTempUsageDetail_20' ) start [2025-01-22 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303773', 'tblTempUsageDetail_20' ) end [2025-01-22 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303773', 'tblTempVendorCDR_20' ) start [2025-01-22 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303773', 'tblTempVendorCDR_20' ) end [2025-01-22 08:29:17] Production.INFO: ProcessCDR(1,14303773,1,1,2) [2025-01-22 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303773', 'tblTempUsageDetail_20' ) start [2025-01-22 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303773', 'tblTempUsageDetail_20' ) end [2025-01-22 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:29:22] Production.INFO: ==9997== Releasing lock... [2025-01-22 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-22 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:30:06 [end_date_ymd] => 2025-01-22 08:30:06 [RateCDR] => 1 ) [2025-01-22 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:30:06' and `end` < '2025-01-22 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:30:19] Production.INFO: count ==426 [2025-01-22 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:30:06 - End Time 2025-01-22 08:30:06 [2025-01-22 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303779', 'tblTempUsageDetail_20' ) start [2025-01-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303779', 'tblTempUsageDetail_20' ) end [2025-01-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303779', 'tblTempVendorCDR_20' ) start [2025-01-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303779', 'tblTempVendorCDR_20' ) end [2025-01-22 08:30:19] Production.INFO: ProcessCDR(1,14303779,1,1,2) [2025-01-22 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303779', 'tblTempUsageDetail_20' ) start [2025-01-22 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303779', 'tblTempUsageDetail_20' ) end [2025-01-22 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:30:24] Production.INFO: ==10083== Releasing lock... [2025-01-22 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-22 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:31:05 [end_date_ymd] => 2025-01-22 08:31:05 [RateCDR] => 1 ) [2025-01-22 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:31:05' and `end` < '2025-01-22 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:31:18] Production.INFO: count ==469 [2025-01-22 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:31:05 - End Time 2025-01-22 08:31:05 [2025-01-22 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303784', 'tblTempUsageDetail_20' ) start [2025-01-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303784', 'tblTempUsageDetail_20' ) end [2025-01-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303784', 'tblTempVendorCDR_20' ) start [2025-01-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303784', 'tblTempVendorCDR_20' ) end [2025-01-22 08:31:18] Production.INFO: ProcessCDR(1,14303784,1,1,2) [2025-01-22 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303784', 'tblTempUsageDetail_20' ) start [2025-01-22 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303784', 'tblTempUsageDetail_20' ) end [2025-01-22 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:31:22] Production.INFO: ==10173== Releasing lock... [2025-01-22 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-22 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:32:06 [end_date_ymd] => 2025-01-22 08:32:06 [RateCDR] => 1 ) [2025-01-22 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:32:06' and `end` < '2025-01-22 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:32:18] Production.INFO: count ==470 [2025-01-22 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:32:06 - End Time 2025-01-22 08:32:06 [2025-01-22 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303789', 'tblTempUsageDetail_20' ) start [2025-01-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303789', 'tblTempUsageDetail_20' ) end [2025-01-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303789', 'tblTempVendorCDR_20' ) start [2025-01-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303789', 'tblTempVendorCDR_20' ) end [2025-01-22 08:32:18] Production.INFO: ProcessCDR(1,14303789,1,1,2) [2025-01-22 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303789', 'tblTempUsageDetail_20' ) start [2025-01-22 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303789', 'tblTempUsageDetail_20' ) end [2025-01-22 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:32:22] Production.INFO: ==10264== Releasing lock... [2025-01-22 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:32:22] Production.INFO: 32 MB #Memory Used# [2025-01-22 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:33:05 [end_date_ymd] => 2025-01-22 08:33:05 [RateCDR] => 1 ) [2025-01-22 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:33:05' and `end` < '2025-01-22 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:33:18] Production.INFO: count ==478 [2025-01-22 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:33:05 - End Time 2025-01-22 08:33:05 [2025-01-22 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303794', 'tblTempUsageDetail_20' ) start [2025-01-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303794', 'tblTempUsageDetail_20' ) end [2025-01-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303794', 'tblTempVendorCDR_20' ) start [2025-01-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303794', 'tblTempVendorCDR_20' ) end [2025-01-22 08:33:18] Production.INFO: ProcessCDR(1,14303794,1,1,2) [2025-01-22 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303794', 'tblTempUsageDetail_20' ) start [2025-01-22 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303794', 'tblTempUsageDetail_20' ) end [2025-01-22 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:33:22] Production.INFO: ==10345== Releasing lock... [2025-01-22 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-22 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:34:05 [end_date_ymd] => 2025-01-22 08:34:05 [RateCDR] => 1 ) [2025-01-22 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:34:05' and `end` < '2025-01-22 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:34:17] Production.INFO: count ==482 [2025-01-22 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:34:05 - End Time 2025-01-22 08:34:05 [2025-01-22 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303799', 'tblTempUsageDetail_20' ) start [2025-01-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303799', 'tblTempUsageDetail_20' ) end [2025-01-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303799', 'tblTempVendorCDR_20' ) start [2025-01-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303799', 'tblTempVendorCDR_20' ) end [2025-01-22 08:34:18] Production.INFO: ProcessCDR(1,14303799,1,1,2) [2025-01-22 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303799', 'tblTempUsageDetail_20' ) start [2025-01-22 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303799', 'tblTempUsageDetail_20' ) end [2025-01-22 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:34:21] Production.INFO: ==10434== Releasing lock... [2025-01-22 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:34:21] Production.INFO: 32 MB #Memory Used# [2025-01-22 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:35:05 [end_date_ymd] => 2025-01-22 08:35:05 [RateCDR] => 1 ) [2025-01-22 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:35:05' and `end` < '2025-01-22 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:35:17] Production.INFO: count ==489 [2025-01-22 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:35:05 - End Time 2025-01-22 08:35:05 [2025-01-22 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303804', 'tblTempUsageDetail_20' ) start [2025-01-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303804', 'tblTempUsageDetail_20' ) end [2025-01-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303804', 'tblTempVendorCDR_20' ) start [2025-01-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303804', 'tblTempVendorCDR_20' ) end [2025-01-22 08:35:17] Production.INFO: ProcessCDR(1,14303804,1,1,2) [2025-01-22 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303804', 'tblTempUsageDetail_20' ) start [2025-01-22 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303804', 'tblTempUsageDetail_20' ) end [2025-01-22 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:35:22] Production.INFO: ==10521== Releasing lock... [2025-01-22 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-22 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:36:05 [end_date_ymd] => 2025-01-22 08:36:05 [RateCDR] => 1 ) [2025-01-22 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:36:05' and `end` < '2025-01-22 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:36:18] Production.INFO: count ==499 [2025-01-22 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:36:05 - End Time 2025-01-22 08:36:05 [2025-01-22 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303809', 'tblTempUsageDetail_20' ) start [2025-01-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303809', 'tblTempUsageDetail_20' ) end [2025-01-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303809', 'tblTempVendorCDR_20' ) start [2025-01-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303809', 'tblTempVendorCDR_20' ) end [2025-01-22 08:36:18] Production.INFO: ProcessCDR(1,14303809,1,1,2) [2025-01-22 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303809', 'tblTempUsageDetail_20' ) start [2025-01-22 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303809', 'tblTempUsageDetail_20' ) end [2025-01-22 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:36:23] Production.INFO: ==10602== Releasing lock... [2025-01-22 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-22 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:37:05 [end_date_ymd] => 2025-01-22 08:37:05 [RateCDR] => 1 ) [2025-01-22 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:37:05' and `end` < '2025-01-22 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:37:18] Production.INFO: count ==509 [2025-01-22 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:37:05 - End Time 2025-01-22 08:37:05 [2025-01-22 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303814', 'tblTempUsageDetail_20' ) start [2025-01-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303814', 'tblTempUsageDetail_20' ) end [2025-01-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303814', 'tblTempVendorCDR_20' ) start [2025-01-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303814', 'tblTempVendorCDR_20' ) end [2025-01-22 08:37:18] Production.INFO: ProcessCDR(1,14303814,1,1,2) [2025-01-22 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303814', 'tblTempUsageDetail_20' ) start [2025-01-22 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303814', 'tblTempUsageDetail_20' ) end [2025-01-22 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:37:23] Production.INFO: ==10686== Releasing lock... [2025-01-22 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-22 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:38:05 [end_date_ymd] => 2025-01-22 08:38:05 [RateCDR] => 1 ) [2025-01-22 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:38:05' and `end` < '2025-01-22 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:38:18] Production.INFO: count ==509 [2025-01-22 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:38:05 - End Time 2025-01-22 08:38:05 [2025-01-22 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303819', 'tblTempUsageDetail_20' ) start [2025-01-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303819', 'tblTempUsageDetail_20' ) end [2025-01-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303819', 'tblTempVendorCDR_20' ) start [2025-01-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303819', 'tblTempVendorCDR_20' ) end [2025-01-22 08:38:18] Production.INFO: ProcessCDR(1,14303819,1,1,2) [2025-01-22 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303819', 'tblTempUsageDetail_20' ) start [2025-01-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303819', 'tblTempUsageDetail_20' ) end [2025-01-22 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:38:21] Production.INFO: ==10773== Releasing lock... [2025-01-22 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-22 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:39:05 [end_date_ymd] => 2025-01-22 08:39:05 [RateCDR] => 1 ) [2025-01-22 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:39:05' and `end` < '2025-01-22 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:39:18] Production.INFO: count ==526 [2025-01-22 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:39:05 - End Time 2025-01-22 08:39:05 [2025-01-22 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303824', 'tblTempUsageDetail_20' ) start [2025-01-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303824', 'tblTempUsageDetail_20' ) end [2025-01-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303824', 'tblTempVendorCDR_20' ) start [2025-01-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303824', 'tblTempVendorCDR_20' ) end [2025-01-22 08:39:18] Production.INFO: ProcessCDR(1,14303824,1,1,2) [2025-01-22 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303824', 'tblTempUsageDetail_20' ) start [2025-01-22 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303824', 'tblTempUsageDetail_20' ) end [2025-01-22 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:39:23] Production.INFO: ==10855== Releasing lock... [2025-01-22 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:39:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-22 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:40:05 [end_date_ymd] => 2025-01-22 08:40:05 [RateCDR] => 1 ) [2025-01-22 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:40:05' and `end` < '2025-01-22 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:40:17] Production.INFO: count ==534 [2025-01-22 08:40:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:40:05 - End Time 2025-01-22 08:40:05 [2025-01-22 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303828', 'tblTempUsageDetail_20' ) start [2025-01-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303828', 'tblTempUsageDetail_20' ) end [2025-01-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303828', 'tblTempVendorCDR_20' ) start [2025-01-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303828', 'tblTempVendorCDR_20' ) end [2025-01-22 08:40:18] Production.INFO: ProcessCDR(1,14303828,1,1,2) [2025-01-22 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303828', 'tblTempUsageDetail_20' ) start [2025-01-22 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303828', 'tblTempUsageDetail_20' ) end [2025-01-22 08:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:40:20] Production.INFO: ==10942== Releasing lock... [2025-01-22 08:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:40:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-22 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:41:05 [end_date_ymd] => 2025-01-22 08:41:05 [RateCDR] => 1 ) [2025-01-22 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:41:05' and `end` < '2025-01-22 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:41:17] Production.INFO: count ==574 [2025-01-22 08:41:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:41:05 - End Time 2025-01-22 08:41:05 [2025-01-22 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303835', 'tblTempUsageDetail_20' ) start [2025-01-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303835', 'tblTempUsageDetail_20' ) end [2025-01-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303835', 'tblTempVendorCDR_20' ) start [2025-01-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303835', 'tblTempVendorCDR_20' ) end [2025-01-22 08:41:17] Production.INFO: ProcessCDR(1,14303835,1,1,2) [2025-01-22 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303835', 'tblTempUsageDetail_20' ) start [2025-01-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303835', 'tblTempUsageDetail_20' ) end [2025-01-22 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:41:20] Production.INFO: ==11030== Releasing lock... [2025-01-22 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:41:20] Production.INFO: 33 MB #Memory Used# [2025-01-22 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:42:05 [end_date_ymd] => 2025-01-22 08:42:05 [RateCDR] => 1 ) [2025-01-22 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:42:05' and `end` < '2025-01-22 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:42:18] Production.INFO: count ==580 [2025-01-22 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:42:05 - End Time 2025-01-22 08:42:05 [2025-01-22 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303840', 'tblTempUsageDetail_20' ) start [2025-01-22 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303840', 'tblTempUsageDetail_20' ) end [2025-01-22 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303840', 'tblTempVendorCDR_20' ) start [2025-01-22 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303840', 'tblTempVendorCDR_20' ) end [2025-01-22 08:42:18] Production.INFO: ProcessCDR(1,14303840,1,1,2) [2025-01-22 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303840', 'tblTempUsageDetail_20' ) start [2025-01-22 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303840', 'tblTempUsageDetail_20' ) end [2025-01-22 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:42:21] Production.INFO: ==11112== Releasing lock... [2025-01-22 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:42:21] Production.INFO: 33 MB #Memory Used# [2025-01-22 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:43:05 [end_date_ymd] => 2025-01-22 08:43:05 [RateCDR] => 1 ) [2025-01-22 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:43:05' and `end` < '2025-01-22 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:43:18] Production.INFO: count ==595 [2025-01-22 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:43:05 - End Time 2025-01-22 08:43:05 [2025-01-22 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303845', 'tblTempUsageDetail_20' ) start [2025-01-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303845', 'tblTempUsageDetail_20' ) end [2025-01-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303845', 'tblTempVendorCDR_20' ) start [2025-01-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303845', 'tblTempVendorCDR_20' ) end [2025-01-22 08:43:18] Production.INFO: ProcessCDR(1,14303845,1,1,2) [2025-01-22 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303845', 'tblTempUsageDetail_20' ) start [2025-01-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303845', 'tblTempUsageDetail_20' ) end [2025-01-22 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:43:21] Production.INFO: ==11236== Releasing lock... [2025-01-22 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:43:21] Production.INFO: 33 MB #Memory Used# [2025-01-22 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:44:05 [end_date_ymd] => 2025-01-22 08:44:05 [RateCDR] => 1 ) [2025-01-22 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:44:05' and `end` < '2025-01-22 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:44:17] Production.INFO: count ==606 [2025-01-22 08:44:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:44:05 - End Time 2025-01-22 08:44:05 [2025-01-22 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303850', 'tblTempUsageDetail_20' ) start [2025-01-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303850', 'tblTempUsageDetail_20' ) end [2025-01-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303850', 'tblTempVendorCDR_20' ) start [2025-01-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303850', 'tblTempVendorCDR_20' ) end [2025-01-22 08:44:17] Production.INFO: ProcessCDR(1,14303850,1,1,2) [2025-01-22 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303850', 'tblTempUsageDetail_20' ) start [2025-01-22 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303850', 'tblTempUsageDetail_20' ) end [2025-01-22 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:44:22] Production.INFO: ==11317== Releasing lock... [2025-01-22 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:45:05 [end_date_ymd] => 2025-01-22 08:45:05 [RateCDR] => 1 ) [2025-01-22 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:45:05' and `end` < '2025-01-22 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:45:18] Production.INFO: count ==609 [2025-01-22 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:45:05 - End Time 2025-01-22 08:45:05 [2025-01-22 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303855', 'tblTempUsageDetail_20' ) start [2025-01-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303855', 'tblTempUsageDetail_20' ) end [2025-01-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303855', 'tblTempVendorCDR_20' ) start [2025-01-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303855', 'tblTempVendorCDR_20' ) end [2025-01-22 08:45:18] Production.INFO: ProcessCDR(1,14303855,1,1,2) [2025-01-22 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303855', 'tblTempUsageDetail_20' ) start [2025-01-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303855', 'tblTempUsageDetail_20' ) end [2025-01-22 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:45:21] Production.INFO: ==11402== Releasing lock... [2025-01-22 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:46:05 [end_date_ymd] => 2025-01-22 08:46:05 [RateCDR] => 1 ) [2025-01-22 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:46:05' and `end` < '2025-01-22 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:46:19] Production.INFO: count ==612 [2025-01-22 08:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:46:05 - End Time 2025-01-22 08:46:05 [2025-01-22 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303860', 'tblTempUsageDetail_20' ) start [2025-01-22 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303860', 'tblTempUsageDetail_20' ) end [2025-01-22 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303860', 'tblTempVendorCDR_20' ) start [2025-01-22 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303860', 'tblTempVendorCDR_20' ) end [2025-01-22 08:46:19] Production.INFO: ProcessCDR(1,14303860,1,1,2) [2025-01-22 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303860', 'tblTempUsageDetail_20' ) start [2025-01-22 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303860', 'tblTempUsageDetail_20' ) end [2025-01-22 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:46:24] Production.INFO: ==11484== Releasing lock... [2025-01-22 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:46:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:47:05 [end_date_ymd] => 2025-01-22 08:47:05 [RateCDR] => 1 ) [2025-01-22 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:47:05' and `end` < '2025-01-22 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:47:17] Production.INFO: count ==622 [2025-01-22 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:47:05 - End Time 2025-01-22 08:47:05 [2025-01-22 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303865', 'tblTempUsageDetail_20' ) start [2025-01-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303865', 'tblTempUsageDetail_20' ) end [2025-01-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303865', 'tblTempVendorCDR_20' ) start [2025-01-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303865', 'tblTempVendorCDR_20' ) end [2025-01-22 08:47:17] Production.INFO: ProcessCDR(1,14303865,1,1,2) [2025-01-22 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303865', 'tblTempUsageDetail_20' ) start [2025-01-22 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303865', 'tblTempUsageDetail_20' ) end [2025-01-22 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:47:22] Production.INFO: ==11572== Releasing lock... [2025-01-22 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:48:05 [end_date_ymd] => 2025-01-22 08:48:05 [RateCDR] => 1 ) [2025-01-22 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:48:05' and `end` < '2025-01-22 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:48:18] Production.INFO: count ==625 [2025-01-22 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:48:05 - End Time 2025-01-22 08:48:05 [2025-01-22 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303870', 'tblTempUsageDetail_20' ) start [2025-01-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303870', 'tblTempUsageDetail_20' ) end [2025-01-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303870', 'tblTempVendorCDR_20' ) start [2025-01-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303870', 'tblTempVendorCDR_20' ) end [2025-01-22 08:48:19] Production.INFO: ProcessCDR(1,14303870,1,1,2) [2025-01-22 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303870', 'tblTempUsageDetail_20' ) start [2025-01-22 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303870', 'tblTempUsageDetail_20' ) end [2025-01-22 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:48:22] Production.INFO: ==11663== Releasing lock... [2025-01-22 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-22 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:49:05 [end_date_ymd] => 2025-01-22 08:49:05 [RateCDR] => 1 ) [2025-01-22 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:49:05' and `end` < '2025-01-22 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:49:17] Production.INFO: count ==627 [2025-01-22 08:49:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:49:05 - End Time 2025-01-22 08:49:05 [2025-01-22 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303875', 'tblTempUsageDetail_20' ) start [2025-01-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303875', 'tblTempUsageDetail_20' ) end [2025-01-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303875', 'tblTempVendorCDR_20' ) start [2025-01-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303875', 'tblTempVendorCDR_20' ) end [2025-01-22 08:49:17] Production.INFO: ProcessCDR(1,14303875,1,1,2) [2025-01-22 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303875', 'tblTempUsageDetail_20' ) start [2025-01-22 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303875', 'tblTempUsageDetail_20' ) end [2025-01-22 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:49:22] Production.INFO: ==11748== Releasing lock... [2025-01-22 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:50:06 [end_date_ymd] => 2025-01-22 08:50:06 [RateCDR] => 1 ) [2025-01-22 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:50:06' and `end` < '2025-01-22 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:50:19] Production.INFO: count ==647 [2025-01-22 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:50:06 - End Time 2025-01-22 08:50:06 [2025-01-22 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303881', 'tblTempUsageDetail_20' ) start [2025-01-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303881', 'tblTempUsageDetail_20' ) end [2025-01-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303881', 'tblTempVendorCDR_20' ) start [2025-01-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303881', 'tblTempVendorCDR_20' ) end [2025-01-22 08:50:19] Production.INFO: ProcessCDR(1,14303881,1,1,2) [2025-01-22 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303881', 'tblTempUsageDetail_20' ) start [2025-01-22 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303881', 'tblTempUsageDetail_20' ) end [2025-01-22 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:50:23] Production.INFO: ==11828== Releasing lock... [2025-01-22 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:50:23] Production.INFO: 33 MB #Memory Used# [2025-01-22 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:51:05 [end_date_ymd] => 2025-01-22 08:51:05 [RateCDR] => 1 ) [2025-01-22 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:51:05' and `end` < '2025-01-22 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:51:17] Production.INFO: count ==678 [2025-01-22 08:51:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:51:05 - End Time 2025-01-22 08:51:05 [2025-01-22 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303886', 'tblTempUsageDetail_20' ) start [2025-01-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303886', 'tblTempUsageDetail_20' ) end [2025-01-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303886', 'tblTempVendorCDR_20' ) start [2025-01-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303886', 'tblTempVendorCDR_20' ) end [2025-01-22 08:51:17] Production.INFO: ProcessCDR(1,14303886,1,1,2) [2025-01-22 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303886', 'tblTempUsageDetail_20' ) start [2025-01-22 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303886', 'tblTempUsageDetail_20' ) end [2025-01-22 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:51:22] Production.INFO: ==11917== Releasing lock... [2025-01-22 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:51:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:52:06 [end_date_ymd] => 2025-01-22 08:52:06 [RateCDR] => 1 ) [2025-01-22 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:52:06' and `end` < '2025-01-22 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:52:18] Production.INFO: count ==689 [2025-01-22 08:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:52:06 - End Time 2025-01-22 08:52:06 [2025-01-22 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303891', 'tblTempUsageDetail_20' ) start [2025-01-22 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303891', 'tblTempUsageDetail_20' ) end [2025-01-22 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303891', 'tblTempVendorCDR_20' ) start [2025-01-22 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303891', 'tblTempVendorCDR_20' ) end [2025-01-22 08:52:19] Production.INFO: ProcessCDR(1,14303891,1,1,2) [2025-01-22 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303891', 'tblTempUsageDetail_20' ) start [2025-01-22 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303891', 'tblTempUsageDetail_20' ) end [2025-01-22 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:52:23] Production.INFO: ==12002== Releasing lock... [2025-01-22 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:52:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:53:04 [end_date_ymd] => 2025-01-22 08:53:04 [RateCDR] => 1 ) [2025-01-22 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:53:04' and `end` < '2025-01-22 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:53:17] Production.INFO: count ==691 [2025-01-22 08:53:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:53:04 - End Time 2025-01-22 08:53:04 [2025-01-22 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303896', 'tblTempUsageDetail_20' ) start [2025-01-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303896', 'tblTempUsageDetail_20' ) end [2025-01-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303896', 'tblTempVendorCDR_20' ) start [2025-01-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303896', 'tblTempVendorCDR_20' ) end [2025-01-22 08:53:17] Production.INFO: ProcessCDR(1,14303896,1,1,2) [2025-01-22 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303896', 'tblTempUsageDetail_20' ) start [2025-01-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303896', 'tblTempUsageDetail_20' ) end [2025-01-22 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:53:21] Production.INFO: ==12088== Releasing lock... [2025-01-22 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:53:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:54:05 [end_date_ymd] => 2025-01-22 08:54:05 [RateCDR] => 1 ) [2025-01-22 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:54:05' and `end` < '2025-01-22 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:54:17] Production.INFO: count ==705 [2025-01-22 08:54:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:54:05 - End Time 2025-01-22 08:54:05 [2025-01-22 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303901', 'tblTempUsageDetail_20' ) start [2025-01-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303901', 'tblTempUsageDetail_20' ) end [2025-01-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303901', 'tblTempVendorCDR_20' ) start [2025-01-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303901', 'tblTempVendorCDR_20' ) end [2025-01-22 08:54:17] Production.INFO: ProcessCDR(1,14303901,1,1,2) [2025-01-22 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303901', 'tblTempUsageDetail_20' ) start [2025-01-22 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303901', 'tblTempUsageDetail_20' ) end [2025-01-22 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:54:22] Production.INFO: ==12172== Releasing lock... [2025-01-22 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:54:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:55:05 [end_date_ymd] => 2025-01-22 08:55:05 [RateCDR] => 1 ) [2025-01-22 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:55:05' and `end` < '2025-01-22 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:55:18] Production.INFO: count ==712 [2025-01-22 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:55:05 - End Time 2025-01-22 08:55:05 [2025-01-22 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303906', 'tblTempUsageDetail_20' ) start [2025-01-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303906', 'tblTempUsageDetail_20' ) end [2025-01-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303906', 'tblTempVendorCDR_20' ) start [2025-01-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303906', 'tblTempVendorCDR_20' ) end [2025-01-22 08:55:18] Production.INFO: ProcessCDR(1,14303906,1,1,2) [2025-01-22 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303906', 'tblTempUsageDetail_20' ) start [2025-01-22 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303906', 'tblTempUsageDetail_20' ) end [2025-01-22 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:55:23] Production.INFO: ==12254== Releasing lock... [2025-01-22 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:55:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:56:05 [end_date_ymd] => 2025-01-22 08:56:05 [RateCDR] => 1 ) [2025-01-22 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:56:05' and `end` < '2025-01-22 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:56:17] Production.INFO: count ==713 [2025-01-22 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 05:56:05 - End Time 2025-01-22 08:56:05 [2025-01-22 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303911', 'tblTempUsageDetail_20' ) start [2025-01-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303911', 'tblTempUsageDetail_20' ) end [2025-01-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303911', 'tblTempVendorCDR_20' ) start [2025-01-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303911', 'tblTempVendorCDR_20' ) end [2025-01-22 08:56:18] Production.INFO: ProcessCDR(1,14303911,1,1,2) [2025-01-22 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303911', 'tblTempUsageDetail_20' ) start [2025-01-22 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303911', 'tblTempUsageDetail_20' ) end [2025-01-22 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:56:21] Production.INFO: ==12333== Releasing lock... [2025-01-22 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:57:06 [end_date_ymd] => 2025-01-22 08:57:06 [RateCDR] => 1 ) [2025-01-22 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:57:06' and `end` < '2025-01-22 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:57:19] Production.INFO: count ==714 [2025-01-22 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-22 05:57:06 - End Time 2025-01-22 08:57:06 [2025-01-22 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303916', 'tblTempUsageDetail_20' ) start [2025-01-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303916', 'tblTempUsageDetail_20' ) end [2025-01-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303916', 'tblTempVendorCDR_20' ) start [2025-01-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303916', 'tblTempVendorCDR_20' ) end [2025-01-22 08:57:19] Production.INFO: ProcessCDR(1,14303916,1,1,2) [2025-01-22 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303916', 'tblTempUsageDetail_20' ) start [2025-01-22 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303916', 'tblTempUsageDetail_20' ) end [2025-01-22 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:57:23] Production.INFO: ==12425== Releasing lock... [2025-01-22 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:57:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:58:05 [end_date_ymd] => 2025-01-22 08:58:05 [RateCDR] => 1 ) [2025-01-22 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:58:05' and `end` < '2025-01-22 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:58:17] Production.INFO: count ==715 [2025-01-22 08:58:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:58:05 - End Time 2025-01-22 08:58:05 [2025-01-22 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303921', 'tblTempUsageDetail_20' ) start [2025-01-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303921', 'tblTempUsageDetail_20' ) end [2025-01-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303921', 'tblTempVendorCDR_20' ) start [2025-01-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303921', 'tblTempVendorCDR_20' ) end [2025-01-22 08:58:17] Production.INFO: ProcessCDR(1,14303921,1,1,2) [2025-01-22 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303921', 'tblTempUsageDetail_20' ) start [2025-01-22 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303921', 'tblTempUsageDetail_20' ) end [2025-01-22 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:58:21] Production.INFO: ==12547== Releasing lock... [2025-01-22 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:58:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 05:59:05 [end_date_ymd] => 2025-01-22 08:59:05 [RateCDR] => 1 ) [2025-01-22 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 05:59:05' and `end` < '2025-01-22 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 08:59:17] Production.INFO: count ==705 [2025-01-22 08:59:17] Production.ERROR: pbx CDR StartTime 2025-01-22 05:59:05 - End Time 2025-01-22 08:59:05 [2025-01-22 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303926', 'tblTempUsageDetail_20' ) start [2025-01-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303926', 'tblTempUsageDetail_20' ) end [2025-01-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303926', 'tblTempVendorCDR_20' ) start [2025-01-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303926', 'tblTempVendorCDR_20' ) end [2025-01-22 08:59:17] Production.INFO: ProcessCDR(1,14303926,1,1,2) [2025-01-22 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303926', 'tblTempUsageDetail_20' ) start [2025-01-22 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303926', 'tblTempUsageDetail_20' ) end [2025-01-22 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 08:59:22] Production.INFO: ==12624== Releasing lock... [2025-01-22 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:00:06 [end_date_ymd] => 2025-01-22 09:00:06 [RateCDR] => 1 ) [2025-01-22 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:00:06' and `end` < '2025-01-22 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:00:19] Production.INFO: count ==719 [2025-01-22 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:00:06 - End Time 2025-01-22 09:00:06 [2025-01-22 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303932', 'tblTempUsageDetail_20' ) start [2025-01-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303932', 'tblTempUsageDetail_20' ) end [2025-01-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303932', 'tblTempVendorCDR_20' ) start [2025-01-22 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303932', 'tblTempVendorCDR_20' ) end [2025-01-22 09:00:20] Production.INFO: ProcessCDR(1,14303932,1,1,2) [2025-01-22 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303932', 'tblTempUsageDetail_20' ) start [2025-01-22 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303932', 'tblTempUsageDetail_20' ) end [2025-01-22 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:00:23] Production.INFO: ==12709== Releasing lock... [2025-01-22 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:00:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:01:05 [end_date_ymd] => 2025-01-22 09:01:05 [RateCDR] => 1 ) [2025-01-22 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:01:05' and `end` < '2025-01-22 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:01:18] Production.INFO: count ==743 [2025-01-22 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:01:05 - End Time 2025-01-22 09:01:05 [2025-01-22 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303937', 'tblTempUsageDetail_20' ) start [2025-01-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303937', 'tblTempUsageDetail_20' ) end [2025-01-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303937', 'tblTempVendorCDR_20' ) start [2025-01-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303937', 'tblTempVendorCDR_20' ) end [2025-01-22 09:01:18] Production.INFO: ProcessCDR(1,14303937,1,1,2) [2025-01-22 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303937', 'tblTempUsageDetail_20' ) start [2025-01-22 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303937', 'tblTempUsageDetail_20' ) end [2025-01-22 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:01:21] Production.INFO: ==12806== Releasing lock... [2025-01-22 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:01:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:02:05 [end_date_ymd] => 2025-01-22 09:02:05 [RateCDR] => 1 ) [2025-01-22 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:02:05' and `end` < '2025-01-22 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:02:18] Production.INFO: count ==749 [2025-01-22 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:02:05 - End Time 2025-01-22 09:02:05 [2025-01-22 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303942', 'tblTempUsageDetail_20' ) start [2025-01-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303942', 'tblTempUsageDetail_20' ) end [2025-01-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303942', 'tblTempVendorCDR_20' ) start [2025-01-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303942', 'tblTempVendorCDR_20' ) end [2025-01-22 09:02:18] Production.INFO: ProcessCDR(1,14303942,1,1,2) [2025-01-22 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303942', 'tblTempUsageDetail_20' ) start [2025-01-22 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303942', 'tblTempUsageDetail_20' ) end [2025-01-22 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:02:23] Production.INFO: ==12892== Releasing lock... [2025-01-22 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:03:05 [end_date_ymd] => 2025-01-22 09:03:05 [RateCDR] => 1 ) [2025-01-22 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:03:05' and `end` < '2025-01-22 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:03:19] Production.INFO: count ==752 [2025-01-22 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:03:05 - End Time 2025-01-22 09:03:05 [2025-01-22 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303947', 'tblTempUsageDetail_20' ) start [2025-01-22 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303947', 'tblTempUsageDetail_20' ) end [2025-01-22 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303947', 'tblTempVendorCDR_20' ) start [2025-01-22 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303947', 'tblTempVendorCDR_20' ) end [2025-01-22 09:03:19] Production.INFO: ProcessCDR(1,14303947,1,1,2) [2025-01-22 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303947', 'tblTempUsageDetail_20' ) start [2025-01-22 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303947', 'tblTempUsageDetail_20' ) end [2025-01-22 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:03:23] Production.INFO: ==12979== Releasing lock... [2025-01-22 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:03:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:04:05 [end_date_ymd] => 2025-01-22 09:04:05 [RateCDR] => 1 ) [2025-01-22 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:04:05' and `end` < '2025-01-22 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:04:18] Production.INFO: count ==754 [2025-01-22 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:04:05 - End Time 2025-01-22 09:04:05 [2025-01-22 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303952', 'tblTempUsageDetail_20' ) start [2025-01-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303952', 'tblTempUsageDetail_20' ) end [2025-01-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303952', 'tblTempVendorCDR_20' ) start [2025-01-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303952', 'tblTempVendorCDR_20' ) end [2025-01-22 09:04:18] Production.INFO: ProcessCDR(1,14303952,1,1,2) [2025-01-22 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303952', 'tblTempUsageDetail_20' ) start [2025-01-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303952', 'tblTempUsageDetail_20' ) end [2025-01-22 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:04:21] Production.INFO: ==13067== Releasing lock... [2025-01-22 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:05:05 [end_date_ymd] => 2025-01-22 09:05:05 [RateCDR] => 1 ) [2025-01-22 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:05:05' and `end` < '2025-01-22 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:05:24] Production.INFO: count ==765 [2025-01-22 09:05:24] Production.ERROR: pbx CDR StartTime 2025-01-22 06:05:05 - End Time 2025-01-22 09:05:05 [2025-01-22 09:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303957', 'tblTempUsageDetail_20' ) start [2025-01-22 09:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303957', 'tblTempUsageDetail_20' ) end [2025-01-22 09:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303957', 'tblTempVendorCDR_20' ) start [2025-01-22 09:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303957', 'tblTempVendorCDR_20' ) end [2025-01-22 09:05:24] Production.INFO: ProcessCDR(1,14303957,1,1,2) [2025-01-22 09:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303957', 'tblTempUsageDetail_20' ) start [2025-01-22 09:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303957', 'tblTempUsageDetail_20' ) end [2025-01-22 09:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:05:29] Production.INFO: ==13147== Releasing lock... [2025-01-22 09:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:05:29] Production.INFO: 34.5 MB #Memory Used# [2025-01-22 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:06:05 [end_date_ymd] => 2025-01-22 09:06:05 [RateCDR] => 1 ) [2025-01-22 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:06:05' and `end` < '2025-01-22 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:06:19] Production.INFO: count ==771 [2025-01-22 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:06:05 - End Time 2025-01-22 09:06:05 [2025-01-22 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303962', 'tblTempUsageDetail_20' ) start [2025-01-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303962', 'tblTempUsageDetail_20' ) end [2025-01-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303962', 'tblTempVendorCDR_20' ) start [2025-01-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303962', 'tblTempVendorCDR_20' ) end [2025-01-22 09:06:19] Production.INFO: ProcessCDR(1,14303962,1,1,2) [2025-01-22 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303962', 'tblTempUsageDetail_20' ) start [2025-01-22 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303962', 'tblTempUsageDetail_20' ) end [2025-01-22 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:06:23] Production.INFO: ==13231== Releasing lock... [2025-01-22 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:06:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:07:05 [end_date_ymd] => 2025-01-22 09:07:05 [RateCDR] => 1 ) [2025-01-22 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:07:05' and `end` < '2025-01-22 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:07:21] Production.INFO: count ==784 [2025-01-22 09:07:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:07:05 - End Time 2025-01-22 09:07:05 [2025-01-22 09:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303967', 'tblTempUsageDetail_20' ) start [2025-01-22 09:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303967', 'tblTempUsageDetail_20' ) end [2025-01-22 09:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303967', 'tblTempVendorCDR_20' ) start [2025-01-22 09:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303967', 'tblTempVendorCDR_20' ) end [2025-01-22 09:07:21] Production.INFO: ProcessCDR(1,14303967,1,1,2) [2025-01-22 09:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303967', 'tblTempUsageDetail_20' ) start [2025-01-22 09:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303967', 'tblTempUsageDetail_20' ) end [2025-01-22 09:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:07:26] Production.INFO: ==13311== Releasing lock... [2025-01-22 09:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:07:26] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:08:06 [end_date_ymd] => 2025-01-22 09:08:06 [RateCDR] => 1 ) [2025-01-22 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:08:06' and `end` < '2025-01-22 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:08:20] Production.INFO: count ==793 [2025-01-22 09:08:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:08:06 - End Time 2025-01-22 09:08:06 [2025-01-22 09:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303972', 'tblTempUsageDetail_20' ) start [2025-01-22 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303972', 'tblTempUsageDetail_20' ) end [2025-01-22 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303972', 'tblTempVendorCDR_20' ) start [2025-01-22 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303972', 'tblTempVendorCDR_20' ) end [2025-01-22 09:08:20] Production.INFO: ProcessCDR(1,14303972,1,1,2) [2025-01-22 09:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303972', 'tblTempUsageDetail_20' ) start [2025-01-22 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303972', 'tblTempUsageDetail_20' ) end [2025-01-22 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:08:25] Production.INFO: ==13393== Releasing lock... [2025-01-22 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:08:25] Production.INFO: 34 MB #Memory Used# [2025-01-22 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:09:05 [end_date_ymd] => 2025-01-22 09:09:05 [RateCDR] => 1 ) [2025-01-22 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:09:05' and `end` < '2025-01-22 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:09:17] Production.INFO: count ==802 [2025-01-22 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:09:05 - End Time 2025-01-22 09:09:05 [2025-01-22 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303977', 'tblTempUsageDetail_20' ) start [2025-01-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303977', 'tblTempUsageDetail_20' ) end [2025-01-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303977', 'tblTempVendorCDR_20' ) start [2025-01-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303977', 'tblTempVendorCDR_20' ) end [2025-01-22 09:09:18] Production.INFO: ProcessCDR(1,14303977,1,1,2) [2025-01-22 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303977', 'tblTempUsageDetail_20' ) start [2025-01-22 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303977', 'tblTempUsageDetail_20' ) end [2025-01-22 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:09:22] Production.INFO: ==13474== Releasing lock... [2025-01-22 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:09:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:10:06 [end_date_ymd] => 2025-01-22 09:10:06 [RateCDR] => 1 ) [2025-01-22 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:10:06' and `end` < '2025-01-22 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:10:22] Production.INFO: count ==825 [2025-01-22 09:10:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:10:06 - End Time 2025-01-22 09:10:06 [2025-01-22 09:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303983', 'tblTempUsageDetail_20' ) start [2025-01-22 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303983', 'tblTempUsageDetail_20' ) end [2025-01-22 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303983', 'tblTempVendorCDR_20' ) start [2025-01-22 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303983', 'tblTempVendorCDR_20' ) end [2025-01-22 09:10:22] Production.INFO: ProcessCDR(1,14303983,1,1,2) [2025-01-22 09:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303983', 'tblTempUsageDetail_20' ) start [2025-01-22 09:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303983', 'tblTempUsageDetail_20' ) end [2025-01-22 09:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:10:27] Production.INFO: ==13561== Releasing lock... [2025-01-22 09:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:10:27] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:11:05 [end_date_ymd] => 2025-01-22 09:11:05 [RateCDR] => 1 ) [2025-01-22 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:11:05' and `end` < '2025-01-22 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:11:20] Production.INFO: count ==920 [2025-01-22 09:11:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:11:05 - End Time 2025-01-22 09:11:05 [2025-01-22 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303988', 'tblTempUsageDetail_20' ) start [2025-01-22 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303988', 'tblTempUsageDetail_20' ) end [2025-01-22 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303988', 'tblTempVendorCDR_20' ) start [2025-01-22 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303988', 'tblTempVendorCDR_20' ) end [2025-01-22 09:11:20] Production.INFO: ProcessCDR(1,14303988,1,1,2) [2025-01-22 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303988', 'tblTempUsageDetail_20' ) start [2025-01-22 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303988', 'tblTempUsageDetail_20' ) end [2025-01-22 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:11:23] Production.INFO: ==13645== Releasing lock... [2025-01-22 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:11:23] Production.INFO: 35 MB #Memory Used# [2025-01-22 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:12:05 [end_date_ymd] => 2025-01-22 09:12:05 [RateCDR] => 1 ) [2025-01-22 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:12:05' and `end` < '2025-01-22 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:12:21] Production.INFO: count ==931 [2025-01-22 09:12:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:12:05 - End Time 2025-01-22 09:12:05 [2025-01-22 09:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303993', 'tblTempUsageDetail_20' ) start [2025-01-22 09:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303993', 'tblTempUsageDetail_20' ) end [2025-01-22 09:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303993', 'tblTempVendorCDR_20' ) start [2025-01-22 09:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303993', 'tblTempVendorCDR_20' ) end [2025-01-22 09:12:22] Production.INFO: ProcessCDR(1,14303993,1,1,2) [2025-01-22 09:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303993', 'tblTempUsageDetail_20' ) start [2025-01-22 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303993', 'tblTempUsageDetail_20' ) end [2025-01-22 09:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:12:26] Production.INFO: ==13726== Releasing lock... [2025-01-22 09:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:12:26] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:13:04 [end_date_ymd] => 2025-01-22 09:13:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 06:13:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 09:13:19] Production.INFO: count ==943 [2025-01-22 09:13:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:13:04 - End Time 2025-01-22 09:13:04 [2025-01-22 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303998', 'tblTempUsageDetail_20' ) start [2025-01-22 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303998', 'tblTempUsageDetail_20' ) end [2025-01-22 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303998', 'tblTempVendorCDR_20' ) start [2025-01-22 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303998', 'tblTempVendorCDR_20' ) end [2025-01-22 09:13:20] Production.INFO: ProcessCDR(1,14303998,1,1,2) [2025-01-22 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303998', 'tblTempUsageDetail_20' ) start [2025-01-22 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303998', 'tblTempUsageDetail_20' ) end [2025-01-22 09:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:13:25] Production.INFO: ==13842== Releasing lock... [2025-01-22 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:13:25] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:14:05 [end_date_ymd] => 2025-01-22 09:14:05 [RateCDR] => 1 ) [2025-01-22 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:14:05' and `end` < '2025-01-22 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:14:22] Production.INFO: count ==977 [2025-01-22 09:14:23] Production.ERROR: pbx CDR StartTime 2025-01-22 06:14:05 - End Time 2025-01-22 09:14:05 [2025-01-22 09:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303999', 'tblTempUsageDetail_20' ) start [2025-01-22 09:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14303999', 'tblTempUsageDetail_20' ) end [2025-01-22 09:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303999', 'tblTempVendorCDR_20' ) start [2025-01-22 09:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14303999', 'tblTempVendorCDR_20' ) end [2025-01-22 09:14:23] Production.INFO: ProcessCDR(1,14303999,1,1,2) [2025-01-22 09:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14303999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14303999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14303999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14303999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303999', 'tblTempUsageDetail_20' ) start [2025-01-22 09:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14303999', 'tblTempUsageDetail_20' ) end [2025-01-22 09:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:14:27] Production.INFO: ==13919== Releasing lock... [2025-01-22 09:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:14:27] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:15:05 [end_date_ymd] => 2025-01-22 09:15:05 [RateCDR] => 1 ) [2025-01-22 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:15:05' and `end` < '2025-01-22 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:15:20] Production.INFO: count ==985 [2025-01-22 09:15:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:15:05 - End Time 2025-01-22 09:15:05 [2025-01-22 09:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304008', 'tblTempUsageDetail_20' ) start [2025-01-22 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304008', 'tblTempUsageDetail_20' ) end [2025-01-22 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304008', 'tblTempVendorCDR_20' ) start [2025-01-22 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304008', 'tblTempVendorCDR_20' ) end [2025-01-22 09:15:21] Production.INFO: ProcessCDR(1,14304008,1,1,2) [2025-01-22 09:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304008', 'tblTempUsageDetail_20' ) start [2025-01-22 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304008', 'tblTempUsageDetail_20' ) end [2025-01-22 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:15:25] Production.INFO: ==14002== Releasing lock... [2025-01-22 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:15:25] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:16:05 [end_date_ymd] => 2025-01-22 09:16:05 [RateCDR] => 1 ) [2025-01-22 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:16:05' and `end` < '2025-01-22 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:16:19] Production.INFO: count ==991 [2025-01-22 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:16:05 - End Time 2025-01-22 09:16:05 [2025-01-22 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304013', 'tblTempUsageDetail_20' ) start [2025-01-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304013', 'tblTempUsageDetail_20' ) end [2025-01-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304013', 'tblTempVendorCDR_20' ) start [2025-01-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304013', 'tblTempVendorCDR_20' ) end [2025-01-22 09:16:19] Production.INFO: ProcessCDR(1,14304013,1,1,2) [2025-01-22 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304013', 'tblTempUsageDetail_20' ) start [2025-01-22 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304013', 'tblTempUsageDetail_20' ) end [2025-01-22 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:16:24] Production.INFO: ==14083== Releasing lock... [2025-01-22 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:16:24] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:17:06 [end_date_ymd] => 2025-01-22 09:17:06 [RateCDR] => 1 ) [2025-01-22 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:17:06' and `end` < '2025-01-22 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:17:19] Production.INFO: count ==1004 [2025-01-22 09:17:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:17:06 - End Time 2025-01-22 09:17:06 [2025-01-22 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304018', 'tblTempUsageDetail_20' ) start [2025-01-22 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304018', 'tblTempUsageDetail_20' ) end [2025-01-22 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304018', 'tblTempVendorCDR_20' ) start [2025-01-22 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304018', 'tblTempVendorCDR_20' ) end [2025-01-22 09:17:20] Production.INFO: ProcessCDR(1,14304018,1,1,2) [2025-01-22 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304018', 'tblTempUsageDetail_20' ) start [2025-01-22 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304018', 'tblTempUsageDetail_20' ) end [2025-01-22 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:17:24] Production.INFO: ==14160== Releasing lock... [2025-01-22 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:17:24] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:18:05 [end_date_ymd] => 2025-01-22 09:18:05 [RateCDR] => 1 ) [2025-01-22 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:18:05' and `end` < '2025-01-22 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:18:23] Production.INFO: count ==1009 [2025-01-22 09:18:24] Production.ERROR: pbx CDR StartTime 2025-01-22 06:18:05 - End Time 2025-01-22 09:18:05 [2025-01-22 09:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304023', 'tblTempUsageDetail_20' ) start [2025-01-22 09:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304023', 'tblTempUsageDetail_20' ) end [2025-01-22 09:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304023', 'tblTempVendorCDR_20' ) start [2025-01-22 09:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304023', 'tblTempVendorCDR_20' ) end [2025-01-22 09:18:24] Production.INFO: ProcessCDR(1,14304023,1,1,2) [2025-01-22 09:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304023', 'tblTempUsageDetail_20' ) start [2025-01-22 09:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304023', 'tblTempUsageDetail_20' ) end [2025-01-22 09:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:18:28] Production.INFO: ==14242== Releasing lock... [2025-01-22 09:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:18:28] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:19:05 [end_date_ymd] => 2025-01-22 09:19:05 [RateCDR] => 1 ) [2025-01-22 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:19:05' and `end` < '2025-01-22 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:19:19] Production.INFO: count ==1021 [2025-01-22 09:19:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:19:05 - End Time 2025-01-22 09:19:05 [2025-01-22 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304028', 'tblTempUsageDetail_20' ) start [2025-01-22 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304028', 'tblTempUsageDetail_20' ) end [2025-01-22 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304028', 'tblTempVendorCDR_20' ) start [2025-01-22 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304028', 'tblTempVendorCDR_20' ) end [2025-01-22 09:19:19] Production.INFO: ProcessCDR(1,14304028,1,1,2) [2025-01-22 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304028', 'tblTempUsageDetail_20' ) start [2025-01-22 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304028', 'tblTempUsageDetail_20' ) end [2025-01-22 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:19:24] Production.INFO: ==14324== Releasing lock... [2025-01-22 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:19:24] Production.INFO: 36 MB #Memory Used# [2025-01-22 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:20:05 [end_date_ymd] => 2025-01-22 09:20:05 [RateCDR] => 1 ) [2025-01-22 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:20:05' and `end` < '2025-01-22 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:20:29] Production.INFO: count ==1045 [2025-01-22 09:20:29] Production.ERROR: pbx CDR StartTime 2025-01-22 06:20:05 - End Time 2025-01-22 09:20:05 [2025-01-22 09:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304033', 'tblTempUsageDetail_20' ) start [2025-01-22 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304033', 'tblTempUsageDetail_20' ) end [2025-01-22 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304033', 'tblTempVendorCDR_20' ) start [2025-01-22 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304033', 'tblTempVendorCDR_20' ) end [2025-01-22 09:20:29] Production.INFO: ProcessCDR(1,14304033,1,1,2) [2025-01-22 09:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304033', 'tblTempUsageDetail_20' ) start [2025-01-22 09:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304033', 'tblTempUsageDetail_20' ) end [2025-01-22 09:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:20:34] Production.INFO: ==14404== Releasing lock... [2025-01-22 09:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:20:34] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:21:05 [end_date_ymd] => 2025-01-22 09:21:05 [RateCDR] => 1 ) [2025-01-22 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:21:05' and `end` < '2025-01-22 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:21:18] Production.INFO: count ==1119 [2025-01-22 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:21:05 - End Time 2025-01-22 09:21:05 [2025-01-22 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304039', 'tblTempUsageDetail_20' ) start [2025-01-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304039', 'tblTempUsageDetail_20' ) end [2025-01-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304039', 'tblTempVendorCDR_20' ) start [2025-01-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304039', 'tblTempVendorCDR_20' ) end [2025-01-22 09:21:19] Production.INFO: ProcessCDR(1,14304039,1,1,2) [2025-01-22 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304039', 'tblTempUsageDetail_20' ) start [2025-01-22 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304039', 'tblTempUsageDetail_20' ) end [2025-01-22 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:21:23] Production.INFO: ==14487== Releasing lock... [2025-01-22 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:21:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-22 09:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:22:04 [end_date_ymd] => 2025-01-22 09:22:04 [RateCDR] => 1 ) [2025-01-22 09:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:22:04' and `end` < '2025-01-22 09:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:22:17] Production.INFO: count ==1127 [2025-01-22 09:22:17] Production.ERROR: pbx CDR StartTime 2025-01-22 06:22:04 - End Time 2025-01-22 09:22:04 [2025-01-22 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304044', 'tblTempUsageDetail_20' ) start [2025-01-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304044', 'tblTempUsageDetail_20' ) end [2025-01-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304044', 'tblTempVendorCDR_20' ) start [2025-01-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304044', 'tblTempVendorCDR_20' ) end [2025-01-22 09:22:17] Production.INFO: ProcessCDR(1,14304044,1,1,2) [2025-01-22 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304044', 'tblTempUsageDetail_20' ) start [2025-01-22 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304044', 'tblTempUsageDetail_20' ) end [2025-01-22 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:22:22] Production.INFO: ==14567== Releasing lock... [2025-01-22 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:23:05 [end_date_ymd] => 2025-01-22 09:23:05 [RateCDR] => 1 ) [2025-01-22 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:23:05' and `end` < '2025-01-22 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:23:18] Production.INFO: count ==1137 [2025-01-22 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:23:05 - End Time 2025-01-22 09:23:05 [2025-01-22 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304049', 'tblTempUsageDetail_20' ) start [2025-01-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304049', 'tblTempUsageDetail_20' ) end [2025-01-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304049', 'tblTempVendorCDR_20' ) start [2025-01-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304049', 'tblTempVendorCDR_20' ) end [2025-01-22 09:23:19] Production.INFO: ProcessCDR(1,14304049,1,1,2) [2025-01-22 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304049', 'tblTempUsageDetail_20' ) start [2025-01-22 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304049', 'tblTempUsageDetail_20' ) end [2025-01-22 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:23:23] Production.INFO: ==14652== Releasing lock... [2025-01-22 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:23:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-22 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:24:05 [end_date_ymd] => 2025-01-22 09:24:05 [RateCDR] => 1 ) [2025-01-22 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:24:05' and `end` < '2025-01-22 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:24:22] Production.INFO: count ==1156 [2025-01-22 09:24:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:24:05 - End Time 2025-01-22 09:24:05 [2025-01-22 09:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304054', 'tblTempUsageDetail_20' ) start [2025-01-22 09:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304054', 'tblTempUsageDetail_20' ) end [2025-01-22 09:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304054', 'tblTempVendorCDR_20' ) start [2025-01-22 09:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304054', 'tblTempVendorCDR_20' ) end [2025-01-22 09:24:22] Production.INFO: ProcessCDR(1,14304054,1,1,2) [2025-01-22 09:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304054', 'tblTempUsageDetail_20' ) start [2025-01-22 09:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304054', 'tblTempUsageDetail_20' ) end [2025-01-22 09:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:24:27] Production.INFO: ==14739== Releasing lock... [2025-01-22 09:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:24:27] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:25:05 [end_date_ymd] => 2025-01-22 09:25:05 [RateCDR] => 1 ) [2025-01-22 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:25:05' and `end` < '2025-01-22 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:25:26] Production.INFO: count ==1168 [2025-01-22 09:25:27] Production.ERROR: pbx CDR StartTime 2025-01-22 06:25:05 - End Time 2025-01-22 09:25:05 [2025-01-22 09:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304059', 'tblTempUsageDetail_20' ) start [2025-01-22 09:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304059', 'tblTempUsageDetail_20' ) end [2025-01-22 09:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304059', 'tblTempVendorCDR_20' ) start [2025-01-22 09:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304059', 'tblTempVendorCDR_20' ) end [2025-01-22 09:25:27] Production.INFO: ProcessCDR(1,14304059,1,1,2) [2025-01-22 09:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304059', 'tblTempUsageDetail_20' ) start [2025-01-22 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304059', 'tblTempUsageDetail_20' ) end [2025-01-22 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:25:31] Production.INFO: ==14817== Releasing lock... [2025-01-22 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:25:31] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:26:05 [end_date_ymd] => 2025-01-22 09:26:05 [RateCDR] => 1 ) [2025-01-22 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:26:05' and `end` < '2025-01-22 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:26:30] Production.INFO: count ==1184 [2025-01-22 09:26:31] Production.ERROR: pbx CDR StartTime 2025-01-22 06:26:05 - End Time 2025-01-22 09:26:05 [2025-01-22 09:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304064', 'tblTempUsageDetail_20' ) start [2025-01-22 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304064', 'tblTempUsageDetail_20' ) end [2025-01-22 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304064', 'tblTempVendorCDR_20' ) start [2025-01-22 09:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304064', 'tblTempVendorCDR_20' ) end [2025-01-22 09:26:31] Production.INFO: ProcessCDR(1,14304064,1,1,2) [2025-01-22 09:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304064', 'tblTempUsageDetail_20' ) start [2025-01-22 09:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304064', 'tblTempUsageDetail_20' ) end [2025-01-22 09:26:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:26:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:26:36] Production.INFO: ==14898== Releasing lock... [2025-01-22 09:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:26:36] Production.INFO: 37 MB #Memory Used# [2025-01-22 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:27:05 [end_date_ymd] => 2025-01-22 09:27:05 [RateCDR] => 1 ) [2025-01-22 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:27:05' and `end` < '2025-01-22 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:27:23] Production.INFO: count ==1208 [2025-01-22 09:27:23] Production.ERROR: pbx CDR StartTime 2025-01-22 06:27:05 - End Time 2025-01-22 09:27:05 [2025-01-22 09:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304069', 'tblTempUsageDetail_20' ) start [2025-01-22 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304069', 'tblTempUsageDetail_20' ) end [2025-01-22 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304069', 'tblTempVendorCDR_20' ) start [2025-01-22 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304069', 'tblTempVendorCDR_20' ) end [2025-01-22 09:27:23] Production.INFO: ProcessCDR(1,14304069,1,1,2) [2025-01-22 09:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304069', 'tblTempUsageDetail_20' ) start [2025-01-22 09:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304069', 'tblTempUsageDetail_20' ) end [2025-01-22 09:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:27:28] Production.INFO: ==14975== Releasing lock... [2025-01-22 09:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:27:28] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:28:05 [end_date_ymd] => 2025-01-22 09:28:05 [RateCDR] => 1 ) [2025-01-22 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:28:05' and `end` < '2025-01-22 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:28:21] Production.INFO: count ==1217 [2025-01-22 09:28:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:28:05 - End Time 2025-01-22 09:28:05 [2025-01-22 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304074', 'tblTempUsageDetail_20' ) start [2025-01-22 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304074', 'tblTempUsageDetail_20' ) end [2025-01-22 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304074', 'tblTempVendorCDR_20' ) start [2025-01-22 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304074', 'tblTempVendorCDR_20' ) end [2025-01-22 09:28:21] Production.INFO: ProcessCDR(1,14304074,1,1,2) [2025-01-22 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304074', 'tblTempUsageDetail_20' ) start [2025-01-22 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304074', 'tblTempUsageDetail_20' ) end [2025-01-22 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:28:25] Production.INFO: ==15055== Releasing lock... [2025-01-22 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:28:25] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:29:05 [end_date_ymd] => 2025-01-22 09:29:05 [RateCDR] => 1 ) [2025-01-22 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:29:05' and `end` < '2025-01-22 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:29:18] Production.INFO: count ==1219 [2025-01-22 09:29:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:29:05 - End Time 2025-01-22 09:29:05 [2025-01-22 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304079', 'tblTempUsageDetail_20' ) start [2025-01-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304079', 'tblTempUsageDetail_20' ) end [2025-01-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304079', 'tblTempVendorCDR_20' ) start [2025-01-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304079', 'tblTempVendorCDR_20' ) end [2025-01-22 09:29:19] Production.INFO: ProcessCDR(1,14304079,1,1,2) [2025-01-22 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304079', 'tblTempUsageDetail_20' ) start [2025-01-22 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304079', 'tblTempUsageDetail_20' ) end [2025-01-22 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:29:23] Production.INFO: ==15171== Releasing lock... [2025-01-22 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:29:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-22 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:30:06 [end_date_ymd] => 2025-01-22 09:30:06 [RateCDR] => 1 ) [2025-01-22 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:30:06' and `end` < '2025-01-22 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:30:22] Production.INFO: count ==1240 [2025-01-22 09:30:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:30:06 - End Time 2025-01-22 09:30:06 [2025-01-22 09:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304084', 'tblTempUsageDetail_20' ) start [2025-01-22 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304084', 'tblTempUsageDetail_20' ) end [2025-01-22 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304084', 'tblTempVendorCDR_20' ) start [2025-01-22 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304084', 'tblTempVendorCDR_20' ) end [2025-01-22 09:30:22] Production.INFO: ProcessCDR(1,14304084,1,1,2) [2025-01-22 09:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304084', 'tblTempUsageDetail_20' ) start [2025-01-22 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304084', 'tblTempUsageDetail_20' ) end [2025-01-22 09:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:30:27] Production.INFO: ==15254== Releasing lock... [2025-01-22 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:30:27] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:31:05 [end_date_ymd] => 2025-01-22 09:31:05 [RateCDR] => 1 ) [2025-01-22 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:31:05' and `end` < '2025-01-22 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:31:24] Production.INFO: count ==1347 [2025-01-22 09:31:24] Production.ERROR: pbx CDR StartTime 2025-01-22 06:31:05 - End Time 2025-01-22 09:31:05 [2025-01-22 09:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304090', 'tblTempUsageDetail_20' ) start [2025-01-22 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304090', 'tblTempUsageDetail_20' ) end [2025-01-22 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304090', 'tblTempVendorCDR_20' ) start [2025-01-22 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304090', 'tblTempVendorCDR_20' ) end [2025-01-22 09:31:24] Production.INFO: ProcessCDR(1,14304090,1,1,2) [2025-01-22 09:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304090', 'tblTempUsageDetail_20' ) start [2025-01-22 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304090', 'tblTempUsageDetail_20' ) end [2025-01-22 09:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:31:28] Production.INFO: ==15336== Releasing lock... [2025-01-22 09:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:31:28] Production.INFO: 38 MB #Memory Used# [2025-01-22 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:32:05 [end_date_ymd] => 2025-01-22 09:32:05 [RateCDR] => 1 ) [2025-01-22 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:32:05' and `end` < '2025-01-22 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:32:20] Production.INFO: count ==1353 [2025-01-22 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:32:05 - End Time 2025-01-22 09:32:05 [2025-01-22 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304095', 'tblTempUsageDetail_20' ) start [2025-01-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304095', 'tblTempUsageDetail_20' ) end [2025-01-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304095', 'tblTempVendorCDR_20' ) start [2025-01-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304095', 'tblTempVendorCDR_20' ) end [2025-01-22 09:32:20] Production.INFO: ProcessCDR(1,14304095,1,1,2) [2025-01-22 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304095', 'tblTempUsageDetail_20' ) start [2025-01-22 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304095', 'tblTempUsageDetail_20' ) end [2025-01-22 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:32:24] Production.INFO: ==15415== Releasing lock... [2025-01-22 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:32:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:33:05 [end_date_ymd] => 2025-01-22 09:33:05 [RateCDR] => 1 ) [2025-01-22 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:33:05' and `end` < '2025-01-22 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:33:18] Production.INFO: count ==1360 [2025-01-22 09:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:33:05 - End Time 2025-01-22 09:33:05 [2025-01-22 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304100', 'tblTempUsageDetail_20' ) start [2025-01-22 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304100', 'tblTempUsageDetail_20' ) end [2025-01-22 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304100', 'tblTempVendorCDR_20' ) start [2025-01-22 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304100', 'tblTempVendorCDR_20' ) end [2025-01-22 09:33:18] Production.INFO: ProcessCDR(1,14304100,1,1,2) [2025-01-22 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304100', 'tblTempUsageDetail_20' ) start [2025-01-22 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304100', 'tblTempUsageDetail_20' ) end [2025-01-22 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:33:23] Production.INFO: ==15496== Releasing lock... [2025-01-22 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:33:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:34:05 [end_date_ymd] => 2025-01-22 09:34:05 [RateCDR] => 1 ) [2025-01-22 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:34:05' and `end` < '2025-01-22 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:34:18] Production.INFO: count ==1370 [2025-01-22 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:34:05 - End Time 2025-01-22 09:34:05 [2025-01-22 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304105', 'tblTempUsageDetail_20' ) start [2025-01-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304105', 'tblTempUsageDetail_20' ) end [2025-01-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304105', 'tblTempVendorCDR_20' ) start [2025-01-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304105', 'tblTempVendorCDR_20' ) end [2025-01-22 09:34:18] Production.INFO: ProcessCDR(1,14304105,1,1,2) [2025-01-22 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304105', 'tblTempUsageDetail_20' ) start [2025-01-22 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304105', 'tblTempUsageDetail_20' ) end [2025-01-22 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:34:23] Production.INFO: ==15575== Releasing lock... [2025-01-22 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:34:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:35:05 [end_date_ymd] => 2025-01-22 09:35:05 [RateCDR] => 1 ) [2025-01-22 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:35:05' and `end` < '2025-01-22 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:35:31] Production.INFO: count ==1382 [2025-01-22 09:35:31] Production.ERROR: pbx CDR StartTime 2025-01-22 06:35:05 - End Time 2025-01-22 09:35:05 [2025-01-22 09:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304110', 'tblTempUsageDetail_20' ) start [2025-01-22 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304110', 'tblTempUsageDetail_20' ) end [2025-01-22 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304110', 'tblTempVendorCDR_20' ) start [2025-01-22 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304110', 'tblTempVendorCDR_20' ) end [2025-01-22 09:35:31] Production.INFO: ProcessCDR(1,14304110,1,1,2) [2025-01-22 09:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304110', 'tblTempUsageDetail_20' ) start [2025-01-22 09:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304110', 'tblTempUsageDetail_20' ) end [2025-01-22 09:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:35:36] Production.INFO: ==15655== Releasing lock... [2025-01-22 09:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:35:36] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:36:04 [end_date_ymd] => 2025-01-22 09:36:04 [RateCDR] => 1 ) [2025-01-22 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:36:04' and `end` < '2025-01-22 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:36:22] Production.INFO: count ==1395 [2025-01-22 09:36:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:36:04 - End Time 2025-01-22 09:36:04 [2025-01-22 09:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304115', 'tblTempUsageDetail_20' ) start [2025-01-22 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304115', 'tblTempUsageDetail_20' ) end [2025-01-22 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304115', 'tblTempVendorCDR_20' ) start [2025-01-22 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304115', 'tblTempVendorCDR_20' ) end [2025-01-22 09:36:22] Production.INFO: ProcessCDR(1,14304115,1,1,2) [2025-01-22 09:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304115', 'tblTempUsageDetail_20' ) start [2025-01-22 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304115', 'tblTempUsageDetail_20' ) end [2025-01-22 09:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:36:27] Production.INFO: ==15740== Releasing lock... [2025-01-22 09:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:36:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-22 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:37:05 [end_date_ymd] => 2025-01-22 09:37:05 [RateCDR] => 1 ) [2025-01-22 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:37:05' and `end` < '2025-01-22 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:37:21] Production.INFO: count ==1404 [2025-01-22 09:37:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:37:05 - End Time 2025-01-22 09:37:05 [2025-01-22 09:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304120', 'tblTempUsageDetail_20' ) start [2025-01-22 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304120', 'tblTempUsageDetail_20' ) end [2025-01-22 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304120', 'tblTempVendorCDR_20' ) start [2025-01-22 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304120', 'tblTempVendorCDR_20' ) end [2025-01-22 09:37:21] Production.INFO: ProcessCDR(1,14304120,1,1,2) [2025-01-22 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304120', 'tblTempUsageDetail_20' ) start [2025-01-22 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304120', 'tblTempUsageDetail_20' ) end [2025-01-22 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:37:26] Production.INFO: ==15825== Releasing lock... [2025-01-22 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:37:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-22 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:38:05 [end_date_ymd] => 2025-01-22 09:38:05 [RateCDR] => 1 ) [2025-01-22 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:38:05' and `end` < '2025-01-22 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:38:21] Production.INFO: count ==1413 [2025-01-22 09:38:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:38:05 - End Time 2025-01-22 09:38:05 [2025-01-22 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304125', 'tblTempUsageDetail_20' ) start [2025-01-22 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304125', 'tblTempUsageDetail_20' ) end [2025-01-22 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304125', 'tblTempVendorCDR_20' ) start [2025-01-22 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304125', 'tblTempVendorCDR_20' ) end [2025-01-22 09:38:21] Production.INFO: ProcessCDR(1,14304125,1,1,2) [2025-01-22 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304125', 'tblTempUsageDetail_20' ) start [2025-01-22 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304125', 'tblTempUsageDetail_20' ) end [2025-01-22 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:38:26] Production.INFO: ==15903== Releasing lock... [2025-01-22 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:38:26] Production.INFO: 39 MB #Memory Used# [2025-01-22 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:39:04 [end_date_ymd] => 2025-01-22 09:39:04 [RateCDR] => 1 ) [2025-01-22 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:39:04' and `end` < '2025-01-22 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:39:24] Production.INFO: count ==1424 [2025-01-22 09:39:24] Production.ERROR: pbx CDR StartTime 2025-01-22 06:39:04 - End Time 2025-01-22 09:39:04 [2025-01-22 09:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304130', 'tblTempUsageDetail_20' ) start [2025-01-22 09:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304130', 'tblTempUsageDetail_20' ) end [2025-01-22 09:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304130', 'tblTempVendorCDR_20' ) start [2025-01-22 09:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304130', 'tblTempVendorCDR_20' ) end [2025-01-22 09:39:24] Production.INFO: ProcessCDR(1,14304130,1,1,2) [2025-01-22 09:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304130', 'tblTempUsageDetail_20' ) start [2025-01-22 09:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304130', 'tblTempUsageDetail_20' ) end [2025-01-22 09:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:39:29] Production.INFO: ==15979== Releasing lock... [2025-01-22 09:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:39:29] Production.INFO: 38.75 MB #Memory Used# [2025-01-22 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:40:06 [end_date_ymd] => 2025-01-22 09:40:06 [RateCDR] => 1 ) [2025-01-22 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:40:06' and `end` < '2025-01-22 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:40:24] Production.INFO: count ==1448 [2025-01-22 09:40:25] Production.ERROR: pbx CDR StartTime 2025-01-22 06:40:06 - End Time 2025-01-22 09:40:06 [2025-01-22 09:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304136', 'tblTempUsageDetail_20' ) start [2025-01-22 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304136', 'tblTempUsageDetail_20' ) end [2025-01-22 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304136', 'tblTempVendorCDR_20' ) start [2025-01-22 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304136', 'tblTempVendorCDR_20' ) end [2025-01-22 09:40:25] Production.INFO: ProcessCDR(1,14304136,1,1,2) [2025-01-22 09:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304136', 'tblTempUsageDetail_20' ) start [2025-01-22 09:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304136', 'tblTempUsageDetail_20' ) end [2025-01-22 09:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:40:29] Production.INFO: ==16057== Releasing lock... [2025-01-22 09:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:40:29] Production.INFO: 38.75 MB #Memory Used# [2025-01-22 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:41:04 [end_date_ymd] => 2025-01-22 09:41:04 [RateCDR] => 1 ) [2025-01-22 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:41:04' and `end` < '2025-01-22 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:41:28] Production.INFO: count ==1529 [2025-01-22 09:41:28] Production.ERROR: pbx CDR StartTime 2025-01-22 06:41:04 - End Time 2025-01-22 09:41:04 [2025-01-22 09:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304141', 'tblTempUsageDetail_20' ) start [2025-01-22 09:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304141', 'tblTempUsageDetail_20' ) end [2025-01-22 09:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304141', 'tblTempVendorCDR_20' ) start [2025-01-22 09:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304141', 'tblTempVendorCDR_20' ) end [2025-01-22 09:41:28] Production.INFO: ProcessCDR(1,14304141,1,1,2) [2025-01-22 09:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304141', 'tblTempUsageDetail_20' ) start [2025-01-22 09:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304141', 'tblTempUsageDetail_20' ) end [2025-01-22 09:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:41:33] Production.INFO: ==16137== Releasing lock... [2025-01-22 09:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:41:33] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:42:05 [end_date_ymd] => 2025-01-22 09:42:05 [RateCDR] => 1 ) [2025-01-22 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:42:05' and `end` < '2025-01-22 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:42:30] Production.INFO: count ==1538 [2025-01-22 09:42:30] Production.ERROR: pbx CDR StartTime 2025-01-22 06:42:05 - End Time 2025-01-22 09:42:05 [2025-01-22 09:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304146', 'tblTempUsageDetail_20' ) start [2025-01-22 09:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304146', 'tblTempUsageDetail_20' ) end [2025-01-22 09:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304146', 'tblTempVendorCDR_20' ) start [2025-01-22 09:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304146', 'tblTempVendorCDR_20' ) end [2025-01-22 09:42:31] Production.INFO: ProcessCDR(1,14304146,1,1,2) [2025-01-22 09:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:42:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:42:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304146', 'tblTempUsageDetail_20' ) start [2025-01-22 09:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304146', 'tblTempUsageDetail_20' ) end [2025-01-22 09:42:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:42:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:42:35] Production.INFO: ==16218== Releasing lock... [2025-01-22 09:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:42:35] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:43:05 [end_date_ymd] => 2025-01-22 09:43:05 [RateCDR] => 1 ) [2025-01-22 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:43:05' and `end` < '2025-01-22 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:43:20] Production.INFO: count ==1537 [2025-01-22 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:43:05 - End Time 2025-01-22 09:43:05 [2025-01-22 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304151', 'tblTempUsageDetail_20' ) start [2025-01-22 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304151', 'tblTempUsageDetail_20' ) end [2025-01-22 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304151', 'tblTempVendorCDR_20' ) start [2025-01-22 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304151', 'tblTempVendorCDR_20' ) end [2025-01-22 09:43:20] Production.INFO: ProcessCDR(1,14304151,1,1,2) [2025-01-22 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304151', 'tblTempUsageDetail_20' ) start [2025-01-22 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304151', 'tblTempUsageDetail_20' ) end [2025-01-22 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:43:25] Production.INFO: ==16292== Releasing lock... [2025-01-22 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:43:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:44:05 [end_date_ymd] => 2025-01-22 09:44:05 [RateCDR] => 1 ) [2025-01-22 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:44:05' and `end` < '2025-01-22 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:44:19] Production.INFO: count ==1540 [2025-01-22 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:44:05 - End Time 2025-01-22 09:44:05 [2025-01-22 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304156', 'tblTempUsageDetail_20' ) start [2025-01-22 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304156', 'tblTempUsageDetail_20' ) end [2025-01-22 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304156', 'tblTempVendorCDR_20' ) start [2025-01-22 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304156', 'tblTempVendorCDR_20' ) end [2025-01-22 09:44:19] Production.INFO: ProcessCDR(1,14304156,1,1,2) [2025-01-22 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304156', 'tblTempUsageDetail_20' ) start [2025-01-22 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304156', 'tblTempUsageDetail_20' ) end [2025-01-22 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:44:22] Production.INFO: ==16411== Releasing lock... [2025-01-22 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:45:05 [end_date_ymd] => 2025-01-22 09:45:05 [RateCDR] => 1 ) [2025-01-22 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:45:05' and `end` < '2025-01-22 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:45:21] Production.INFO: count ==1546 [2025-01-22 09:45:22] Production.ERROR: pbx CDR StartTime 2025-01-22 06:45:05 - End Time 2025-01-22 09:45:05 [2025-01-22 09:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304161', 'tblTempUsageDetail_20' ) start [2025-01-22 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304161', 'tblTempUsageDetail_20' ) end [2025-01-22 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304161', 'tblTempVendorCDR_20' ) start [2025-01-22 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304161', 'tblTempVendorCDR_20' ) end [2025-01-22 09:45:22] Production.INFO: ProcessCDR(1,14304161,1,1,2) [2025-01-22 09:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304161', 'tblTempUsageDetail_20' ) start [2025-01-22 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304161', 'tblTempUsageDetail_20' ) end [2025-01-22 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:45:26] Production.INFO: ==16488== Releasing lock... [2025-01-22 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:45:26] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:46:05 [end_date_ymd] => 2025-01-22 09:46:05 [RateCDR] => 1 ) [2025-01-22 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:46:05' and `end` < '2025-01-22 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:46:18] Production.INFO: count ==1540 [2025-01-22 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-22 06:46:05 - End Time 2025-01-22 09:46:05 [2025-01-22 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304166', 'tblTempUsageDetail_20' ) start [2025-01-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304166', 'tblTempUsageDetail_20' ) end [2025-01-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304166', 'tblTempVendorCDR_20' ) start [2025-01-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304166', 'tblTempVendorCDR_20' ) end [2025-01-22 09:46:18] Production.INFO: ProcessCDR(1,14304166,1,1,2) [2025-01-22 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304166', 'tblTempUsageDetail_20' ) start [2025-01-22 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304166', 'tblTempUsageDetail_20' ) end [2025-01-22 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:46:21] Production.INFO: ==16564== Releasing lock... [2025-01-22 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:46:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:47:06 [end_date_ymd] => 2025-01-22 09:47:06 [RateCDR] => 1 ) [2025-01-22 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:47:06' and `end` < '2025-01-22 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:47:20] Production.INFO: count ==1554 [2025-01-22 09:47:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:47:06 - End Time 2025-01-22 09:47:06 [2025-01-22 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304171', 'tblTempUsageDetail_20' ) start [2025-01-22 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304171', 'tblTempUsageDetail_20' ) end [2025-01-22 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304171', 'tblTempVendorCDR_20' ) start [2025-01-22 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304171', 'tblTempVendorCDR_20' ) end [2025-01-22 09:47:21] Production.INFO: ProcessCDR(1,14304171,1,1,2) [2025-01-22 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304171', 'tblTempUsageDetail_20' ) start [2025-01-22 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304171', 'tblTempUsageDetail_20' ) end [2025-01-22 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:47:25] Production.INFO: ==16643== Releasing lock... [2025-01-22 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:47:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:48:05 [end_date_ymd] => 2025-01-22 09:48:05 [RateCDR] => 1 ) [2025-01-22 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:48:05' and `end` < '2025-01-22 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:48:22] Production.INFO: count ==1567 [2025-01-22 09:48:23] Production.ERROR: pbx CDR StartTime 2025-01-22 06:48:05 - End Time 2025-01-22 09:48:05 [2025-01-22 09:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304176', 'tblTempUsageDetail_20' ) start [2025-01-22 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304176', 'tblTempUsageDetail_20' ) end [2025-01-22 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304176', 'tblTempVendorCDR_20' ) start [2025-01-22 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304176', 'tblTempVendorCDR_20' ) end [2025-01-22 09:48:23] Production.INFO: ProcessCDR(1,14304176,1,1,2) [2025-01-22 09:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304176', 'tblTempUsageDetail_20' ) start [2025-01-22 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304176', 'tblTempUsageDetail_20' ) end [2025-01-22 09:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:48:26] Production.INFO: ==16721== Releasing lock... [2025-01-22 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:48:26] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:49:05 [end_date_ymd] => 2025-01-22 09:49:05 [RateCDR] => 1 ) [2025-01-22 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:49:05' and `end` < '2025-01-22 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:49:20] Production.INFO: count ==1579 [2025-01-22 09:49:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:49:05 - End Time 2025-01-22 09:49:05 [2025-01-22 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304181', 'tblTempUsageDetail_20' ) start [2025-01-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304181', 'tblTempUsageDetail_20' ) end [2025-01-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304181', 'tblTempVendorCDR_20' ) start [2025-01-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304181', 'tblTempVendorCDR_20' ) end [2025-01-22 09:49:20] Production.INFO: ProcessCDR(1,14304181,1,1,2) [2025-01-22 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304181', 'tblTempUsageDetail_20' ) start [2025-01-22 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304181', 'tblTempUsageDetail_20' ) end [2025-01-22 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:49:25] Production.INFO: ==16798== Releasing lock... [2025-01-22 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:49:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:50:06 [end_date_ymd] => 2025-01-22 09:50:06 [RateCDR] => 1 ) [2025-01-22 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:50:06' and `end` < '2025-01-22 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:50:19] Production.INFO: count ==1600 [2025-01-22 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:50:06 - End Time 2025-01-22 09:50:06 [2025-01-22 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304187', 'tblTempUsageDetail_20' ) start [2025-01-22 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304187', 'tblTempUsageDetail_20' ) end [2025-01-22 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304187', 'tblTempVendorCDR_20' ) start [2025-01-22 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304187', 'tblTempVendorCDR_20' ) end [2025-01-22 09:50:19] Production.INFO: ProcessCDR(1,14304187,1,1,2) [2025-01-22 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304187', 'tblTempUsageDetail_20' ) start [2025-01-22 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304187', 'tblTempUsageDetail_20' ) end [2025-01-22 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:50:24] Production.INFO: ==16882== Releasing lock... [2025-01-22 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:50:24] Production.INFO: 40 MB #Memory Used# [2025-01-22 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:51:05 [end_date_ymd] => 2025-01-22 09:51:05 [RateCDR] => 1 ) [2025-01-22 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:51:05' and `end` < '2025-01-22 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:51:23] Production.INFO: count ==1730 [2025-01-22 09:51:23] Production.ERROR: pbx CDR StartTime 2025-01-22 06:51:05 - End Time 2025-01-22 09:51:05 [2025-01-22 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304192', 'tblTempUsageDetail_20' ) start [2025-01-22 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304192', 'tblTempUsageDetail_20' ) end [2025-01-22 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304192', 'tblTempVendorCDR_20' ) start [2025-01-22 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304192', 'tblTempVendorCDR_20' ) end [2025-01-22 09:51:23] Production.INFO: ProcessCDR(1,14304192,1,1,2) [2025-01-22 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304192', 'tblTempUsageDetail_20' ) start [2025-01-22 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304192', 'tblTempUsageDetail_20' ) end [2025-01-22 09:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:51:28] Production.INFO: ==16963== Releasing lock... [2025-01-22 09:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:51:28] Production.INFO: 41 MB #Memory Used# [2025-01-22 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:52:05 [end_date_ymd] => 2025-01-22 09:52:05 [RateCDR] => 1 ) [2025-01-22 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:52:05' and `end` < '2025-01-22 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:52:21] Production.INFO: count ==1760 [2025-01-22 09:52:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:52:05 - End Time 2025-01-22 09:52:05 [2025-01-22 09:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304197', 'tblTempUsageDetail_20' ) start [2025-01-22 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304197', 'tblTempUsageDetail_20' ) end [2025-01-22 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304197', 'tblTempVendorCDR_20' ) start [2025-01-22 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304197', 'tblTempVendorCDR_20' ) end [2025-01-22 09:52:21] Production.INFO: ProcessCDR(1,14304197,1,1,2) [2025-01-22 09:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304197', 'tblTempUsageDetail_20' ) start [2025-01-22 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304197', 'tblTempUsageDetail_20' ) end [2025-01-22 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:52:26] Production.INFO: ==17043== Releasing lock... [2025-01-22 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:52:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-22 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:53:05 [end_date_ymd] => 2025-01-22 09:53:05 [RateCDR] => 1 ) [2025-01-22 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:53:05' and `end` < '2025-01-22 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:53:24] Production.INFO: count ==1799 [2025-01-22 09:53:25] Production.ERROR: pbx CDR StartTime 2025-01-22 06:53:05 - End Time 2025-01-22 09:53:05 [2025-01-22 09:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304202', 'tblTempUsageDetail_20' ) start [2025-01-22 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304202', 'tblTempUsageDetail_20' ) end [2025-01-22 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304202', 'tblTempVendorCDR_20' ) start [2025-01-22 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304202', 'tblTempVendorCDR_20' ) end [2025-01-22 09:53:25] Production.INFO: ProcessCDR(1,14304202,1,1,2) [2025-01-22 09:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304202', 'tblTempUsageDetail_20' ) start [2025-01-22 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304202', 'tblTempUsageDetail_20' ) end [2025-01-22 09:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:53:30] Production.INFO: ==17121== Releasing lock... [2025-01-22 09:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:53:30] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:54:05 [end_date_ymd] => 2025-01-22 09:54:05 [RateCDR] => 1 ) [2025-01-22 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:54:05' and `end` < '2025-01-22 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:54:20] Production.INFO: count ==1823 [2025-01-22 09:54:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:54:05 - End Time 2025-01-22 09:54:05 [2025-01-22 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304207', 'tblTempUsageDetail_20' ) start [2025-01-22 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304207', 'tblTempUsageDetail_20' ) end [2025-01-22 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304207', 'tblTempVendorCDR_20' ) start [2025-01-22 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304207', 'tblTempVendorCDR_20' ) end [2025-01-22 09:54:21] Production.INFO: ProcessCDR(1,14304207,1,1,2) [2025-01-22 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304207', 'tblTempUsageDetail_20' ) start [2025-01-22 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304207', 'tblTempUsageDetail_20' ) end [2025-01-22 09:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:54:26] Production.INFO: ==17194== Releasing lock... [2025-01-22 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:54:26] Production.INFO: 42.25 MB #Memory Used# [2025-01-22 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:55:05 [end_date_ymd] => 2025-01-22 09:55:05 [RateCDR] => 1 ) [2025-01-22 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:55:05' and `end` < '2025-01-22 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:55:26] Production.INFO: count ==1827 [2025-01-22 09:55:27] Production.ERROR: pbx CDR StartTime 2025-01-22 06:55:05 - End Time 2025-01-22 09:55:05 [2025-01-22 09:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304212', 'tblTempUsageDetail_20' ) start [2025-01-22 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304212', 'tblTempUsageDetail_20' ) end [2025-01-22 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304212', 'tblTempVendorCDR_20' ) start [2025-01-22 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304212', 'tblTempVendorCDR_20' ) end [2025-01-22 09:55:27] Production.INFO: ProcessCDR(1,14304212,1,1,2) [2025-01-22 09:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304212', 'tblTempUsageDetail_20' ) start [2025-01-22 09:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304212', 'tblTempUsageDetail_20' ) end [2025-01-22 09:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:55:31] Production.INFO: ==17270== Releasing lock... [2025-01-22 09:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:55:31] Production.INFO: 41.75 MB #Memory Used# [2025-01-22 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:56:04 [end_date_ymd] => 2025-01-22 09:56:04 [RateCDR] => 1 ) [2025-01-22 09:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:56:04' and `end` < '2025-01-22 09:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:56:19] Production.INFO: count ==1837 [2025-01-22 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-22 06:56:04 - End Time 2025-01-22 09:56:04 [2025-01-22 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304217', 'tblTempUsageDetail_20' ) start [2025-01-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304217', 'tblTempUsageDetail_20' ) end [2025-01-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304217', 'tblTempVendorCDR_20' ) start [2025-01-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304217', 'tblTempVendorCDR_20' ) end [2025-01-22 09:56:20] Production.INFO: ProcessCDR(1,14304217,1,1,2) [2025-01-22 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304217', 'tblTempUsageDetail_20' ) start [2025-01-22 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304217', 'tblTempUsageDetail_20' ) end [2025-01-22 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:56:25] Production.INFO: ==17346== Releasing lock... [2025-01-22 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:56:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-22 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:57:05 [end_date_ymd] => 2025-01-22 09:57:05 [RateCDR] => 1 ) [2025-01-22 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:57:05' and `end` < '2025-01-22 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:57:20] Production.INFO: count ==1842 [2025-01-22 09:57:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:57:05 - End Time 2025-01-22 09:57:05 [2025-01-22 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304222', 'tblTempUsageDetail_20' ) start [2025-01-22 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304222', 'tblTempUsageDetail_20' ) end [2025-01-22 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304222', 'tblTempVendorCDR_20' ) start [2025-01-22 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304222', 'tblTempVendorCDR_20' ) end [2025-01-22 09:57:21] Production.INFO: ProcessCDR(1,14304222,1,1,2) [2025-01-22 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304222', 'tblTempUsageDetail_20' ) start [2025-01-22 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304222', 'tblTempUsageDetail_20' ) end [2025-01-22 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:57:26] Production.INFO: ==17423== Releasing lock... [2025-01-22 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:57:26] Production.INFO: 42 MB #Memory Used# [2025-01-22 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:58:06 [end_date_ymd] => 2025-01-22 09:58:06 [RateCDR] => 1 ) [2025-01-22 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:58:06' and `end` < '2025-01-22 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:58:20] Production.INFO: count ==1844 [2025-01-22 09:58:21] Production.ERROR: pbx CDR StartTime 2025-01-22 06:58:06 - End Time 2025-01-22 09:58:06 [2025-01-22 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304227', 'tblTempUsageDetail_20' ) start [2025-01-22 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304227', 'tblTempUsageDetail_20' ) end [2025-01-22 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304227', 'tblTempVendorCDR_20' ) start [2025-01-22 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304227', 'tblTempVendorCDR_20' ) end [2025-01-22 09:58:21] Production.INFO: ProcessCDR(1,14304227,1,1,2) [2025-01-22 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304227', 'tblTempUsageDetail_20' ) start [2025-01-22 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304227', 'tblTempUsageDetail_20' ) end [2025-01-22 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:58:25] Production.INFO: ==17500== Releasing lock... [2025-01-22 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:58:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-22 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 06:59:05 [end_date_ymd] => 2025-01-22 09:59:05 [RateCDR] => 1 ) [2025-01-22 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 06:59:05' and `end` < '2025-01-22 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 09:59:18] Production.INFO: count ==1852 [2025-01-22 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-22 06:59:05 - End Time 2025-01-22 09:59:05 [2025-01-22 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304232', 'tblTempUsageDetail_20' ) start [2025-01-22 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304232', 'tblTempUsageDetail_20' ) end [2025-01-22 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304232', 'tblTempVendorCDR_20' ) start [2025-01-22 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304232', 'tblTempVendorCDR_20' ) end [2025-01-22 09:59:19] Production.INFO: ProcessCDR(1,14304232,1,1,2) [2025-01-22 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304232', 'tblTempUsageDetail_20' ) start [2025-01-22 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304232', 'tblTempUsageDetail_20' ) end [2025-01-22 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 09:59:24] Production.INFO: ==17577== Releasing lock... [2025-01-22 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 09:59:24] Production.INFO: 42 MB #Memory Used# [2025-01-22 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:00:07 [end_date_ymd] => 2025-01-22 10:00:07 [RateCDR] => 1 ) [2025-01-22 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:00:07' and `end` < '2025-01-22 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:00:19] Production.INFO: count ==1895 [2025-01-22 10:00:20] Production.ERROR: pbx CDR StartTime 2025-01-22 07:00:07 - End Time 2025-01-22 10:00:07 [2025-01-22 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304238', 'tblTempUsageDetail_20' ) start [2025-01-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304238', 'tblTempUsageDetail_20' ) end [2025-01-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304238', 'tblTempVendorCDR_20' ) start [2025-01-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304238', 'tblTempVendorCDR_20' ) end [2025-01-22 10:00:20] Production.INFO: ProcessCDR(1,14304238,1,1,2) [2025-01-22 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304238', 'tblTempUsageDetail_20' ) start [2025-01-22 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304238', 'tblTempUsageDetail_20' ) end [2025-01-22 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:00:25] Production.INFO: ==17697== Releasing lock... [2025-01-22 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:00:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-22 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:01:05 [end_date_ymd] => 2025-01-22 10:01:05 [RateCDR] => 1 ) [2025-01-22 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:01:05' and `end` < '2025-01-22 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:01:18] Production.INFO: count ==1944 [2025-01-22 10:01:19] Production.ERROR: pbx CDR StartTime 2025-01-22 07:01:05 - End Time 2025-01-22 10:01:05 [2025-01-22 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304243', 'tblTempUsageDetail_20' ) start [2025-01-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304243', 'tblTempUsageDetail_20' ) end [2025-01-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304243', 'tblTempVendorCDR_20' ) start [2025-01-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304243', 'tblTempVendorCDR_20' ) end [2025-01-22 10:01:19] Production.INFO: ProcessCDR(1,14304243,1,1,2) [2025-01-22 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304243', 'tblTempUsageDetail_20' ) start [2025-01-22 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304243', 'tblTempUsageDetail_20' ) end [2025-01-22 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:01:23] Production.INFO: ==17810== Releasing lock... [2025-01-22 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:01:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:02:06 [end_date_ymd] => 2025-01-22 10:02:06 [RateCDR] => 1 ) [2025-01-22 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:02:06' and `end` < '2025-01-22 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:02:25] Production.INFO: count ==1963 [2025-01-22 10:02:26] Production.ERROR: pbx CDR StartTime 2025-01-22 07:02:06 - End Time 2025-01-22 10:02:06 [2025-01-22 10:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304248', 'tblTempUsageDetail_20' ) start [2025-01-22 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304248', 'tblTempUsageDetail_20' ) end [2025-01-22 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304248', 'tblTempVendorCDR_20' ) start [2025-01-22 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304248', 'tblTempVendorCDR_20' ) end [2025-01-22 10:02:26] Production.INFO: ProcessCDR(1,14304248,1,1,2) [2025-01-22 10:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304248', 'tblTempUsageDetail_20' ) start [2025-01-22 10:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304248', 'tblTempUsageDetail_20' ) end [2025-01-22 10:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:02:31] Production.INFO: ==17889== Releasing lock... [2025-01-22 10:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:02:31] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:03:05 [end_date_ymd] => 2025-01-22 10:03:05 [RateCDR] => 1 ) [2025-01-22 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:03:05' and `end` < '2025-01-22 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:03:20] Production.INFO: count ==1977 [2025-01-22 10:03:21] Production.ERROR: pbx CDR StartTime 2025-01-22 07:03:05 - End Time 2025-01-22 10:03:05 [2025-01-22 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304253', 'tblTempUsageDetail_20' ) start [2025-01-22 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304253', 'tblTempUsageDetail_20' ) end [2025-01-22 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304253', 'tblTempVendorCDR_20' ) start [2025-01-22 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304253', 'tblTempVendorCDR_20' ) end [2025-01-22 10:03:21] Production.INFO: ProcessCDR(1,14304253,1,1,2) [2025-01-22 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304253', 'tblTempUsageDetail_20' ) start [2025-01-22 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304253', 'tblTempUsageDetail_20' ) end [2025-01-22 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:03:26] Production.INFO: ==17963== Releasing lock... [2025-01-22 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:03:26] Production.INFO: 43 MB #Memory Used# [2025-01-22 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:04:06 [end_date_ymd] => 2025-01-22 10:04:06 [RateCDR] => 1 ) [2025-01-22 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:04:06' and `end` < '2025-01-22 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:04:20] Production.INFO: count ==1996 [2025-01-22 10:04:21] Production.ERROR: pbx CDR StartTime 2025-01-22 07:04:06 - End Time 2025-01-22 10:04:06 [2025-01-22 10:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304258', 'tblTempUsageDetail_20' ) start [2025-01-22 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304258', 'tblTempUsageDetail_20' ) end [2025-01-22 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304258', 'tblTempVendorCDR_20' ) start [2025-01-22 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304258', 'tblTempVendorCDR_20' ) end [2025-01-22 10:04:21] Production.INFO: ProcessCDR(1,14304258,1,1,2) [2025-01-22 10:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304258', 'tblTempUsageDetail_20' ) start [2025-01-22 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304258', 'tblTempUsageDetail_20' ) end [2025-01-22 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:04:26] Production.INFO: ==18041== Releasing lock... [2025-01-22 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:04:26] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:05:06 [end_date_ymd] => 2025-01-22 10:05:06 [RateCDR] => 1 ) [2025-01-22 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:05:06' and `end` < '2025-01-22 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:05:23] Production.INFO: count ==2018 [2025-01-22 10:05:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:05:06 - End Time 2025-01-22 10:05:06 [2025-01-22 10:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304263', 'tblTempUsageDetail_20' ) start [2025-01-22 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304263', 'tblTempUsageDetail_20' ) end [2025-01-22 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304263', 'tblTempVendorCDR_20' ) start [2025-01-22 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304263', 'tblTempVendorCDR_20' ) end [2025-01-22 10:05:23] Production.INFO: ProcessCDR(1,14304263,1,1,2) [2025-01-22 10:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304263', 'tblTempUsageDetail_20' ) start [2025-01-22 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304263', 'tblTempUsageDetail_20' ) end [2025-01-22 10:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:05:28] Production.INFO: ==18122== Releasing lock... [2025-01-22 10:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:05:28] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:06:05 [end_date_ymd] => 2025-01-22 10:06:05 [RateCDR] => 1 ) [2025-01-22 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:06:05' and `end` < '2025-01-22 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:06:21] Production.INFO: count ==2047 [2025-01-22 10:06:22] Production.ERROR: pbx CDR StartTime 2025-01-22 07:06:05 - End Time 2025-01-22 10:06:05 [2025-01-22 10:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304268', 'tblTempUsageDetail_20' ) start [2025-01-22 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304268', 'tblTempUsageDetail_20' ) end [2025-01-22 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304268', 'tblTempVendorCDR_20' ) start [2025-01-22 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304268', 'tblTempVendorCDR_20' ) end [2025-01-22 10:06:22] Production.INFO: ProcessCDR(1,14304268,1,1,2) [2025-01-22 10:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304268', 'tblTempUsageDetail_20' ) start [2025-01-22 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304268', 'tblTempUsageDetail_20' ) end [2025-01-22 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:06:27] Production.INFO: ==18198== Releasing lock... [2025-01-22 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:06:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-22 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:07:05 [end_date_ymd] => 2025-01-22 10:07:05 [RateCDR] => 1 ) [2025-01-22 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:07:05' and `end` < '2025-01-22 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:07:21] Production.INFO: count ==2057 [2025-01-22 10:07:22] Production.ERROR: pbx CDR StartTime 2025-01-22 07:07:05 - End Time 2025-01-22 10:07:05 [2025-01-22 10:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304273', 'tblTempUsageDetail_20' ) start [2025-01-22 10:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304273', 'tblTempUsageDetail_20' ) end [2025-01-22 10:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304273', 'tblTempVendorCDR_20' ) start [2025-01-22 10:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304273', 'tblTempVendorCDR_20' ) end [2025-01-22 10:07:22] Production.INFO: ProcessCDR(1,14304273,1,1,2) [2025-01-22 10:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304273', 'tblTempUsageDetail_20' ) start [2025-01-22 10:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304273', 'tblTempUsageDetail_20' ) end [2025-01-22 10:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:07:27] Production.INFO: ==18275== Releasing lock... [2025-01-22 10:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:07:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-22 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:08:05 [end_date_ymd] => 2025-01-22 10:08:05 [RateCDR] => 1 ) [2025-01-22 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:08:05' and `end` < '2025-01-22 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:08:24] Production.INFO: count ==2075 [2025-01-22 10:08:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:08:05 - End Time 2025-01-22 10:08:05 [2025-01-22 10:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304278', 'tblTempUsageDetail_20' ) start [2025-01-22 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304278', 'tblTempUsageDetail_20' ) end [2025-01-22 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304278', 'tblTempVendorCDR_20' ) start [2025-01-22 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304278', 'tblTempVendorCDR_20' ) end [2025-01-22 10:08:24] Production.INFO: ProcessCDR(1,14304278,1,1,2) [2025-01-22 10:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304278', 'tblTempUsageDetail_20' ) start [2025-01-22 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304278', 'tblTempUsageDetail_20' ) end [2025-01-22 10:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:08:29] Production.INFO: ==18351== Releasing lock... [2025-01-22 10:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:08:29] Production.INFO: 43.75 MB #Memory Used# [2025-01-22 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:09:05 [end_date_ymd] => 2025-01-22 10:09:05 [RateCDR] => 1 ) [2025-01-22 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:09:05' and `end` < '2025-01-22 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:09:27] Production.INFO: count ==2084 [2025-01-22 10:09:28] Production.ERROR: pbx CDR StartTime 2025-01-22 07:09:05 - End Time 2025-01-22 10:09:05 [2025-01-22 10:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304283', 'tblTempUsageDetail_20' ) start [2025-01-22 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304283', 'tblTempUsageDetail_20' ) end [2025-01-22 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304283', 'tblTempVendorCDR_20' ) start [2025-01-22 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304283', 'tblTempVendorCDR_20' ) end [2025-01-22 10:09:28] Production.INFO: ProcessCDR(1,14304283,1,1,2) [2025-01-22 10:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304283', 'tblTempUsageDetail_20' ) start [2025-01-22 10:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304283', 'tblTempUsageDetail_20' ) end [2025-01-22 10:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:09:32] Production.INFO: ==18428== Releasing lock... [2025-01-22 10:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:09:32] Production.INFO: 43.75 MB #Memory Used# [2025-01-22 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:10:06 [end_date_ymd] => 2025-01-22 10:10:06 [RateCDR] => 1 ) [2025-01-22 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:10:06' and `end` < '2025-01-22 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:10:32] Production.INFO: count ==2123 [2025-01-22 10:10:33] Production.ERROR: pbx CDR StartTime 2025-01-22 07:10:06 - End Time 2025-01-22 10:10:06 [2025-01-22 10:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304289', 'tblTempUsageDetail_20' ) start [2025-01-22 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304289', 'tblTempUsageDetail_20' ) end [2025-01-22 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304289', 'tblTempVendorCDR_20' ) start [2025-01-22 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304289', 'tblTempVendorCDR_20' ) end [2025-01-22 10:10:33] Production.INFO: ProcessCDR(1,14304289,1,1,2) [2025-01-22 10:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304289', 'tblTempUsageDetail_20' ) start [2025-01-22 10:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304289', 'tblTempUsageDetail_20' ) end [2025-01-22 10:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:10:38] Production.INFO: ==18509== Releasing lock... [2025-01-22 10:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:10:38] Production.INFO: 44.25 MB #Memory Used# [2025-01-22 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:11:05 [end_date_ymd] => 2025-01-22 10:11:05 [RateCDR] => 1 ) [2025-01-22 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:11:05' and `end` < '2025-01-22 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:11:25] Production.INFO: count ==2249 [2025-01-22 10:11:26] Production.ERROR: pbx CDR StartTime 2025-01-22 07:11:05 - End Time 2025-01-22 10:11:05 [2025-01-22 10:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304294', 'tblTempUsageDetail_20' ) start [2025-01-22 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304294', 'tblTempUsageDetail_20' ) end [2025-01-22 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304294', 'tblTempVendorCDR_20' ) start [2025-01-22 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304294', 'tblTempVendorCDR_20' ) end [2025-01-22 10:11:26] Production.INFO: ProcessCDR(1,14304294,1,1,2) [2025-01-22 10:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304294', 'tblTempUsageDetail_20' ) start [2025-01-22 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304294', 'tblTempUsageDetail_20' ) end [2025-01-22 10:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:11:31] Production.INFO: ==18588== Releasing lock... [2025-01-22 10:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:11:31] Production.INFO: 45 MB #Memory Used# [2025-01-22 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:12:05 [end_date_ymd] => 2025-01-22 10:12:05 [RateCDR] => 1 ) [2025-01-22 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:12:05' and `end` < '2025-01-22 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:12:23] Production.INFO: count ==2260 [2025-01-22 10:12:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:12:05 - End Time 2025-01-22 10:12:05 [2025-01-22 10:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304299', 'tblTempUsageDetail_20' ) start [2025-01-22 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304299', 'tblTempUsageDetail_20' ) end [2025-01-22 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304299', 'tblTempVendorCDR_20' ) start [2025-01-22 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304299', 'tblTempVendorCDR_20' ) end [2025-01-22 10:12:24] Production.INFO: ProcessCDR(1,14304299,1,1,2) [2025-01-22 10:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304299', 'tblTempUsageDetail_20' ) start [2025-01-22 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304299', 'tblTempUsageDetail_20' ) end [2025-01-22 10:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:12:30] Production.INFO: ==18666== Releasing lock... [2025-01-22 10:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:12:30] Production.INFO: 45.25 MB #Memory Used# [2025-01-22 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:13:05 [end_date_ymd] => 2025-01-22 10:13:05 [RateCDR] => 1 ) [2025-01-22 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:13:05' and `end` < '2025-01-22 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:13:23] Production.INFO: count ==2295 [2025-01-22 10:13:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:13:05 - End Time 2025-01-22 10:13:05 [2025-01-22 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304304', 'tblTempUsageDetail_20' ) start [2025-01-22 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304304', 'tblTempUsageDetail_20' ) end [2025-01-22 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304304', 'tblTempVendorCDR_20' ) start [2025-01-22 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304304', 'tblTempVendorCDR_20' ) end [2025-01-22 10:13:24] Production.INFO: ProcessCDR(1,14304304,1,1,2) [2025-01-22 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304304', 'tblTempUsageDetail_20' ) start [2025-01-22 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304304', 'tblTempUsageDetail_20' ) end [2025-01-22 10:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:13:29] Production.INFO: ==18741== Releasing lock... [2025-01-22 10:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:13:29] Production.INFO: 45.25 MB #Memory Used# [2025-01-22 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:14:05 [end_date_ymd] => 2025-01-22 10:14:05 [RateCDR] => 1 ) [2025-01-22 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:14:05' and `end` < '2025-01-22 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:14:23] Production.INFO: count ==2310 [2025-01-22 10:14:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:14:05 - End Time 2025-01-22 10:14:05 [2025-01-22 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304309', 'tblTempUsageDetail_20' ) start [2025-01-22 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304309', 'tblTempUsageDetail_20' ) end [2025-01-22 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304309', 'tblTempVendorCDR_20' ) start [2025-01-22 10:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304309', 'tblTempVendorCDR_20' ) end [2025-01-22 10:14:24] Production.INFO: ProcessCDR(1,14304309,1,1,2) [2025-01-22 10:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304309', 'tblTempUsageDetail_20' ) start [2025-01-22 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304309', 'tblTempUsageDetail_20' ) end [2025-01-22 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:14:28] Production.INFO: ==18819== Releasing lock... [2025-01-22 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:14:28] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:15:05 [end_date_ymd] => 2025-01-22 10:15:05 [RateCDR] => 1 ) [2025-01-22 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:15:05' and `end` < '2025-01-22 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:15:22] Production.INFO: count ==2319 [2025-01-22 10:15:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:15:05 - End Time 2025-01-22 10:15:05 [2025-01-22 10:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304314', 'tblTempUsageDetail_20' ) start [2025-01-22 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304314', 'tblTempUsageDetail_20' ) end [2025-01-22 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304314', 'tblTempVendorCDR_20' ) start [2025-01-22 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304314', 'tblTempVendorCDR_20' ) end [2025-01-22 10:15:23] Production.INFO: ProcessCDR(1,14304314,1,1,2) [2025-01-22 10:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304314', 'tblTempUsageDetail_20' ) start [2025-01-22 10:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304314', 'tblTempUsageDetail_20' ) end [2025-01-22 10:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:15:27] Production.INFO: ==18936== Releasing lock... [2025-01-22 10:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:15:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-22 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:16:06 [end_date_ymd] => 2025-01-22 10:16:06 [RateCDR] => 1 ) [2025-01-22 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:16:06' and `end` < '2025-01-22 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:16:24] Production.INFO: count ==2331 [2025-01-22 10:16:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:16:06 - End Time 2025-01-22 10:16:06 [2025-01-22 10:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304319', 'tblTempUsageDetail_20' ) start [2025-01-22 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304319', 'tblTempUsageDetail_20' ) end [2025-01-22 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304319', 'tblTempVendorCDR_20' ) start [2025-01-22 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304319', 'tblTempVendorCDR_20' ) end [2025-01-22 10:16:25] Production.INFO: ProcessCDR(1,14304319,1,1,2) [2025-01-22 10:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304319', 'tblTempUsageDetail_20' ) start [2025-01-22 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304319', 'tblTempUsageDetail_20' ) end [2025-01-22 10:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:16:29] Production.INFO: ==19013== Releasing lock... [2025-01-22 10:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:16:29] Production.INFO: 45.5 MB #Memory Used# [2025-01-22 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:17:05 [end_date_ymd] => 2025-01-22 10:17:05 [RateCDR] => 1 ) [2025-01-22 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:17:05' and `end` < '2025-01-22 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:17:24] Production.INFO: count ==2335 [2025-01-22 10:17:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:17:05 - End Time 2025-01-22 10:17:05 [2025-01-22 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304324', 'tblTempUsageDetail_20' ) start [2025-01-22 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304324', 'tblTempUsageDetail_20' ) end [2025-01-22 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304324', 'tblTempVendorCDR_20' ) start [2025-01-22 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304324', 'tblTempVendorCDR_20' ) end [2025-01-22 10:17:25] Production.INFO: ProcessCDR(1,14304324,1,1,2) [2025-01-22 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304324', 'tblTempUsageDetail_20' ) start [2025-01-22 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304324', 'tblTempUsageDetail_20' ) end [2025-01-22 10:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:17:29] Production.INFO: ==19089== Releasing lock... [2025-01-22 10:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:17:29] Production.INFO: 45.5 MB #Memory Used# [2025-01-22 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:18:06 [end_date_ymd] => 2025-01-22 10:18:06 [RateCDR] => 1 ) [2025-01-22 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:18:06' and `end` < '2025-01-22 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:18:21] Production.INFO: count ==2353 [2025-01-22 10:18:21] Production.ERROR: pbx CDR StartTime 2025-01-22 07:18:06 - End Time 2025-01-22 10:18:06 [2025-01-22 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304329', 'tblTempUsageDetail_20' ) start [2025-01-22 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304329', 'tblTempUsageDetail_20' ) end [2025-01-22 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304329', 'tblTempVendorCDR_20' ) start [2025-01-22 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304329', 'tblTempVendorCDR_20' ) end [2025-01-22 10:18:22] Production.INFO: ProcessCDR(1,14304329,1,1,2) [2025-01-22 10:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304329', 'tblTempUsageDetail_20' ) start [2025-01-22 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304329', 'tblTempUsageDetail_20' ) end [2025-01-22 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:18:26] Production.INFO: ==19165== Releasing lock... [2025-01-22 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:18:26] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:19:05 [end_date_ymd] => 2025-01-22 10:19:05 [RateCDR] => 1 ) [2025-01-22 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:19:05' and `end` < '2025-01-22 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:19:23] Production.INFO: count ==2361 [2025-01-22 10:19:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:19:05 - End Time 2025-01-22 10:19:05 [2025-01-22 10:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304334', 'tblTempUsageDetail_20' ) start [2025-01-22 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304334', 'tblTempUsageDetail_20' ) end [2025-01-22 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304334', 'tblTempVendorCDR_20' ) start [2025-01-22 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304334', 'tblTempVendorCDR_20' ) end [2025-01-22 10:19:24] Production.INFO: ProcessCDR(1,14304334,1,1,2) [2025-01-22 10:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304334', 'tblTempUsageDetail_20' ) start [2025-01-22 10:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304334', 'tblTempUsageDetail_20' ) end [2025-01-22 10:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:19:29] Production.INFO: ==19241== Releasing lock... [2025-01-22 10:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:19:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:20:06 [end_date_ymd] => 2025-01-22 10:20:06 [RateCDR] => 1 ) [2025-01-22 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:20:06' and `end` < '2025-01-22 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:20:27] Production.INFO: count ==2384 [2025-01-22 10:20:28] Production.ERROR: pbx CDR StartTime 2025-01-22 07:20:06 - End Time 2025-01-22 10:20:06 [2025-01-22 10:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304338', 'tblTempUsageDetail_20' ) start [2025-01-22 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304338', 'tblTempUsageDetail_20' ) end [2025-01-22 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304338', 'tblTempVendorCDR_20' ) start [2025-01-22 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304338', 'tblTempVendorCDR_20' ) end [2025-01-22 10:20:28] Production.INFO: ProcessCDR(1,14304338,1,1,2) [2025-01-22 10:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304338', 'tblTempUsageDetail_20' ) start [2025-01-22 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304338', 'tblTempUsageDetail_20' ) end [2025-01-22 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:20:32] Production.INFO: ==19321== Releasing lock... [2025-01-22 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:20:32] Production.INFO: 46 MB #Memory Used# [2025-01-22 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:21:05 [end_date_ymd] => 2025-01-22 10:21:05 [RateCDR] => 1 ) [2025-01-22 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:21:05' and `end` < '2025-01-22 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:21:20] Production.INFO: count ==2511 [2025-01-22 10:21:21] Production.ERROR: pbx CDR StartTime 2025-01-22 07:21:05 - End Time 2025-01-22 10:21:05 [2025-01-22 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304345', 'tblTempUsageDetail_20' ) start [2025-01-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304345', 'tblTempUsageDetail_20' ) end [2025-01-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304345', 'tblTempVendorCDR_20' ) start [2025-01-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304345', 'tblTempVendorCDR_20' ) end [2025-01-22 10:21:21] Production.INFO: ProcessCDR(1,14304345,1,1,2) [2025-01-22 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304345', 'tblTempUsageDetail_20' ) start [2025-01-22 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304345', 'tblTempUsageDetail_20' ) end [2025-01-22 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:21:25] Production.INFO: ==19401== Releasing lock... [2025-01-22 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:21:25] Production.INFO: 47 MB #Memory Used# [2025-01-22 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:22:05 [end_date_ymd] => 2025-01-22 10:22:05 [RateCDR] => 1 ) [2025-01-22 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:22:05' and `end` < '2025-01-22 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:22:25] Production.INFO: count ==2529 [2025-01-22 10:22:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:22:05 - End Time 2025-01-22 10:22:05 [2025-01-22 10:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304350', 'tblTempUsageDetail_20' ) start [2025-01-22 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304350', 'tblTempUsageDetail_20' ) end [2025-01-22 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304350', 'tblTempVendorCDR_20' ) start [2025-01-22 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304350', 'tblTempVendorCDR_20' ) end [2025-01-22 10:22:26] Production.INFO: ProcessCDR(1,14304350,1,1,2) [2025-01-22 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304350', 'tblTempUsageDetail_20' ) start [2025-01-22 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304350', 'tblTempUsageDetail_20' ) end [2025-01-22 10:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:22:31] Production.INFO: ==19478== Releasing lock... [2025-01-22 10:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:22:31] Production.INFO: 47 MB #Memory Used# [2025-01-22 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:23:05 [end_date_ymd] => 2025-01-22 10:23:05 [RateCDR] => 1 ) [2025-01-22 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:23:05' and `end` < '2025-01-22 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:23:24] Production.INFO: count ==2545 [2025-01-22 10:23:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:23:05 - End Time 2025-01-22 10:23:05 [2025-01-22 10:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304355', 'tblTempUsageDetail_20' ) start [2025-01-22 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304355', 'tblTempUsageDetail_20' ) end [2025-01-22 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304355', 'tblTempVendorCDR_20' ) start [2025-01-22 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304355', 'tblTempVendorCDR_20' ) end [2025-01-22 10:23:25] Production.INFO: ProcessCDR(1,14304355,1,1,2) [2025-01-22 10:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304355', 'tblTempUsageDetail_20' ) start [2025-01-22 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304355', 'tblTempUsageDetail_20' ) end [2025-01-22 10:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:23:30] Production.INFO: ==19557== Releasing lock... [2025-01-22 10:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:23:30] Production.INFO: 47.25 MB #Memory Used# [2025-01-22 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:24:06 [end_date_ymd] => 2025-01-22 10:24:06 [RateCDR] => 1 ) [2025-01-22 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:24:06' and `end` < '2025-01-22 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:24:29] Production.INFO: count ==2557 [2025-01-22 10:24:30] Production.ERROR: pbx CDR StartTime 2025-01-22 07:24:06 - End Time 2025-01-22 10:24:06 [2025-01-22 10:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304360', 'tblTempUsageDetail_20' ) start [2025-01-22 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304360', 'tblTempUsageDetail_20' ) end [2025-01-22 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304360', 'tblTempVendorCDR_20' ) start [2025-01-22 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304360', 'tblTempVendorCDR_20' ) end [2025-01-22 10:24:30] Production.INFO: ProcessCDR(1,14304360,1,1,2) [2025-01-22 10:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304360', 'tblTempUsageDetail_20' ) start [2025-01-22 10:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304360', 'tblTempUsageDetail_20' ) end [2025-01-22 10:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:24:35] Production.INFO: ==19634== Releasing lock... [2025-01-22 10:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:24:35] Production.INFO: 47.25 MB #Memory Used# [2025-01-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:25:05 [end_date_ymd] => 2025-01-22 10:25:05 [RateCDR] => 1 ) [2025-01-22 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:25:05' and `end` < '2025-01-22 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:25:31] Production.INFO: count ==2576 [2025-01-22 10:25:32] Production.ERROR: pbx CDR StartTime 2025-01-22 07:25:05 - End Time 2025-01-22 10:25:05 [2025-01-22 10:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304365', 'tblTempUsageDetail_20' ) start [2025-01-22 10:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304365', 'tblTempUsageDetail_20' ) end [2025-01-22 10:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304365', 'tblTempVendorCDR_20' ) start [2025-01-22 10:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304365', 'tblTempVendorCDR_20' ) end [2025-01-22 10:25:32] Production.INFO: ProcessCDR(1,14304365,1,1,2) [2025-01-22 10:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304365', 'tblTempUsageDetail_20' ) start [2025-01-22 10:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304365', 'tblTempUsageDetail_20' ) end [2025-01-22 10:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:25:37] Production.INFO: ==19712== Releasing lock... [2025-01-22 10:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:25:37] Production.INFO: 47.5 MB #Memory Used# [2025-01-22 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:26:05 [end_date_ymd] => 2025-01-22 10:26:05 [RateCDR] => 1 ) [2025-01-22 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:26:05' and `end` < '2025-01-22 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:26:23] Production.INFO: count ==2583 [2025-01-22 10:26:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:26:05 - End Time 2025-01-22 10:26:05 [2025-01-22 10:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304370', 'tblTempUsageDetail_20' ) start [2025-01-22 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304370', 'tblTempUsageDetail_20' ) end [2025-01-22 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304370', 'tblTempVendorCDR_20' ) start [2025-01-22 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304370', 'tblTempVendorCDR_20' ) end [2025-01-22 10:26:23] Production.INFO: ProcessCDR(1,14304370,1,1,2) [2025-01-22 10:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304370', 'tblTempUsageDetail_20' ) start [2025-01-22 10:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304370', 'tblTempUsageDetail_20' ) end [2025-01-22 10:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:26:28] Production.INFO: ==19792== Releasing lock... [2025-01-22 10:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:26:28] Production.INFO: 47.5 MB #Memory Used# [2025-01-22 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:27:05 [end_date_ymd] => 2025-01-22 10:27:05 [RateCDR] => 1 ) [2025-01-22 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:27:05' and `end` < '2025-01-22 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:27:30] Production.INFO: count ==2598 [2025-01-22 10:27:30] Production.ERROR: pbx CDR StartTime 2025-01-22 07:27:05 - End Time 2025-01-22 10:27:05 [2025-01-22 10:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304375', 'tblTempUsageDetail_20' ) start [2025-01-22 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304375', 'tblTempUsageDetail_20' ) end [2025-01-22 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304375', 'tblTempVendorCDR_20' ) start [2025-01-22 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304375', 'tblTempVendorCDR_20' ) end [2025-01-22 10:27:30] Production.INFO: ProcessCDR(1,14304375,1,1,2) [2025-01-22 10:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304375', 'tblTempUsageDetail_20' ) start [2025-01-22 10:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304375', 'tblTempUsageDetail_20' ) end [2025-01-22 10:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:27:35] Production.INFO: ==19874== Releasing lock... [2025-01-22 10:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:27:35] Production.INFO: 47.5 MB #Memory Used# [2025-01-22 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:28:05 [end_date_ymd] => 2025-01-22 10:28:05 [RateCDR] => 1 ) [2025-01-22 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:28:05' and `end` < '2025-01-22 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:28:28] Production.INFO: count ==2622 [2025-01-22 10:28:29] Production.ERROR: pbx CDR StartTime 2025-01-22 07:28:05 - End Time 2025-01-22 10:28:05 [2025-01-22 10:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304380', 'tblTempUsageDetail_20' ) start [2025-01-22 10:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304380', 'tblTempUsageDetail_20' ) end [2025-01-22 10:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304380', 'tblTempVendorCDR_20' ) start [2025-01-22 10:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304380', 'tblTempVendorCDR_20' ) end [2025-01-22 10:28:29] Production.INFO: ProcessCDR(1,14304380,1,1,2) [2025-01-22 10:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304380', 'tblTempUsageDetail_20' ) start [2025-01-22 10:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304380', 'tblTempUsageDetail_20' ) end [2025-01-22 10:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:28:34] Production.INFO: ==19956== Releasing lock... [2025-01-22 10:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:28:34] Production.INFO: 47.75 MB #Memory Used# [2025-01-22 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:29:05 [end_date_ymd] => 2025-01-22 10:29:05 [RateCDR] => 1 ) [2025-01-22 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:29:05' and `end` < '2025-01-22 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:29:22] Production.INFO: count ==2658 [2025-01-22 10:29:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:29:05 - End Time 2025-01-22 10:29:05 [2025-01-22 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304385', 'tblTempUsageDetail_20' ) start [2025-01-22 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304385', 'tblTempUsageDetail_20' ) end [2025-01-22 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304385', 'tblTempVendorCDR_20' ) start [2025-01-22 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304385', 'tblTempVendorCDR_20' ) end [2025-01-22 10:29:23] Production.INFO: ProcessCDR(1,14304385,1,1,2) [2025-01-22 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304385', 'tblTempUsageDetail_20' ) start [2025-01-22 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304385', 'tblTempUsageDetail_20' ) end [2025-01-22 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:29:28] Production.INFO: ==20038== Releasing lock... [2025-01-22 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:29:28] Production.INFO: 48 MB #Memory Used# [2025-01-22 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:30:05 [end_date_ymd] => 2025-01-22 10:30:05 [RateCDR] => 1 ) [2025-01-22 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:30:05' and `end` < '2025-01-22 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:30:31] Production.INFO: count ==2684 [2025-01-22 10:30:32] Production.ERROR: pbx CDR StartTime 2025-01-22 07:30:05 - End Time 2025-01-22 10:30:05 [2025-01-22 10:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304390', 'tblTempUsageDetail_20' ) start [2025-01-22 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304390', 'tblTempUsageDetail_20' ) end [2025-01-22 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304390', 'tblTempVendorCDR_20' ) start [2025-01-22 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304390', 'tblTempVendorCDR_20' ) end [2025-01-22 10:30:32] Production.INFO: ProcessCDR(1,14304390,1,1,2) [2025-01-22 10:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304390', 'tblTempUsageDetail_20' ) start [2025-01-22 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304390', 'tblTempUsageDetail_20' ) end [2025-01-22 10:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:30:36] Production.INFO: ==20120== Releasing lock... [2025-01-22 10:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:30:36] Production.INFO: 48.25 MB #Memory Used# [2025-01-22 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:31:05 [end_date_ymd] => 2025-01-22 10:31:05 [RateCDR] => 1 ) [2025-01-22 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:31:05' and `end` < '2025-01-22 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:31:26] Production.INFO: count ==2804 [2025-01-22 10:31:26] Production.ERROR: pbx CDR StartTime 2025-01-22 07:31:05 - End Time 2025-01-22 10:31:05 [2025-01-22 10:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304396', 'tblTempUsageDetail_20' ) start [2025-01-22 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304396', 'tblTempUsageDetail_20' ) end [2025-01-22 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304396', 'tblTempVendorCDR_20' ) start [2025-01-22 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304396', 'tblTempVendorCDR_20' ) end [2025-01-22 10:31:27] Production.INFO: ProcessCDR(1,14304396,1,1,2) [2025-01-22 10:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304396', 'tblTempUsageDetail_20' ) start [2025-01-22 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304396', 'tblTempUsageDetail_20' ) end [2025-01-22 10:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:31:31] Production.INFO: ==20242== Releasing lock... [2025-01-22 10:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:31:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-22 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:32:05 [end_date_ymd] => 2025-01-22 10:32:05 [RateCDR] => 1 ) [2025-01-22 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:32:05' and `end` < '2025-01-22 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:32:23] Production.INFO: count ==2817 [2025-01-22 10:32:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:32:05 - End Time 2025-01-22 10:32:05 [2025-01-22 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304401', 'tblTempUsageDetail_20' ) start [2025-01-22 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304401', 'tblTempUsageDetail_20' ) end [2025-01-22 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304401', 'tblTempVendorCDR_20' ) start [2025-01-22 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304401', 'tblTempVendorCDR_20' ) end [2025-01-22 10:32:24] Production.INFO: ProcessCDR(1,14304401,1,1,2) [2025-01-22 10:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304401', 'tblTempUsageDetail_20' ) start [2025-01-22 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304401', 'tblTempUsageDetail_20' ) end [2025-01-22 10:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:32:28] Production.INFO: ==20323== Releasing lock... [2025-01-22 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:32:28] Production.INFO: 49.25 MB #Memory Used# [2025-01-22 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:33:05 [end_date_ymd] => 2025-01-22 10:33:05 [RateCDR] => 1 ) [2025-01-22 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:33:05' and `end` < '2025-01-22 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:33:25] Production.INFO: count ==2829 [2025-01-22 10:33:26] Production.ERROR: pbx CDR StartTime 2025-01-22 07:33:05 - End Time 2025-01-22 10:33:05 [2025-01-22 10:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304406', 'tblTempUsageDetail_20' ) start [2025-01-22 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304406', 'tblTempUsageDetail_20' ) end [2025-01-22 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304406', 'tblTempVendorCDR_20' ) start [2025-01-22 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304406', 'tblTempVendorCDR_20' ) end [2025-01-22 10:33:26] Production.INFO: ProcessCDR(1,14304406,1,1,2) [2025-01-22 10:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304406', 'tblTempUsageDetail_20' ) start [2025-01-22 10:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304406', 'tblTempUsageDetail_20' ) end [2025-01-22 10:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:33:31] Production.INFO: ==20404== Releasing lock... [2025-01-22 10:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:33:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-22 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:34:05 [end_date_ymd] => 2025-01-22 10:34:05 [RateCDR] => 1 ) [2025-01-22 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:34:05' and `end` < '2025-01-22 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:34:23] Production.INFO: count ==2855 [2025-01-22 10:34:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:34:05 - End Time 2025-01-22 10:34:05 [2025-01-22 10:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304411', 'tblTempUsageDetail_20' ) start [2025-01-22 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304411', 'tblTempUsageDetail_20' ) end [2025-01-22 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304411', 'tblTempVendorCDR_20' ) start [2025-01-22 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304411', 'tblTempVendorCDR_20' ) end [2025-01-22 10:34:24] Production.INFO: ProcessCDR(1,14304411,1,1,2) [2025-01-22 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304411', 'tblTempUsageDetail_20' ) start [2025-01-22 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304411', 'tblTempUsageDetail_20' ) end [2025-01-22 10:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:34:28] Production.INFO: ==20486== Releasing lock... [2025-01-22 10:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:34:28] Production.INFO: 49.5 MB #Memory Used# [2025-01-22 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:35:05 [end_date_ymd] => 2025-01-22 10:35:05 [RateCDR] => 1 ) [2025-01-22 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:35:05' and `end` < '2025-01-22 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:35:22] Production.INFO: count ==2877 [2025-01-22 10:35:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:35:05 - End Time 2025-01-22 10:35:05 [2025-01-22 10:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304416', 'tblTempUsageDetail_20' ) start [2025-01-22 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304416', 'tblTempUsageDetail_20' ) end [2025-01-22 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304416', 'tblTempVendorCDR_20' ) start [2025-01-22 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304416', 'tblTempVendorCDR_20' ) end [2025-01-22 10:35:23] Production.INFO: ProcessCDR(1,14304416,1,1,2) [2025-01-22 10:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304416', 'tblTempUsageDetail_20' ) start [2025-01-22 10:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304416', 'tblTempUsageDetail_20' ) end [2025-01-22 10:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:35:28] Production.INFO: ==20568== Releasing lock... [2025-01-22 10:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:35:28] Production.INFO: 49.5 MB #Memory Used# [2025-01-22 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:36:04 [end_date_ymd] => 2025-01-22 10:36:04 [RateCDR] => 1 ) [2025-01-22 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:36:04' and `end` < '2025-01-22 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:36:18] Production.INFO: count ==2884 [2025-01-22 10:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 07:36:04 - End Time 2025-01-22 10:36:04 [2025-01-22 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304421', 'tblTempUsageDetail_20' ) start [2025-01-22 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304421', 'tblTempUsageDetail_20' ) end [2025-01-22 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304421', 'tblTempVendorCDR_20' ) start [2025-01-22 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304421', 'tblTempVendorCDR_20' ) end [2025-01-22 10:36:19] Production.INFO: ProcessCDR(1,14304421,1,1,2) [2025-01-22 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304421', 'tblTempUsageDetail_20' ) start [2025-01-22 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304421', 'tblTempUsageDetail_20' ) end [2025-01-22 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:36:23] Production.INFO: ==20649== Releasing lock... [2025-01-22 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:36:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-22 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:37:05 [end_date_ymd] => 2025-01-22 10:37:05 [RateCDR] => 1 ) [2025-01-22 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:37:05' and `end` < '2025-01-22 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:37:19] Production.INFO: count ==2902 [2025-01-22 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-22 07:37:05 - End Time 2025-01-22 10:37:05 [2025-01-22 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304426', 'tblTempUsageDetail_20' ) start [2025-01-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304426', 'tblTempUsageDetail_20' ) end [2025-01-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304426', 'tblTempVendorCDR_20' ) start [2025-01-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304426', 'tblTempVendorCDR_20' ) end [2025-01-22 10:37:20] Production.INFO: ProcessCDR(1,14304426,1,1,2) [2025-01-22 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304426', 'tblTempUsageDetail_20' ) start [2025-01-22 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304426', 'tblTempUsageDetail_20' ) end [2025-01-22 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:37:25] Production.INFO: ==20737== Releasing lock... [2025-01-22 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:37:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-22 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:38:04 [end_date_ymd] => 2025-01-22 10:38:04 [RateCDR] => 1 ) [2025-01-22 10:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:38:04' and `end` < '2025-01-22 10:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:38:21] Production.INFO: count ==2919 [2025-01-22 10:38:22] Production.ERROR: pbx CDR StartTime 2025-01-22 07:38:04 - End Time 2025-01-22 10:38:04 [2025-01-22 10:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304431', 'tblTempUsageDetail_20' ) start [2025-01-22 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304431', 'tblTempUsageDetail_20' ) end [2025-01-22 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304431', 'tblTempVendorCDR_20' ) start [2025-01-22 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304431', 'tblTempVendorCDR_20' ) end [2025-01-22 10:38:22] Production.INFO: ProcessCDR(1,14304431,1,1,2) [2025-01-22 10:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304431', 'tblTempUsageDetail_20' ) start [2025-01-22 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304431', 'tblTempUsageDetail_20' ) end [2025-01-22 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:38:27] Production.INFO: ==20823== Releasing lock... [2025-01-22 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:38:27] Production.INFO: 50.5 MB #Memory Used# [2025-01-22 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:39:05 [end_date_ymd] => 2025-01-22 10:39:05 [RateCDR] => 1 ) [2025-01-22 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:39:05' and `end` < '2025-01-22 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:39:23] Production.INFO: count ==2940 [2025-01-22 10:39:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:39:05 - End Time 2025-01-22 10:39:05 [2025-01-22 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304436', 'tblTempUsageDetail_20' ) start [2025-01-22 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304436', 'tblTempUsageDetail_20' ) end [2025-01-22 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304436', 'tblTempVendorCDR_20' ) start [2025-01-22 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304436', 'tblTempVendorCDR_20' ) end [2025-01-22 10:39:24] Production.INFO: ProcessCDR(1,14304436,1,1,2) [2025-01-22 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304436', 'tblTempUsageDetail_20' ) start [2025-01-22 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304436', 'tblTempUsageDetail_20' ) end [2025-01-22 10:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:39:29] Production.INFO: ==20904== Releasing lock... [2025-01-22 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:39:29] Production.INFO: 50 MB #Memory Used# [2025-01-22 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:40:05 [end_date_ymd] => 2025-01-22 10:40:05 [RateCDR] => 1 ) [2025-01-22 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:40:05' and `end` < '2025-01-22 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:40:31] Production.INFO: count ==2973 [2025-01-22 10:40:32] Production.ERROR: pbx CDR StartTime 2025-01-22 07:40:05 - End Time 2025-01-22 10:40:05 [2025-01-22 10:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304442', 'tblTempUsageDetail_20' ) start [2025-01-22 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304442', 'tblTempUsageDetail_20' ) end [2025-01-22 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304442', 'tblTempVendorCDR_20' ) start [2025-01-22 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304442', 'tblTempVendorCDR_20' ) end [2025-01-22 10:40:32] Production.INFO: ProcessCDR(1,14304442,1,1,2) [2025-01-22 10:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304442', 'tblTempUsageDetail_20' ) start [2025-01-22 10:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304442', 'tblTempUsageDetail_20' ) end [2025-01-22 10:40:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:40:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:40:37] Production.INFO: ==20990== Releasing lock... [2025-01-22 10:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:40:37] Production.INFO: 50 MB #Memory Used# [2025-01-22 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:41:05 [end_date_ymd] => 2025-01-22 10:41:05 [RateCDR] => 1 ) [2025-01-22 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:41:05' and `end` < '2025-01-22 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:41:23] Production.INFO: count ==3107 [2025-01-22 10:41:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:41:05 - End Time 2025-01-22 10:41:05 [2025-01-22 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304447', 'tblTempUsageDetail_20' ) start [2025-01-22 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304447', 'tblTempUsageDetail_20' ) end [2025-01-22 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304447', 'tblTempVendorCDR_20' ) start [2025-01-22 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304447', 'tblTempVendorCDR_20' ) end [2025-01-22 10:41:24] Production.INFO: ProcessCDR(1,14304447,1,1,2) [2025-01-22 10:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304447', 'tblTempUsageDetail_20' ) start [2025-01-22 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304447', 'tblTempUsageDetail_20' ) end [2025-01-22 10:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:41:28] Production.INFO: ==21072== Releasing lock... [2025-01-22 10:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:41:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-22 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:42:05 [end_date_ymd] => 2025-01-22 10:42:05 [RateCDR] => 1 ) [2025-01-22 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:42:05' and `end` < '2025-01-22 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:42:28] Production.INFO: count ==3131 [2025-01-22 10:42:29] Production.ERROR: pbx CDR StartTime 2025-01-22 07:42:05 - End Time 2025-01-22 10:42:05 [2025-01-22 10:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304452', 'tblTempUsageDetail_20' ) start [2025-01-22 10:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304452', 'tblTempUsageDetail_20' ) end [2025-01-22 10:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304452', 'tblTempVendorCDR_20' ) start [2025-01-22 10:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304452', 'tblTempVendorCDR_20' ) end [2025-01-22 10:42:29] Production.INFO: ProcessCDR(1,14304452,1,1,2) [2025-01-22 10:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304452', 'tblTempUsageDetail_20' ) start [2025-01-22 10:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304452', 'tblTempUsageDetail_20' ) end [2025-01-22 10:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:42:34] Production.INFO: ==21151== Releasing lock... [2025-01-22 10:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:42:34] Production.INFO: 51.5 MB #Memory Used# [2025-01-22 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:43:05 [end_date_ymd] => 2025-01-22 10:43:05 [RateCDR] => 1 ) [2025-01-22 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:43:05' and `end` < '2025-01-22 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:43:23] Production.INFO: count ==3140 [2025-01-22 10:43:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:43:05 - End Time 2025-01-22 10:43:05 [2025-01-22 10:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304457', 'tblTempUsageDetail_20' ) start [2025-01-22 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304457', 'tblTempUsageDetail_20' ) end [2025-01-22 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304457', 'tblTempVendorCDR_20' ) start [2025-01-22 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304457', 'tblTempVendorCDR_20' ) end [2025-01-22 10:43:24] Production.INFO: ProcessCDR(1,14304457,1,1,2) [2025-01-22 10:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304457', 'tblTempUsageDetail_20' ) start [2025-01-22 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304457', 'tblTempUsageDetail_20' ) end [2025-01-22 10:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:43:29] Production.INFO: ==21225== Releasing lock... [2025-01-22 10:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:43:29] Production.INFO: 51.75 MB #Memory Used# [2025-01-22 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:44:05 [end_date_ymd] => 2025-01-22 10:44:05 [RateCDR] => 1 ) [2025-01-22 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:44:05' and `end` < '2025-01-22 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:44:25] Production.INFO: count ==3167 [2025-01-22 10:44:26] Production.ERROR: pbx CDR StartTime 2025-01-22 07:44:05 - End Time 2025-01-22 10:44:05 [2025-01-22 10:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304462', 'tblTempUsageDetail_20' ) start [2025-01-22 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304462', 'tblTempUsageDetail_20' ) end [2025-01-22 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304462', 'tblTempVendorCDR_20' ) start [2025-01-22 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304462', 'tblTempVendorCDR_20' ) end [2025-01-22 10:44:26] Production.INFO: ProcessCDR(1,14304462,1,1,2) [2025-01-22 10:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304462', 'tblTempUsageDetail_20' ) start [2025-01-22 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304462', 'tblTempUsageDetail_20' ) end [2025-01-22 10:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:44:31] Production.INFO: ==21301== Releasing lock... [2025-01-22 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:44:31] Production.INFO: 51.75 MB #Memory Used# [2025-01-22 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:45:05 [end_date_ymd] => 2025-01-22 10:45:05 [RateCDR] => 1 ) [2025-01-22 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:45:05' and `end` < '2025-01-22 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:45:24] Production.INFO: count ==3178 [2025-01-22 10:45:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:45:05 - End Time 2025-01-22 10:45:05 [2025-01-22 10:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304467', 'tblTempUsageDetail_20' ) start [2025-01-22 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304467', 'tblTempUsageDetail_20' ) end [2025-01-22 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304467', 'tblTempVendorCDR_20' ) start [2025-01-22 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304467', 'tblTempVendorCDR_20' ) end [2025-01-22 10:45:25] Production.INFO: ProcessCDR(1,14304467,1,1,2) [2025-01-22 10:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304467', 'tblTempUsageDetail_20' ) start [2025-01-22 10:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304467', 'tblTempUsageDetail_20' ) end [2025-01-22 10:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:45:29] Production.INFO: ==21377== Releasing lock... [2025-01-22 10:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:45:29] Production.INFO: 51.75 MB #Memory Used# [2025-01-22 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:46:05 [end_date_ymd] => 2025-01-22 10:46:05 [RateCDR] => 1 ) [2025-01-22 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:46:05' and `end` < '2025-01-22 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:46:22] Production.INFO: count ==3205 [2025-01-22 10:46:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:46:05 - End Time 2025-01-22 10:46:05 [2025-01-22 10:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304472', 'tblTempUsageDetail_20' ) start [2025-01-22 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304472', 'tblTempUsageDetail_20' ) end [2025-01-22 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304472', 'tblTempVendorCDR_20' ) start [2025-01-22 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304472', 'tblTempVendorCDR_20' ) end [2025-01-22 10:46:23] Production.INFO: ProcessCDR(1,14304472,1,1,2) [2025-01-22 10:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304472', 'tblTempUsageDetail_20' ) start [2025-01-22 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304472', 'tblTempUsageDetail_20' ) end [2025-01-22 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:46:28] Production.INFO: ==21491== Releasing lock... [2025-01-22 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:46:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-22 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:47:05 [end_date_ymd] => 2025-01-22 10:47:05 [RateCDR] => 1 ) [2025-01-22 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:47:05' and `end` < '2025-01-22 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:47:22] Production.INFO: count ==3237 [2025-01-22 10:47:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:47:05 - End Time 2025-01-22 10:47:05 [2025-01-22 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304477', 'tblTempUsageDetail_20' ) start [2025-01-22 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304477', 'tblTempUsageDetail_20' ) end [2025-01-22 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304477', 'tblTempVendorCDR_20' ) start [2025-01-22 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304477', 'tblTempVendorCDR_20' ) end [2025-01-22 10:47:23] Production.INFO: ProcessCDR(1,14304477,1,1,2) [2025-01-22 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304477', 'tblTempUsageDetail_20' ) start [2025-01-22 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304477', 'tblTempUsageDetail_20' ) end [2025-01-22 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:47:28] Production.INFO: ==21569== Releasing lock... [2025-01-22 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:47:28] Production.INFO: 52.5 MB #Memory Used# [2025-01-22 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:48:05 [end_date_ymd] => 2025-01-22 10:48:05 [RateCDR] => 1 ) [2025-01-22 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:48:05' and `end` < '2025-01-22 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:48:22] Production.INFO: count ==3250 [2025-01-22 10:48:23] Production.ERROR: pbx CDR StartTime 2025-01-22 07:48:05 - End Time 2025-01-22 10:48:05 [2025-01-22 10:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304482', 'tblTempUsageDetail_20' ) start [2025-01-22 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304482', 'tblTempUsageDetail_20' ) end [2025-01-22 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304482', 'tblTempVendorCDR_20' ) start [2025-01-22 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304482', 'tblTempVendorCDR_20' ) end [2025-01-22 10:48:23] Production.INFO: ProcessCDR(1,14304482,1,1,2) [2025-01-22 10:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304482', 'tblTempUsageDetail_20' ) start [2025-01-22 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304482', 'tblTempUsageDetail_20' ) end [2025-01-22 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:48:28] Production.INFO: ==21649== Releasing lock... [2025-01-22 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:48:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-22 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:49:06 [end_date_ymd] => 2025-01-22 10:49:06 [RateCDR] => 1 ) [2025-01-22 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:49:06' and `end` < '2025-01-22 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:49:33] Production.INFO: count ==3276 [2025-01-22 10:49:34] Production.ERROR: pbx CDR StartTime 2025-01-22 07:49:06 - End Time 2025-01-22 10:49:06 [2025-01-22 10:49:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304487', 'tblTempUsageDetail_20' ) start [2025-01-22 10:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304487', 'tblTempUsageDetail_20' ) end [2025-01-22 10:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304487', 'tblTempVendorCDR_20' ) start [2025-01-22 10:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304487', 'tblTempVendorCDR_20' ) end [2025-01-22 10:49:34] Production.INFO: ProcessCDR(1,14304487,1,1,2) [2025-01-22 10:49:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:49:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:49:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:49:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304487', 'tblTempUsageDetail_20' ) start [2025-01-22 10:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304487', 'tblTempUsageDetail_20' ) end [2025-01-22 10:49:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:49:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:49:39] Production.INFO: ==21723== Releasing lock... [2025-01-22 10:49:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:49:39] Production.INFO: 52.5 MB #Memory Used# [2025-01-22 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:50:06 [end_date_ymd] => 2025-01-22 10:50:06 [RateCDR] => 1 ) [2025-01-22 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:50:06' and `end` < '2025-01-22 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:50:28] Production.INFO: count ==3302 [2025-01-22 10:50:29] Production.ERROR: pbx CDR StartTime 2025-01-22 07:50:06 - End Time 2025-01-22 10:50:06 [2025-01-22 10:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304493', 'tblTempUsageDetail_20' ) start [2025-01-22 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304493', 'tblTempUsageDetail_20' ) end [2025-01-22 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304493', 'tblTempVendorCDR_20' ) start [2025-01-22 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304493', 'tblTempVendorCDR_20' ) end [2025-01-22 10:50:30] Production.INFO: ProcessCDR(1,14304493,1,1,2) [2025-01-22 10:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304493', 'tblTempUsageDetail_20' ) start [2025-01-22 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304493', 'tblTempUsageDetail_20' ) end [2025-01-22 10:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:50:34] Production.INFO: ==21802== Releasing lock... [2025-01-22 10:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:50:34] Production.INFO: 53 MB #Memory Used# [2025-01-22 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:51:05 [end_date_ymd] => 2025-01-22 10:51:05 [RateCDR] => 1 ) [2025-01-22 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:51:05' and `end` < '2025-01-22 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:51:22] Production.INFO: count ==3424 [2025-01-22 10:51:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:51:05 - End Time 2025-01-22 10:51:05 [2025-01-22 10:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304498', 'tblTempUsageDetail_20' ) start [2025-01-22 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304498', 'tblTempUsageDetail_20' ) end [2025-01-22 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304498', 'tblTempVendorCDR_20' ) start [2025-01-22 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304498', 'tblTempVendorCDR_20' ) end [2025-01-22 10:51:24] Production.INFO: ProcessCDR(1,14304498,1,1,2) [2025-01-22 10:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304498', 'tblTempUsageDetail_20' ) start [2025-01-22 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304498', 'tblTempUsageDetail_20' ) end [2025-01-22 10:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:51:29] Production.INFO: ==21883== Releasing lock... [2025-01-22 10:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:51:29] Production.INFO: 53.5 MB #Memory Used# [2025-01-22 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:52:05 [end_date_ymd] => 2025-01-22 10:52:05 [RateCDR] => 1 ) [2025-01-22 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:52:05' and `end` < '2025-01-22 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:52:32] Production.INFO: count ==3429 [2025-01-22 10:52:33] Production.ERROR: pbx CDR StartTime 2025-01-22 07:52:05 - End Time 2025-01-22 10:52:05 [2025-01-22 10:52:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304503', 'tblTempUsageDetail_20' ) start [2025-01-22 10:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304503', 'tblTempUsageDetail_20' ) end [2025-01-22 10:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304503', 'tblTempVendorCDR_20' ) start [2025-01-22 10:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304503', 'tblTempVendorCDR_20' ) end [2025-01-22 10:52:33] Production.INFO: ProcessCDR(1,14304503,1,1,2) [2025-01-22 10:52:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:52:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:52:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304503', 'tblTempUsageDetail_20' ) start [2025-01-22 10:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304503', 'tblTempUsageDetail_20' ) end [2025-01-22 10:52:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:52:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:52:38] Production.INFO: ==21960== Releasing lock... [2025-01-22 10:52:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:52:38] Production.INFO: 53.75 MB #Memory Used# [2025-01-22 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:53:05 [end_date_ymd] => 2025-01-22 10:53:05 [RateCDR] => 1 ) [2025-01-22 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:53:05' and `end` < '2025-01-22 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:53:28] Production.INFO: count ==3448 [2025-01-22 10:53:29] Production.ERROR: pbx CDR StartTime 2025-01-22 07:53:05 - End Time 2025-01-22 10:53:05 [2025-01-22 10:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304508', 'tblTempUsageDetail_20' ) start [2025-01-22 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304508', 'tblTempUsageDetail_20' ) end [2025-01-22 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304508', 'tblTempVendorCDR_20' ) start [2025-01-22 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304508', 'tblTempVendorCDR_20' ) end [2025-01-22 10:53:30] Production.INFO: ProcessCDR(1,14304508,1,1,2) [2025-01-22 10:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304508', 'tblTempUsageDetail_20' ) start [2025-01-22 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304508', 'tblTempUsageDetail_20' ) end [2025-01-22 10:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:53:35] Production.INFO: ==22036== Releasing lock... [2025-01-22 10:53:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:53:35] Production.INFO: 55.75 MB #Memory Used# [2025-01-22 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:54:05 [end_date_ymd] => 2025-01-22 10:54:05 [RateCDR] => 1 ) [2025-01-22 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:54:05' and `end` < '2025-01-22 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:54:27] Production.INFO: count ==3457 [2025-01-22 10:54:28] Production.ERROR: pbx CDR StartTime 2025-01-22 07:54:05 - End Time 2025-01-22 10:54:05 [2025-01-22 10:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304513', 'tblTempUsageDetail_20' ) start [2025-01-22 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304513', 'tblTempUsageDetail_20' ) end [2025-01-22 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304513', 'tblTempVendorCDR_20' ) start [2025-01-22 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304513', 'tblTempVendorCDR_20' ) end [2025-01-22 10:54:28] Production.INFO: ProcessCDR(1,14304513,1,1,2) [2025-01-22 10:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304513', 'tblTempUsageDetail_20' ) start [2025-01-22 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304513', 'tblTempUsageDetail_20' ) end [2025-01-22 10:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:54:33] Production.INFO: ==22119== Releasing lock... [2025-01-22 10:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:54:33] Production.INFO: 56 MB #Memory Used# [2025-01-22 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:55:05 [end_date_ymd] => 2025-01-22 10:55:05 [RateCDR] => 1 ) [2025-01-22 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:55:05' and `end` < '2025-01-22 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:55:23] Production.INFO: count ==3463 [2025-01-22 10:55:24] Production.ERROR: pbx CDR StartTime 2025-01-22 07:55:05 - End Time 2025-01-22 10:55:05 [2025-01-22 10:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304518', 'tblTempUsageDetail_20' ) start [2025-01-22 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304518', 'tblTempUsageDetail_20' ) end [2025-01-22 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304518', 'tblTempVendorCDR_20' ) start [2025-01-22 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304518', 'tblTempVendorCDR_20' ) end [2025-01-22 10:55:24] Production.INFO: ProcessCDR(1,14304518,1,1,2) [2025-01-22 10:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304518', 'tblTempUsageDetail_20' ) start [2025-01-22 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304518', 'tblTempUsageDetail_20' ) end [2025-01-22 10:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:55:29] Production.INFO: ==22195== Releasing lock... [2025-01-22 10:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:55:29] Production.INFO: 54 MB #Memory Used# [2025-01-22 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:56:05 [end_date_ymd] => 2025-01-22 10:56:05 [RateCDR] => 1 ) [2025-01-22 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:56:05' and `end` < '2025-01-22 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:56:25] Production.INFO: count ==3477 [2025-01-22 10:56:27] Production.ERROR: pbx CDR StartTime 2025-01-22 07:56:05 - End Time 2025-01-22 10:56:05 [2025-01-22 10:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304523', 'tblTempUsageDetail_20' ) start [2025-01-22 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304523', 'tblTempUsageDetail_20' ) end [2025-01-22 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304523', 'tblTempVendorCDR_20' ) start [2025-01-22 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304523', 'tblTempVendorCDR_20' ) end [2025-01-22 10:56:27] Production.INFO: ProcessCDR(1,14304523,1,1,2) [2025-01-22 10:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304523', 'tblTempUsageDetail_20' ) start [2025-01-22 10:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304523', 'tblTempUsageDetail_20' ) end [2025-01-22 10:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:56:32] Production.INFO: ==22272== Releasing lock... [2025-01-22 10:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:56:32] Production.INFO: 54.5 MB #Memory Used# [2025-01-22 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:57:06 [end_date_ymd] => 2025-01-22 10:57:06 [RateCDR] => 1 ) [2025-01-22 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:57:06' and `end` < '2025-01-22 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:57:28] Production.INFO: count ==3497 [2025-01-22 10:57:29] Production.ERROR: pbx CDR StartTime 2025-01-22 07:57:06 - End Time 2025-01-22 10:57:06 [2025-01-22 10:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304528', 'tblTempUsageDetail_20' ) start [2025-01-22 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304528', 'tblTempUsageDetail_20' ) end [2025-01-22 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304528', 'tblTempVendorCDR_20' ) start [2025-01-22 10:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304528', 'tblTempVendorCDR_20' ) end [2025-01-22 10:57:29] Production.INFO: ProcessCDR(1,14304528,1,1,2) [2025-01-22 10:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304528', 'tblTempUsageDetail_20' ) start [2025-01-22 10:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304528', 'tblTempUsageDetail_20' ) end [2025-01-22 10:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:57:34] Production.INFO: ==22345== Releasing lock... [2025-01-22 10:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:57:34] Production.INFO: 55 MB #Memory Used# [2025-01-22 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:58:05 [end_date_ymd] => 2025-01-22 10:58:05 [RateCDR] => 1 ) [2025-01-22 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:58:05' and `end` < '2025-01-22 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:58:26] Production.INFO: count ==3521 [2025-01-22 10:58:27] Production.ERROR: pbx CDR StartTime 2025-01-22 07:58:05 - End Time 2025-01-22 10:58:05 [2025-01-22 10:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304533', 'tblTempUsageDetail_20' ) start [2025-01-22 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304533', 'tblTempUsageDetail_20' ) end [2025-01-22 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304533', 'tblTempVendorCDR_20' ) start [2025-01-22 10:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304533', 'tblTempVendorCDR_20' ) end [2025-01-22 10:58:27] Production.INFO: ProcessCDR(1,14304533,1,1,2) [2025-01-22 10:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304533', 'tblTempUsageDetail_20' ) start [2025-01-22 10:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304533', 'tblTempUsageDetail_20' ) end [2025-01-22 10:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:58:32] Production.INFO: ==22424== Releasing lock... [2025-01-22 10:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:58:32] Production.INFO: 54.5 MB #Memory Used# [2025-01-22 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 07:59:05 [end_date_ymd] => 2025-01-22 10:59:05 [RateCDR] => 1 ) [2025-01-22 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 07:59:05' and `end` < '2025-01-22 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 10:59:24] Production.INFO: count ==3526 [2025-01-22 10:59:25] Production.ERROR: pbx CDR StartTime 2025-01-22 07:59:05 - End Time 2025-01-22 10:59:05 [2025-01-22 10:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304538', 'tblTempUsageDetail_20' ) start [2025-01-22 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304538', 'tblTempUsageDetail_20' ) end [2025-01-22 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304538', 'tblTempVendorCDR_20' ) start [2025-01-22 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304538', 'tblTempVendorCDR_20' ) end [2025-01-22 10:59:25] Production.INFO: ProcessCDR(1,14304538,1,1,2) [2025-01-22 10:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 10:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304538', 'tblTempUsageDetail_20' ) start [2025-01-22 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304538', 'tblTempUsageDetail_20' ) end [2025-01-22 10:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 10:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 10:59:30] Production.INFO: ==22501== Releasing lock... [2025-01-22 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 10:59:30] Production.INFO: 54.75 MB #Memory Used# [2025-01-22 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:00:06 [end_date_ymd] => 2025-01-22 11:00:06 [RateCDR] => 1 ) [2025-01-22 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:00:06' and `end` < '2025-01-22 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:00:35] Production.INFO: count ==3559 [2025-01-22 11:00:36] Production.ERROR: pbx CDR StartTime 2025-01-22 08:00:06 - End Time 2025-01-22 11:00:06 [2025-01-22 11:00:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304544', 'tblTempUsageDetail_20' ) start [2025-01-22 11:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304544', 'tblTempUsageDetail_20' ) end [2025-01-22 11:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304544', 'tblTempVendorCDR_20' ) start [2025-01-22 11:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304544', 'tblTempVendorCDR_20' ) end [2025-01-22 11:00:36] Production.INFO: ProcessCDR(1,14304544,1,1,2) [2025-01-22 11:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:00:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:00:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304544', 'tblTempUsageDetail_20' ) start [2025-01-22 11:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304544', 'tblTempUsageDetail_20' ) end [2025-01-22 11:00:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:00:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:00:41] Production.INFO: ==22581== Releasing lock... [2025-01-22 11:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:00:41] Production.INFO: 54.75 MB #Memory Used# [2025-01-22 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:01:05 [end_date_ymd] => 2025-01-22 11:01:05 [RateCDR] => 1 ) [2025-01-22 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:01:05' and `end` < '2025-01-22 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:01:27] Production.INFO: count ==3688 [2025-01-22 11:01:28] Production.ERROR: pbx CDR StartTime 2025-01-22 08:01:05 - End Time 2025-01-22 11:01:05 [2025-01-22 11:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304549', 'tblTempUsageDetail_20' ) start [2025-01-22 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304549', 'tblTempUsageDetail_20' ) end [2025-01-22 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304549', 'tblTempVendorCDR_20' ) start [2025-01-22 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304549', 'tblTempVendorCDR_20' ) end [2025-01-22 11:01:28] Production.INFO: ProcessCDR(1,14304549,1,1,2) [2025-01-22 11:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304549', 'tblTempUsageDetail_20' ) start [2025-01-22 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304549', 'tblTempUsageDetail_20' ) end [2025-01-22 11:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:01:33] Production.INFO: ==22751== Releasing lock... [2025-01-22 11:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:01:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-22 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:02:05 [end_date_ymd] => 2025-01-22 11:02:05 [RateCDR] => 1 ) [2025-01-22 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:02:05' and `end` < '2025-01-22 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:02:24] Production.INFO: count ==3702 [2025-01-22 11:02:26] Production.ERROR: pbx CDR StartTime 2025-01-22 08:02:05 - End Time 2025-01-22 11:02:05 [2025-01-22 11:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304554', 'tblTempUsageDetail_20' ) start [2025-01-22 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304554', 'tblTempUsageDetail_20' ) end [2025-01-22 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304554', 'tblTempVendorCDR_20' ) start [2025-01-22 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304554', 'tblTempVendorCDR_20' ) end [2025-01-22 11:02:26] Production.INFO: ProcessCDR(1,14304554,1,1,2) [2025-01-22 11:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304554', 'tblTempUsageDetail_20' ) start [2025-01-22 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304554', 'tblTempUsageDetail_20' ) end [2025-01-22 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:02:31] Production.INFO: ==22871== Releasing lock... [2025-01-22 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:02:31] Production.INFO: 55.75 MB #Memory Used# [2025-01-22 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:03:05 [end_date_ymd] => 2025-01-22 11:03:05 [RateCDR] => 1 ) [2025-01-22 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:03:05' and `end` < '2025-01-22 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:03:23] Production.INFO: count ==3709 [2025-01-22 11:03:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:03:05 - End Time 2025-01-22 11:03:05 [2025-01-22 11:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304559', 'tblTempUsageDetail_20' ) start [2025-01-22 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304559', 'tblTempUsageDetail_20' ) end [2025-01-22 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304559', 'tblTempVendorCDR_20' ) start [2025-01-22 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304559', 'tblTempVendorCDR_20' ) end [2025-01-22 11:03:24] Production.INFO: ProcessCDR(1,14304559,1,1,2) [2025-01-22 11:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304559', 'tblTempUsageDetail_20' ) start [2025-01-22 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304559', 'tblTempUsageDetail_20' ) end [2025-01-22 11:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:03:28] Production.INFO: ==22951== Releasing lock... [2025-01-22 11:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:03:28] Production.INFO: 56 MB #Memory Used# [2025-01-22 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:04:05 [end_date_ymd] => 2025-01-22 11:04:05 [RateCDR] => 1 ) [2025-01-22 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:04:05' and `end` < '2025-01-22 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:04:22] Production.INFO: count ==3715 [2025-01-22 11:04:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:04:05 - End Time 2025-01-22 11:04:05 [2025-01-22 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304564', 'tblTempUsageDetail_20' ) start [2025-01-22 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304564', 'tblTempUsageDetail_20' ) end [2025-01-22 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304564', 'tblTempVendorCDR_20' ) start [2025-01-22 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304564', 'tblTempVendorCDR_20' ) end [2025-01-22 11:04:23] Production.INFO: ProcessCDR(1,14304564,1,1,2) [2025-01-22 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304564', 'tblTempUsageDetail_20' ) start [2025-01-22 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304564', 'tblTempUsageDetail_20' ) end [2025-01-22 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:04:28] Production.INFO: ==23023== Releasing lock... [2025-01-22 11:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:04:28] Production.INFO: 56.75 MB #Memory Used# [2025-01-22 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:05:05 [end_date_ymd] => 2025-01-22 11:05:05 [RateCDR] => 1 ) [2025-01-22 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:05:05' and `end` < '2025-01-22 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:05:29] Production.INFO: count ==3721 [2025-01-22 11:05:30] Production.ERROR: pbx CDR StartTime 2025-01-22 08:05:05 - End Time 2025-01-22 11:05:05 [2025-01-22 11:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304569', 'tblTempUsageDetail_20' ) start [2025-01-22 11:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304569', 'tblTempUsageDetail_20' ) end [2025-01-22 11:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304569', 'tblTempVendorCDR_20' ) start [2025-01-22 11:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304569', 'tblTempVendorCDR_20' ) end [2025-01-22 11:05:30] Production.INFO: ProcessCDR(1,14304569,1,1,2) [2025-01-22 11:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304569', 'tblTempUsageDetail_20' ) start [2025-01-22 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304569', 'tblTempUsageDetail_20' ) end [2025-01-22 11:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:05:35] Production.INFO: ==23178== Releasing lock... [2025-01-22 11:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:05:35] Production.INFO: 56 MB #Memory Used# [2025-01-22 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:06:04 [end_date_ymd] => 2025-01-22 11:06:04 [RateCDR] => 1 ) [2025-01-22 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:06:04' and `end` < '2025-01-22 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:06:29] Production.INFO: count ==3733 [2025-01-22 11:06:30] Production.ERROR: pbx CDR StartTime 2025-01-22 08:06:04 - End Time 2025-01-22 11:06:04 [2025-01-22 11:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304574', 'tblTempUsageDetail_20' ) start [2025-01-22 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304574', 'tblTempUsageDetail_20' ) end [2025-01-22 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304574', 'tblTempVendorCDR_20' ) start [2025-01-22 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304574', 'tblTempVendorCDR_20' ) end [2025-01-22 11:06:30] Production.INFO: ProcessCDR(1,14304574,1,1,2) [2025-01-22 11:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304574', 'tblTempUsageDetail_20' ) start [2025-01-22 11:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304574', 'tblTempUsageDetail_20' ) end [2025-01-22 11:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:06:36] Production.INFO: ==23260== Releasing lock... [2025-01-22 11:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:06:36] Production.INFO: 56 MB #Memory Used# [2025-01-22 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:07:05 [end_date_ymd] => 2025-01-22 11:07:05 [RateCDR] => 1 ) [2025-01-22 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:07:05' and `end` < '2025-01-22 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:07:25] Production.INFO: count ==3761 [2025-01-22 11:07:26] Production.ERROR: pbx CDR StartTime 2025-01-22 08:07:05 - End Time 2025-01-22 11:07:05 [2025-01-22 11:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304579', 'tblTempUsageDetail_20' ) start [2025-01-22 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304579', 'tblTempUsageDetail_20' ) end [2025-01-22 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304579', 'tblTempVendorCDR_20' ) start [2025-01-22 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304579', 'tblTempVendorCDR_20' ) end [2025-01-22 11:07:26] Production.INFO: ProcessCDR(1,14304579,1,1,2) [2025-01-22 11:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304579', 'tblTempUsageDetail_20' ) start [2025-01-22 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304579', 'tblTempUsageDetail_20' ) end [2025-01-22 11:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:07:31] Production.INFO: ==23341== Releasing lock... [2025-01-22 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:07:31] Production.INFO: 56 MB #Memory Used# [2025-01-22 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:08:05 [end_date_ymd] => 2025-01-22 11:08:05 [RateCDR] => 1 ) [2025-01-22 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:08:05' and `end` < '2025-01-22 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:08:24] Production.INFO: count ==3776 [2025-01-22 11:08:25] Production.ERROR: pbx CDR StartTime 2025-01-22 08:08:05 - End Time 2025-01-22 11:08:05 [2025-01-22 11:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304584', 'tblTempUsageDetail_20' ) start [2025-01-22 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304584', 'tblTempUsageDetail_20' ) end [2025-01-22 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304584', 'tblTempVendorCDR_20' ) start [2025-01-22 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304584', 'tblTempVendorCDR_20' ) end [2025-01-22 11:08:25] Production.INFO: ProcessCDR(1,14304584,1,1,2) [2025-01-22 11:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304584', 'tblTempUsageDetail_20' ) start [2025-01-22 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304584', 'tblTempUsageDetail_20' ) end [2025-01-22 11:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:08:30] Production.INFO: ==23502== Releasing lock... [2025-01-22 11:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:08:30] Production.INFO: 56.25 MB #Memory Used# [2025-01-22 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:09:05 [end_date_ymd] => 2025-01-22 11:09:05 [RateCDR] => 1 ) [2025-01-22 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:09:05' and `end` < '2025-01-22 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:09:26] Production.INFO: count ==3790 [2025-01-22 11:09:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:09:05 - End Time 2025-01-22 11:09:05 [2025-01-22 11:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304589', 'tblTempUsageDetail_20' ) start [2025-01-22 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304589', 'tblTempUsageDetail_20' ) end [2025-01-22 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304589', 'tblTempVendorCDR_20' ) start [2025-01-22 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304589', 'tblTempVendorCDR_20' ) end [2025-01-22 11:09:28] Production.INFO: ProcessCDR(1,14304589,1,1,2) [2025-01-22 11:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304589', 'tblTempUsageDetail_20' ) start [2025-01-22 11:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304589', 'tblTempUsageDetail_20' ) end [2025-01-22 11:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:09:32] Production.INFO: ==23584== Releasing lock... [2025-01-22 11:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:09:32] Production.INFO: 56.25 MB #Memory Used# [2025-01-22 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:10:06 [end_date_ymd] => 2025-01-22 11:10:06 [RateCDR] => 1 ) [2025-01-22 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:10:06' and `end` < '2025-01-22 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:10:25] Production.INFO: count ==3790 [2025-01-22 11:10:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:10:06 - End Time 2025-01-22 11:10:06 [2025-01-22 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304595', 'tblTempUsageDetail_20' ) start [2025-01-22 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304595', 'tblTempUsageDetail_20' ) end [2025-01-22 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304595', 'tblTempVendorCDR_20' ) start [2025-01-22 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304595', 'tblTempVendorCDR_20' ) end [2025-01-22 11:10:27] Production.INFO: ProcessCDR(1,14304595,1,1,2) [2025-01-22 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304595', 'tblTempUsageDetail_20' ) start [2025-01-22 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304595', 'tblTempUsageDetail_20' ) end [2025-01-22 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:10:31] Production.INFO: ==23666== Releasing lock... [2025-01-22 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:10:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-22 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:11:05 [end_date_ymd] => 2025-01-22 11:11:05 [RateCDR] => 1 ) [2025-01-22 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:11:05' and `end` < '2025-01-22 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:11:22] Production.INFO: count ==3911 [2025-01-22 11:11:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:11:05 - End Time 2025-01-22 11:11:05 [2025-01-22 11:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304600', 'tblTempUsageDetail_20' ) start [2025-01-22 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304600', 'tblTempUsageDetail_20' ) end [2025-01-22 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304600', 'tblTempVendorCDR_20' ) start [2025-01-22 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304600', 'tblTempVendorCDR_20' ) end [2025-01-22 11:11:23] Production.INFO: ProcessCDR(1,14304600,1,1,2) [2025-01-22 11:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304600', 'tblTempUsageDetail_20' ) start [2025-01-22 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304600', 'tblTempUsageDetail_20' ) end [2025-01-22 11:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:11:28] Production.INFO: ==23743== Releasing lock... [2025-01-22 11:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:11:28] Production.INFO: 57.25 MB #Memory Used# [2025-01-22 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:12:06 [end_date_ymd] => 2025-01-22 11:12:06 [RateCDR] => 1 ) [2025-01-22 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:12:06' and `end` < '2025-01-22 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:12:31] Production.INFO: count ==3920 [2025-01-22 11:12:33] Production.ERROR: pbx CDR StartTime 2025-01-22 08:12:06 - End Time 2025-01-22 11:12:06 [2025-01-22 11:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304605', 'tblTempUsageDetail_20' ) start [2025-01-22 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304605', 'tblTempUsageDetail_20' ) end [2025-01-22 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304605', 'tblTempVendorCDR_20' ) start [2025-01-22 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304605', 'tblTempVendorCDR_20' ) end [2025-01-22 11:12:33] Production.INFO: ProcessCDR(1,14304605,1,1,2) [2025-01-22 11:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304605', 'tblTempUsageDetail_20' ) start [2025-01-22 11:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304605', 'tblTempUsageDetail_20' ) end [2025-01-22 11:12:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:12:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:12:37] Production.INFO: ==23908== Releasing lock... [2025-01-22 11:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:12:37] Production.INFO: 57.5 MB #Memory Used# [2025-01-22 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:13:05 [end_date_ymd] => 2025-01-22 11:13:05 [RateCDR] => 1 ) [2025-01-22 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:13:05' and `end` < '2025-01-22 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:13:32] Production.INFO: count ==3946 [2025-01-22 11:13:33] Production.ERROR: pbx CDR StartTime 2025-01-22 08:13:05 - End Time 2025-01-22 11:13:05 [2025-01-22 11:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304609', 'tblTempUsageDetail_20' ) start [2025-01-22 11:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304609', 'tblTempUsageDetail_20' ) end [2025-01-22 11:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304609', 'tblTempVendorCDR_20' ) start [2025-01-22 11:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304609', 'tblTempVendorCDR_20' ) end [2025-01-22 11:13:33] Production.INFO: ProcessCDR(1,14304609,1,1,2) [2025-01-22 11:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:13:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:13:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304609', 'tblTempUsageDetail_20' ) start [2025-01-22 11:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304609', 'tblTempUsageDetail_20' ) end [2025-01-22 11:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:13:38] Production.INFO: ==23987== Releasing lock... [2025-01-22 11:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:13:38] Production.INFO: 57.5 MB #Memory Used# [2025-01-22 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:14:05 [end_date_ymd] => 2025-01-22 11:14:05 [RateCDR] => 1 ) [2025-01-22 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:14:05' and `end` < '2025-01-22 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:14:27] Production.INFO: count ==3953 [2025-01-22 11:14:29] Production.ERROR: pbx CDR StartTime 2025-01-22 08:14:05 - End Time 2025-01-22 11:14:05 [2025-01-22 11:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304615', 'tblTempUsageDetail_20' ) start [2025-01-22 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304615', 'tblTempUsageDetail_20' ) end [2025-01-22 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304615', 'tblTempVendorCDR_20' ) start [2025-01-22 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304615', 'tblTempVendorCDR_20' ) end [2025-01-22 11:14:29] Production.INFO: ProcessCDR(1,14304615,1,1,2) [2025-01-22 11:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304615', 'tblTempUsageDetail_20' ) start [2025-01-22 11:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304615', 'tblTempUsageDetail_20' ) end [2025-01-22 11:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:14:34] Production.INFO: ==24066== Releasing lock... [2025-01-22 11:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:14:34] Production.INFO: 57.5 MB #Memory Used# [2025-01-22 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:15:04 [end_date_ymd] => 2025-01-22 11:15:04 [RateCDR] => 1 ) [2025-01-22 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:15:04' and `end` < '2025-01-22 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:15:27] Production.INFO: count ==3967 [2025-01-22 11:15:29] Production.ERROR: pbx CDR StartTime 2025-01-22 08:15:04 - End Time 2025-01-22 11:15:04 [2025-01-22 11:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304620', 'tblTempUsageDetail_20' ) start [2025-01-22 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304620', 'tblTempUsageDetail_20' ) end [2025-01-22 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304620', 'tblTempVendorCDR_20' ) start [2025-01-22 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304620', 'tblTempVendorCDR_20' ) end [2025-01-22 11:15:29] Production.INFO: ProcessCDR(1,14304620,1,1,2) [2025-01-22 11:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304620', 'tblTempUsageDetail_20' ) start [2025-01-22 11:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304620', 'tblTempUsageDetail_20' ) end [2025-01-22 11:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:15:34] Production.INFO: ==24223== Releasing lock... [2025-01-22 11:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:15:34] Production.INFO: 57.75 MB #Memory Used# [2025-01-22 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:16:05 [end_date_ymd] => 2025-01-22 11:16:05 [RateCDR] => 1 ) [2025-01-22 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:16:05' and `end` < '2025-01-22 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:16:24] Production.INFO: count ==3965 [2025-01-22 11:16:25] Production.ERROR: pbx CDR StartTime 2025-01-22 08:16:05 - End Time 2025-01-22 11:16:05 [2025-01-22 11:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304625', 'tblTempUsageDetail_20' ) start [2025-01-22 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304625', 'tblTempUsageDetail_20' ) end [2025-01-22 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304625', 'tblTempVendorCDR_20' ) start [2025-01-22 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304625', 'tblTempVendorCDR_20' ) end [2025-01-22 11:16:25] Production.INFO: ProcessCDR(1,14304625,1,1,2) [2025-01-22 11:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304625', 'tblTempUsageDetail_20' ) start [2025-01-22 11:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304625', 'tblTempUsageDetail_20' ) end [2025-01-22 11:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:16:30] Production.INFO: ==24306== Releasing lock... [2025-01-22 11:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:16:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-22 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:17:05 [end_date_ymd] => 2025-01-22 11:17:05 [RateCDR] => 1 ) [2025-01-22 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:17:05' and `end` < '2025-01-22 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:17:21] Production.INFO: count ==3980 [2025-01-22 11:17:22] Production.ERROR: pbx CDR StartTime 2025-01-22 08:17:05 - End Time 2025-01-22 11:17:05 [2025-01-22 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304630', 'tblTempUsageDetail_20' ) start [2025-01-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304630', 'tblTempUsageDetail_20' ) end [2025-01-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304630', 'tblTempVendorCDR_20' ) start [2025-01-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304630', 'tblTempVendorCDR_20' ) end [2025-01-22 11:17:22] Production.INFO: ProcessCDR(1,14304630,1,1,2) [2025-01-22 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304630', 'tblTempUsageDetail_20' ) start [2025-01-22 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304630', 'tblTempUsageDetail_20' ) end [2025-01-22 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:17:27] Production.INFO: ==24428== Releasing lock... [2025-01-22 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:17:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-22 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:18:05 [end_date_ymd] => 2025-01-22 11:18:05 [RateCDR] => 1 ) [2025-01-22 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:18:05' and `end` < '2025-01-22 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:18:23] Production.INFO: count ==3989 [2025-01-22 11:18:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:18:05 - End Time 2025-01-22 11:18:05 [2025-01-22 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304635', 'tblTempUsageDetail_20' ) start [2025-01-22 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304635', 'tblTempUsageDetail_20' ) end [2025-01-22 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304635', 'tblTempVendorCDR_20' ) start [2025-01-22 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304635', 'tblTempVendorCDR_20' ) end [2025-01-22 11:18:24] Production.INFO: ProcessCDR(1,14304635,1,1,2) [2025-01-22 11:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304635', 'tblTempUsageDetail_20' ) start [2025-01-22 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304635', 'tblTempUsageDetail_20' ) end [2025-01-22 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:18:29] Production.INFO: ==24507== Releasing lock... [2025-01-22 11:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:18:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-22 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:19:04 [end_date_ymd] => 2025-01-22 11:19:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 08:19:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 11:19:23] Production.INFO: count ==3986 [2025-01-22 11:19:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:19:04 - End Time 2025-01-22 11:19:04 [2025-01-22 11:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304640', 'tblTempUsageDetail_20' ) start [2025-01-22 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304640', 'tblTempUsageDetail_20' ) end [2025-01-22 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304640', 'tblTempVendorCDR_20' ) start [2025-01-22 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304640', 'tblTempVendorCDR_20' ) end [2025-01-22 11:19:24] Production.INFO: ProcessCDR(1,14304640,1,1,2) [2025-01-22 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304640', 'tblTempUsageDetail_20' ) start [2025-01-22 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304640', 'tblTempUsageDetail_20' ) end [2025-01-22 11:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:19:29] Production.INFO: ==24591== Releasing lock... [2025-01-22 11:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:19:29] Production.INFO: 58 MB #Memory Used# [2025-01-22 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:20:06 [end_date_ymd] => 2025-01-22 11:20:06 [RateCDR] => 1 ) [2025-01-22 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:20:06' and `end` < '2025-01-22 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:20:36] Production.INFO: count ==4020 [2025-01-22 11:20:37] Production.ERROR: pbx CDR StartTime 2025-01-22 08:20:06 - End Time 2025-01-22 11:20:06 [2025-01-22 11:20:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304646', 'tblTempUsageDetail_20' ) start [2025-01-22 11:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304646', 'tblTempUsageDetail_20' ) end [2025-01-22 11:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304646', 'tblTempVendorCDR_20' ) start [2025-01-22 11:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304646', 'tblTempVendorCDR_20' ) end [2025-01-22 11:20:37] Production.INFO: ProcessCDR(1,14304646,1,1,2) [2025-01-22 11:20:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:20:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:20:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:20:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304646', 'tblTempUsageDetail_20' ) start [2025-01-22 11:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304646', 'tblTempUsageDetail_20' ) end [2025-01-22 11:20:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:20:42] Production.INFO: ==24676== Releasing lock... [2025-01-22 11:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:20:42] Production.INFO: 58.25 MB #Memory Used# [2025-01-22 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:21:05 [end_date_ymd] => 2025-01-22 11:21:05 [RateCDR] => 1 ) [2025-01-22 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:21:05' and `end` < '2025-01-22 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:21:29] Production.INFO: count ==4116 [2025-01-22 11:21:31] Production.ERROR: pbx CDR StartTime 2025-01-22 08:21:05 - End Time 2025-01-22 11:21:05 [2025-01-22 11:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304651', 'tblTempUsageDetail_20' ) start [2025-01-22 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304651', 'tblTempUsageDetail_20' ) end [2025-01-22 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304651', 'tblTempVendorCDR_20' ) start [2025-01-22 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304651', 'tblTempVendorCDR_20' ) end [2025-01-22 11:21:31] Production.INFO: ProcessCDR(1,14304651,1,1,2) [2025-01-22 11:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304651', 'tblTempUsageDetail_20' ) start [2025-01-22 11:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304651', 'tblTempUsageDetail_20' ) end [2025-01-22 11:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:21:36] Production.INFO: ==24761== Releasing lock... [2025-01-22 11:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:21:36] Production.INFO: 58.75 MB #Memory Used# [2025-01-22 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:22:05 [end_date_ymd] => 2025-01-22 11:22:05 [RateCDR] => 1 ) [2025-01-22 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:22:05' and `end` < '2025-01-22 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:22:26] Production.INFO: count ==4128 [2025-01-22 11:22:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:22:05 - End Time 2025-01-22 11:22:05 [2025-01-22 11:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304656', 'tblTempUsageDetail_20' ) start [2025-01-22 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304656', 'tblTempUsageDetail_20' ) end [2025-01-22 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304656', 'tblTempVendorCDR_20' ) start [2025-01-22 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304656', 'tblTempVendorCDR_20' ) end [2025-01-22 11:22:28] Production.INFO: ProcessCDR(1,14304656,1,1,2) [2025-01-22 11:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304656', 'tblTempUsageDetail_20' ) start [2025-01-22 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304656', 'tblTempUsageDetail_20' ) end [2025-01-22 11:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:22:32] Production.INFO: ==24840== Releasing lock... [2025-01-22 11:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:22:32] Production.INFO: 59 MB #Memory Used# [2025-01-22 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:23:05 [end_date_ymd] => 2025-01-22 11:23:05 [RateCDR] => 1 ) [2025-01-22 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:23:05' and `end` < '2025-01-22 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:23:21] Production.INFO: count ==4158 [2025-01-22 11:23:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:23:05 - End Time 2025-01-22 11:23:05 [2025-01-22 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304661', 'tblTempUsageDetail_20' ) start [2025-01-22 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304661', 'tblTempUsageDetail_20' ) end [2025-01-22 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304661', 'tblTempVendorCDR_20' ) start [2025-01-22 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304661', 'tblTempVendorCDR_20' ) end [2025-01-22 11:23:23] Production.INFO: ProcessCDR(1,14304661,1,1,2) [2025-01-22 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304661', 'tblTempUsageDetail_20' ) start [2025-01-22 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304661', 'tblTempUsageDetail_20' ) end [2025-01-22 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:23:28] Production.INFO: ==24923== Releasing lock... [2025-01-22 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:23:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-22 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:24:05 [end_date_ymd] => 2025-01-22 11:24:05 [RateCDR] => 1 ) [2025-01-22 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:24:05' and `end` < '2025-01-22 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:24:19] Production.INFO: count ==4162 [2025-01-22 11:24:20] Production.ERROR: pbx CDR StartTime 2025-01-22 08:24:05 - End Time 2025-01-22 11:24:05 [2025-01-22 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304666', 'tblTempUsageDetail_20' ) start [2025-01-22 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304666', 'tblTempUsageDetail_20' ) end [2025-01-22 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304666', 'tblTempVendorCDR_20' ) start [2025-01-22 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304666', 'tblTempVendorCDR_20' ) end [2025-01-22 11:24:20] Production.INFO: ProcessCDR(1,14304666,1,1,2) [2025-01-22 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304666', 'tblTempUsageDetail_20' ) start [2025-01-22 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304666', 'tblTempUsageDetail_20' ) end [2025-01-22 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:24:24] Production.INFO: ==25004== Releasing lock... [2025-01-22 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:24:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:25:05 [end_date_ymd] => 2025-01-22 11:25:05 [RateCDR] => 1 ) [2025-01-22 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:25:05' and `end` < '2025-01-22 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:25:23] Production.INFO: count ==4168 [2025-01-22 11:25:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:25:05 - End Time 2025-01-22 11:25:05 [2025-01-22 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304671', 'tblTempUsageDetail_20' ) start [2025-01-22 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304671', 'tblTempUsageDetail_20' ) end [2025-01-22 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304671', 'tblTempVendorCDR_20' ) start [2025-01-22 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304671', 'tblTempVendorCDR_20' ) end [2025-01-22 11:25:24] Production.INFO: ProcessCDR(1,14304671,1,1,2) [2025-01-22 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304671', 'tblTempUsageDetail_20' ) start [2025-01-22 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304671', 'tblTempUsageDetail_20' ) end [2025-01-22 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:25:29] Production.INFO: ==25079== Releasing lock... [2025-01-22 11:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:25:29] Production.INFO: 59.25 MB #Memory Used# [2025-01-22 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:26:05 [end_date_ymd] => 2025-01-22 11:26:05 [RateCDR] => 1 ) [2025-01-22 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:26:05' and `end` < '2025-01-22 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:26:21] Production.INFO: count ==4180 [2025-01-22 11:26:22] Production.ERROR: pbx CDR StartTime 2025-01-22 08:26:05 - End Time 2025-01-22 11:26:05 [2025-01-22 11:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304676', 'tblTempUsageDetail_20' ) start [2025-01-22 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304676', 'tblTempUsageDetail_20' ) end [2025-01-22 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304676', 'tblTempVendorCDR_20' ) start [2025-01-22 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304676', 'tblTempVendorCDR_20' ) end [2025-01-22 11:26:23] Production.INFO: ProcessCDR(1,14304676,1,1,2) [2025-01-22 11:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304676', 'tblTempUsageDetail_20' ) start [2025-01-22 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304676', 'tblTempUsageDetail_20' ) end [2025-01-22 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:26:27] Production.INFO: ==25159== Releasing lock... [2025-01-22 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:26:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-22 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:27:06 [end_date_ymd] => 2025-01-22 11:27:06 [RateCDR] => 1 ) [2025-01-22 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:27:06' and `end` < '2025-01-22 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:27:26] Production.INFO: count ==4192 [2025-01-22 11:27:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:27:06 - End Time 2025-01-22 11:27:06 [2025-01-22 11:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304681', 'tblTempUsageDetail_20' ) start [2025-01-22 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304681', 'tblTempUsageDetail_20' ) end [2025-01-22 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304681', 'tblTempVendorCDR_20' ) start [2025-01-22 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304681', 'tblTempVendorCDR_20' ) end [2025-01-22 11:27:27] Production.INFO: ProcessCDR(1,14304681,1,1,2) [2025-01-22 11:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304681', 'tblTempUsageDetail_20' ) start [2025-01-22 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304681', 'tblTempUsageDetail_20' ) end [2025-01-22 11:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:27:32] Production.INFO: ==25240== Releasing lock... [2025-01-22 11:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:27:32] Production.INFO: 59.5 MB #Memory Used# [2025-01-22 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:28:04 [end_date_ymd] => 2025-01-22 11:28:04 [RateCDR] => 1 ) [2025-01-22 11:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:28:04' and `end` < '2025-01-22 11:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:28:21] Production.INFO: count ==4194 [2025-01-22 11:28:22] Production.ERROR: pbx CDR StartTime 2025-01-22 08:28:04 - End Time 2025-01-22 11:28:04 [2025-01-22 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304686', 'tblTempUsageDetail_20' ) start [2025-01-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304686', 'tblTempUsageDetail_20' ) end [2025-01-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304686', 'tblTempVendorCDR_20' ) start [2025-01-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304686', 'tblTempVendorCDR_20' ) end [2025-01-22 11:28:22] Production.INFO: ProcessCDR(1,14304686,1,1,2) [2025-01-22 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304686', 'tblTempUsageDetail_20' ) start [2025-01-22 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304686', 'tblTempUsageDetail_20' ) end [2025-01-22 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:28:27] Production.INFO: ==25318== Releasing lock... [2025-01-22 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:28:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-22 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:29:05 [end_date_ymd] => 2025-01-22 11:29:05 [RateCDR] => 1 ) [2025-01-22 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:29:05' and `end` < '2025-01-22 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:29:21] Production.INFO: count ==4192 [2025-01-22 11:29:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:29:05 - End Time 2025-01-22 11:29:05 [2025-01-22 11:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304691', 'tblTempUsageDetail_20' ) start [2025-01-22 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304691', 'tblTempUsageDetail_20' ) end [2025-01-22 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304691', 'tblTempVendorCDR_20' ) start [2025-01-22 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304691', 'tblTempVendorCDR_20' ) end [2025-01-22 11:29:23] Production.INFO: ProcessCDR(1,14304691,1,1,2) [2025-01-22 11:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304691', 'tblTempUsageDetail_20' ) start [2025-01-22 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304691', 'tblTempUsageDetail_20' ) end [2025-01-22 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:29:28] Production.INFO: ==25399== Releasing lock... [2025-01-22 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:29:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-22 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:30:06 [end_date_ymd] => 2025-01-22 11:30:06 [RateCDR] => 1 ) [2025-01-22 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:30:06' and `end` < '2025-01-22 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:30:26] Production.INFO: count ==4189 [2025-01-22 11:30:28] Production.ERROR: pbx CDR StartTime 2025-01-22 08:30:06 - End Time 2025-01-22 11:30:06 [2025-01-22 11:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304697', 'tblTempUsageDetail_20' ) start [2025-01-22 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304697', 'tblTempUsageDetail_20' ) end [2025-01-22 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304697', 'tblTempVendorCDR_20' ) start [2025-01-22 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304697', 'tblTempVendorCDR_20' ) end [2025-01-22 11:30:28] Production.INFO: ProcessCDR(1,14304697,1,1,2) [2025-01-22 11:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304697', 'tblTempUsageDetail_20' ) start [2025-01-22 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304697', 'tblTempUsageDetail_20' ) end [2025-01-22 11:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:30:32] Production.INFO: ==25485== Releasing lock... [2025-01-22 11:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:30:32] Production.INFO: 59.5 MB #Memory Used# [2025-01-22 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:31:05 [end_date_ymd] => 2025-01-22 11:31:05 [RateCDR] => 1 ) [2025-01-22 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:31:05' and `end` < '2025-01-22 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:31:21] Production.INFO: count ==4267 [2025-01-22 11:31:22] Production.ERROR: pbx CDR StartTime 2025-01-22 08:31:05 - End Time 2025-01-22 11:31:05 [2025-01-22 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304702', 'tblTempUsageDetail_20' ) start [2025-01-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304702', 'tblTempUsageDetail_20' ) end [2025-01-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304702', 'tblTempVendorCDR_20' ) start [2025-01-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304702', 'tblTempVendorCDR_20' ) end [2025-01-22 11:31:22] Production.INFO: ProcessCDR(1,14304702,1,1,2) [2025-01-22 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304702', 'tblTempUsageDetail_20' ) start [2025-01-22 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304702', 'tblTempUsageDetail_20' ) end [2025-01-22 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:31:27] Production.INFO: ==25567== Releasing lock... [2025-01-22 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:31:27] Production.INFO: 60 MB #Memory Used# [2025-01-22 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:32:05 [end_date_ymd] => 2025-01-22 11:32:05 [RateCDR] => 1 ) [2025-01-22 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:32:05' and `end` < '2025-01-22 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:32:29] Production.INFO: count ==4274 [2025-01-22 11:32:31] Production.ERROR: pbx CDR StartTime 2025-01-22 08:32:05 - End Time 2025-01-22 11:32:05 [2025-01-22 11:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304707', 'tblTempUsageDetail_20' ) start [2025-01-22 11:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304707', 'tblTempUsageDetail_20' ) end [2025-01-22 11:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304707', 'tblTempVendorCDR_20' ) start [2025-01-22 11:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304707', 'tblTempVendorCDR_20' ) end [2025-01-22 11:32:31] Production.INFO: ProcessCDR(1,14304707,1,1,2) [2025-01-22 11:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304707', 'tblTempUsageDetail_20' ) start [2025-01-22 11:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304707', 'tblTempUsageDetail_20' ) end [2025-01-22 11:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:32:36] Production.INFO: ==25690== Releasing lock... [2025-01-22 11:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:32:36] Production.INFO: 60 MB #Memory Used# [2025-01-22 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:33:05 [end_date_ymd] => 2025-01-22 11:33:05 [RateCDR] => 1 ) [2025-01-22 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:33:05' and `end` < '2025-01-22 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:33:32] Production.INFO: count ==4284 [2025-01-22 11:33:34] Production.ERROR: pbx CDR StartTime 2025-01-22 08:33:05 - End Time 2025-01-22 11:33:05 [2025-01-22 11:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304712', 'tblTempUsageDetail_20' ) start [2025-01-22 11:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304712', 'tblTempUsageDetail_20' ) end [2025-01-22 11:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304712', 'tblTempVendorCDR_20' ) start [2025-01-22 11:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304712', 'tblTempVendorCDR_20' ) end [2025-01-22 11:33:34] Production.INFO: ProcessCDR(1,14304712,1,1,2) [2025-01-22 11:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:33:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:33:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304712', 'tblTempUsageDetail_20' ) start [2025-01-22 11:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304712', 'tblTempUsageDetail_20' ) end [2025-01-22 11:33:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:33:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:33:39] Production.INFO: ==25770== Releasing lock... [2025-01-22 11:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:33:39] Production.INFO: 60 MB #Memory Used# [2025-01-22 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:34:05 [end_date_ymd] => 2025-01-22 11:34:05 [RateCDR] => 1 ) [2025-01-22 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:34:05' and `end` < '2025-01-22 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:34:36] Production.INFO: count ==4301 [2025-01-22 11:34:37] Production.ERROR: pbx CDR StartTime 2025-01-22 08:34:05 - End Time 2025-01-22 11:34:05 [2025-01-22 11:34:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304717', 'tblTempUsageDetail_20' ) start [2025-01-22 11:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304717', 'tblTempUsageDetail_20' ) end [2025-01-22 11:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304717', 'tblTempVendorCDR_20' ) start [2025-01-22 11:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304717', 'tblTempVendorCDR_20' ) end [2025-01-22 11:34:38] Production.INFO: ProcessCDR(1,14304717,1,1,2) [2025-01-22 11:34:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:34:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:34:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:34:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304717', 'tblTempUsageDetail_20' ) start [2025-01-22 11:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304717', 'tblTempUsageDetail_20' ) end [2025-01-22 11:34:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:34:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:34:42] Production.INFO: ==25858== Releasing lock... [2025-01-22 11:34:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:34:42] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:35:04 [end_date_ymd] => 2025-01-22 11:35:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 08:35:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 11:35:27] Production.INFO: count ==4307 [2025-01-22 11:35:28] Production.ERROR: pbx CDR StartTime 2025-01-22 08:35:04 - End Time 2025-01-22 11:35:04 [2025-01-22 11:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304722', 'tblTempUsageDetail_20' ) start [2025-01-22 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304722', 'tblTempUsageDetail_20' ) end [2025-01-22 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304722', 'tblTempVendorCDR_20' ) start [2025-01-22 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304722', 'tblTempVendorCDR_20' ) end [2025-01-22 11:35:28] Production.INFO: ProcessCDR(1,14304722,1,1,2) [2025-01-22 11:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304722', 'tblTempUsageDetail_20' ) start [2025-01-22 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304722', 'tblTempUsageDetail_20' ) end [2025-01-22 11:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:35:34] Production.INFO: ==25929== Releasing lock... [2025-01-22 11:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:35:34] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:36:05 [end_date_ymd] => 2025-01-22 11:36:05 [RateCDR] => 1 ) [2025-01-22 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:36:05' and `end` < '2025-01-22 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:36:26] Production.INFO: count ==4311 [2025-01-22 11:36:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:36:05 - End Time 2025-01-22 11:36:05 [2025-01-22 11:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304727', 'tblTempUsageDetail_20' ) start [2025-01-22 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304727', 'tblTempUsageDetail_20' ) end [2025-01-22 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304727', 'tblTempVendorCDR_20' ) start [2025-01-22 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304727', 'tblTempVendorCDR_20' ) end [2025-01-22 11:36:27] Production.INFO: ProcessCDR(1,14304727,1,1,2) [2025-01-22 11:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304727', 'tblTempUsageDetail_20' ) start [2025-01-22 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304727', 'tblTempUsageDetail_20' ) end [2025-01-22 11:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:36:32] Production.INFO: ==26016== Releasing lock... [2025-01-22 11:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:36:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:37:05 [end_date_ymd] => 2025-01-22 11:37:05 [RateCDR] => 1 ) [2025-01-22 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:37:05' and `end` < '2025-01-22 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:37:26] Production.INFO: count ==4307 [2025-01-22 11:37:28] Production.ERROR: pbx CDR StartTime 2025-01-22 08:37:05 - End Time 2025-01-22 11:37:05 [2025-01-22 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304732', 'tblTempUsageDetail_20' ) start [2025-01-22 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304732', 'tblTempUsageDetail_20' ) end [2025-01-22 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304732', 'tblTempVendorCDR_20' ) start [2025-01-22 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304732', 'tblTempVendorCDR_20' ) end [2025-01-22 11:37:28] Production.INFO: ProcessCDR(1,14304732,1,1,2) [2025-01-22 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304732', 'tblTempUsageDetail_20' ) start [2025-01-22 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304732', 'tblTempUsageDetail_20' ) end [2025-01-22 11:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:37:32] Production.INFO: ==26096== Releasing lock... [2025-01-22 11:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:37:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:38:05 [end_date_ymd] => 2025-01-22 11:38:05 [RateCDR] => 1 ) [2025-01-22 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:38:05' and `end` < '2025-01-22 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:38:21] Production.INFO: count ==4315 [2025-01-22 11:38:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:38:05 - End Time 2025-01-22 11:38:05 [2025-01-22 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304737', 'tblTempUsageDetail_20' ) start [2025-01-22 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304737', 'tblTempUsageDetail_20' ) end [2025-01-22 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304737', 'tblTempVendorCDR_20' ) start [2025-01-22 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304737', 'tblTempVendorCDR_20' ) end [2025-01-22 11:38:23] Production.INFO: ProcessCDR(1,14304737,1,1,2) [2025-01-22 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304737', 'tblTempUsageDetail_20' ) start [2025-01-22 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304737', 'tblTempUsageDetail_20' ) end [2025-01-22 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:38:26] Production.INFO: ==26173== Releasing lock... [2025-01-22 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:38:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:39:06 [end_date_ymd] => 2025-01-22 11:39:06 [RateCDR] => 1 ) [2025-01-22 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:39:06' and `end` < '2025-01-22 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:39:28] Production.INFO: count ==4330 [2025-01-22 11:39:30] Production.ERROR: pbx CDR StartTime 2025-01-22 08:39:06 - End Time 2025-01-22 11:39:06 [2025-01-22 11:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304742', 'tblTempUsageDetail_20' ) start [2025-01-22 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304742', 'tblTempUsageDetail_20' ) end [2025-01-22 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304742', 'tblTempVendorCDR_20' ) start [2025-01-22 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304742', 'tblTempVendorCDR_20' ) end [2025-01-22 11:39:30] Production.INFO: ProcessCDR(1,14304742,1,1,2) [2025-01-22 11:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304742', 'tblTempUsageDetail_20' ) start [2025-01-22 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304742', 'tblTempUsageDetail_20' ) end [2025-01-22 11:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:39:35] Production.INFO: ==26263== Releasing lock... [2025-01-22 11:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:39:35] Production.INFO: 60.5 MB #Memory Used# [2025-01-22 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:40:05 [end_date_ymd] => 2025-01-22 11:40:05 [RateCDR] => 1 ) [2025-01-22 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:40:05' and `end` < '2025-01-22 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:40:26] Production.INFO: count ==4345 [2025-01-22 11:40:28] Production.ERROR: pbx CDR StartTime 2025-01-22 08:40:05 - End Time 2025-01-22 11:40:05 [2025-01-22 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304747', 'tblTempUsageDetail_20' ) start [2025-01-22 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304747', 'tblTempUsageDetail_20' ) end [2025-01-22 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304747', 'tblTempVendorCDR_20' ) start [2025-01-22 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304747', 'tblTempVendorCDR_20' ) end [2025-01-22 11:40:28] Production.INFO: ProcessCDR(1,14304747,1,1,2) [2025-01-22 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304747', 'tblTempUsageDetail_20' ) start [2025-01-22 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304747', 'tblTempUsageDetail_20' ) end [2025-01-22 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:40:33] Production.INFO: ==26338== Releasing lock... [2025-01-22 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:40:33] Production.INFO: 60.5 MB #Memory Used# [2025-01-22 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:41:05 [end_date_ymd] => 2025-01-22 11:41:05 [RateCDR] => 1 ) [2025-01-22 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:41:05' and `end` < '2025-01-22 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:41:23] Production.INFO: count ==4480 [2025-01-22 11:41:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:41:05 - End Time 2025-01-22 11:41:05 [2025-01-22 11:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304753', 'tblTempUsageDetail_20' ) start [2025-01-22 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304753', 'tblTempUsageDetail_20' ) end [2025-01-22 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304753', 'tblTempVendorCDR_20' ) start [2025-01-22 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304753', 'tblTempVendorCDR_20' ) end [2025-01-22 11:41:25] Production.INFO: ProcessCDR(1,14304753,1,1,2) [2025-01-22 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304753', 'tblTempUsageDetail_20' ) start [2025-01-22 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304753', 'tblTempUsageDetail_20' ) end [2025-01-22 11:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:41:29] Production.INFO: ==26423== Releasing lock... [2025-01-22 11:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:41:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-22 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:42:05 [end_date_ymd] => 2025-01-22 11:42:05 [RateCDR] => 1 ) [2025-01-22 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:42:05' and `end` < '2025-01-22 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:42:22] Production.INFO: count ==4482 [2025-01-22 11:42:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:42:05 - End Time 2025-01-22 11:42:05 [2025-01-22 11:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304758', 'tblTempUsageDetail_20' ) start [2025-01-22 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304758', 'tblTempUsageDetail_20' ) end [2025-01-22 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304758', 'tblTempVendorCDR_20' ) start [2025-01-22 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304758', 'tblTempVendorCDR_20' ) end [2025-01-22 11:42:23] Production.INFO: ProcessCDR(1,14304758,1,1,2) [2025-01-22 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304758', 'tblTempUsageDetail_20' ) start [2025-01-22 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304758', 'tblTempUsageDetail_20' ) end [2025-01-22 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:42:28] Production.INFO: ==26497== Releasing lock... [2025-01-22 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:42:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-22 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:43:05 [end_date_ymd] => 2025-01-22 11:43:05 [RateCDR] => 1 ) [2025-01-22 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:43:05' and `end` < '2025-01-22 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:43:25] Production.INFO: count ==4488 [2025-01-22 11:43:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:43:05 - End Time 2025-01-22 11:43:05 [2025-01-22 11:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304763', 'tblTempUsageDetail_20' ) start [2025-01-22 11:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304763', 'tblTempUsageDetail_20' ) end [2025-01-22 11:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304763', 'tblTempVendorCDR_20' ) start [2025-01-22 11:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304763', 'tblTempVendorCDR_20' ) end [2025-01-22 11:43:27] Production.INFO: ProcessCDR(1,14304763,1,1,2) [2025-01-22 11:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304763', 'tblTempUsageDetail_20' ) start [2025-01-22 11:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304763', 'tblTempUsageDetail_20' ) end [2025-01-22 11:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:43:31] Production.INFO: ==26580== Releasing lock... [2025-01-22 11:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:43:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-22 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:44:05 [end_date_ymd] => 2025-01-22 11:44:05 [RateCDR] => 1 ) [2025-01-22 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:44:05' and `end` < '2025-01-22 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:44:22] Production.INFO: count ==4515 [2025-01-22 11:44:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:44:05 - End Time 2025-01-22 11:44:05 [2025-01-22 11:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304768', 'tblTempUsageDetail_20' ) start [2025-01-22 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304768', 'tblTempUsageDetail_20' ) end [2025-01-22 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304768', 'tblTempVendorCDR_20' ) start [2025-01-22 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304768', 'tblTempVendorCDR_20' ) end [2025-01-22 11:44:24] Production.INFO: ProcessCDR(1,14304768,1,1,2) [2025-01-22 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304768', 'tblTempUsageDetail_20' ) start [2025-01-22 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304768', 'tblTempUsageDetail_20' ) end [2025-01-22 11:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:44:29] Production.INFO: ==26654== Releasing lock... [2025-01-22 11:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:44:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-22 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:45:05 [end_date_ymd] => 2025-01-22 11:45:05 [RateCDR] => 1 ) [2025-01-22 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:45:05' and `end` < '2025-01-22 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:45:33] Production.INFO: count ==4520 [2025-01-22 11:45:35] Production.ERROR: pbx CDR StartTime 2025-01-22 08:45:05 - End Time 2025-01-22 11:45:05 [2025-01-22 11:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304773', 'tblTempUsageDetail_20' ) start [2025-01-22 11:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304773', 'tblTempUsageDetail_20' ) end [2025-01-22 11:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304773', 'tblTempVendorCDR_20' ) start [2025-01-22 11:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304773', 'tblTempVendorCDR_20' ) end [2025-01-22 11:45:35] Production.INFO: ProcessCDR(1,14304773,1,1,2) [2025-01-22 11:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:45:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:45:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:45:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:45:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304773', 'tblTempUsageDetail_20' ) start [2025-01-22 11:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304773', 'tblTempUsageDetail_20' ) end [2025-01-22 11:45:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:45:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:45:40] Production.INFO: ==26738== Releasing lock... [2025-01-22 11:45:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:45:40] Production.INFO: 62 MB #Memory Used# [2025-01-22 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:46:05 [end_date_ymd] => 2025-01-22 11:46:05 [RateCDR] => 1 ) [2025-01-22 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:46:05' and `end` < '2025-01-22 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:46:28] Production.INFO: count ==4525 [2025-01-22 11:46:29] Production.ERROR: pbx CDR StartTime 2025-01-22 08:46:05 - End Time 2025-01-22 11:46:05 [2025-01-22 11:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304778', 'tblTempUsageDetail_20' ) start [2025-01-22 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304778', 'tblTempUsageDetail_20' ) end [2025-01-22 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304778', 'tblTempVendorCDR_20' ) start [2025-01-22 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304778', 'tblTempVendorCDR_20' ) end [2025-01-22 11:46:30] Production.INFO: ProcessCDR(1,14304778,1,1,2) [2025-01-22 11:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304778', 'tblTempUsageDetail_20' ) start [2025-01-22 11:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304778', 'tblTempUsageDetail_20' ) end [2025-01-22 11:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:46:34] Production.INFO: ==26818== Releasing lock... [2025-01-22 11:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:46:34] Production.INFO: 62 MB #Memory Used# [2025-01-22 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:47:05 [end_date_ymd] => 2025-01-22 11:47:05 [RateCDR] => 1 ) [2025-01-22 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:47:05' and `end` < '2025-01-22 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:47:22] Production.INFO: count ==4526 [2025-01-22 11:47:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:47:05 - End Time 2025-01-22 11:47:05 [2025-01-22 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304783', 'tblTempUsageDetail_20' ) start [2025-01-22 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304783', 'tblTempUsageDetail_20' ) end [2025-01-22 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304783', 'tblTempVendorCDR_20' ) start [2025-01-22 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304783', 'tblTempVendorCDR_20' ) end [2025-01-22 11:47:24] Production.INFO: ProcessCDR(1,14304783,1,1,2) [2025-01-22 11:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304783', 'tblTempUsageDetail_20' ) start [2025-01-22 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304783', 'tblTempUsageDetail_20' ) end [2025-01-22 11:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:47:28] Production.INFO: ==26896== Releasing lock... [2025-01-22 11:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:47:28] Production.INFO: 62 MB #Memory Used# [2025-01-22 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:48:06 [end_date_ymd] => 2025-01-22 11:48:06 [RateCDR] => 1 ) [2025-01-22 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:48:06' and `end` < '2025-01-22 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:48:26] Production.INFO: count ==4541 [2025-01-22 11:48:27] Production.ERROR: pbx CDR StartTime 2025-01-22 08:48:06 - End Time 2025-01-22 11:48:06 [2025-01-22 11:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304788', 'tblTempUsageDetail_20' ) start [2025-01-22 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304788', 'tblTempUsageDetail_20' ) end [2025-01-22 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304788', 'tblTempVendorCDR_20' ) start [2025-01-22 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304788', 'tblTempVendorCDR_20' ) end [2025-01-22 11:48:27] Production.INFO: ProcessCDR(1,14304788,1,1,2) [2025-01-22 11:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304788', 'tblTempUsageDetail_20' ) start [2025-01-22 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304788', 'tblTempUsageDetail_20' ) end [2025-01-22 11:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:48:32] Production.INFO: ==27014== Releasing lock... [2025-01-22 11:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:48:32] Production.INFO: 62 MB #Memory Used# [2025-01-22 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:49:04 [end_date_ymd] => 2025-01-22 11:49:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 08:49:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 11:49:31] Production.INFO: count ==4576 [2025-01-22 11:49:32] Production.ERROR: pbx CDR StartTime 2025-01-22 08:49:04 - End Time 2025-01-22 11:49:04 [2025-01-22 11:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304793', 'tblTempUsageDetail_20' ) start [2025-01-22 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304793', 'tblTempUsageDetail_20' ) end [2025-01-22 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304793', 'tblTempVendorCDR_20' ) start [2025-01-22 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304793', 'tblTempVendorCDR_20' ) end [2025-01-22 11:49:33] Production.INFO: ProcessCDR(1,14304793,1,1,2) [2025-01-22 11:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:49:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:49:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304793', 'tblTempUsageDetail_20' ) start [2025-01-22 11:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304793', 'tblTempUsageDetail_20' ) end [2025-01-22 11:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:49:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:49:38] Production.INFO: ==27087== Releasing lock... [2025-01-22 11:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:49:38] Production.INFO: 62.25 MB #Memory Used# [2025-01-22 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:50:07 [end_date_ymd] => 2025-01-22 11:50:07 [RateCDR] => 1 ) [2025-01-22 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:50:07' and `end` < '2025-01-22 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:50:33] Production.INFO: count ==4620 [2025-01-22 11:50:35] Production.ERROR: pbx CDR StartTime 2025-01-22 08:50:07 - End Time 2025-01-22 11:50:07 [2025-01-22 11:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304799', 'tblTempUsageDetail_20' ) start [2025-01-22 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304799', 'tblTempUsageDetail_20' ) end [2025-01-22 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304799', 'tblTempVendorCDR_20' ) start [2025-01-22 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304799', 'tblTempVendorCDR_20' ) end [2025-01-22 11:50:35] Production.INFO: ProcessCDR(1,14304799,1,1,2) [2025-01-22 11:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304799', 'tblTempUsageDetail_20' ) start [2025-01-22 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304799', 'tblTempUsageDetail_20' ) end [2025-01-22 11:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:50:40] Production.INFO: ==27172== Releasing lock... [2025-01-22 11:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:50:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-22 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:51:05 [end_date_ymd] => 2025-01-22 11:51:05 [RateCDR] => 1 ) [2025-01-22 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:51:05' and `end` < '2025-01-22 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:51:24] Production.INFO: count ==4732 [2025-01-22 11:51:26] Production.ERROR: pbx CDR StartTime 2025-01-22 08:51:05 - End Time 2025-01-22 11:51:05 [2025-01-22 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304804', 'tblTempUsageDetail_20' ) start [2025-01-22 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304804', 'tblTempUsageDetail_20' ) end [2025-01-22 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304804', 'tblTempVendorCDR_20' ) start [2025-01-22 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304804', 'tblTempVendorCDR_20' ) end [2025-01-22 11:51:26] Production.INFO: ProcessCDR(1,14304804,1,1,2) [2025-01-22 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304804', 'tblTempUsageDetail_20' ) start [2025-01-22 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304804', 'tblTempUsageDetail_20' ) end [2025-01-22 11:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:51:31] Production.INFO: ==27248== Releasing lock... [2025-01-22 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:51:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-22 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:52:05 [end_date_ymd] => 2025-01-22 11:52:05 [RateCDR] => 1 ) [2025-01-22 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:52:05' and `end` < '2025-01-22 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:52:28] Production.INFO: count ==4745 [2025-01-22 11:52:29] Production.ERROR: pbx CDR StartTime 2025-01-22 08:52:05 - End Time 2025-01-22 11:52:05 [2025-01-22 11:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304809', 'tblTempUsageDetail_20' ) start [2025-01-22 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304809', 'tblTempUsageDetail_20' ) end [2025-01-22 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304809', 'tblTempVendorCDR_20' ) start [2025-01-22 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304809', 'tblTempVendorCDR_20' ) end [2025-01-22 11:52:29] Production.INFO: ProcessCDR(1,14304809,1,1,2) [2025-01-22 11:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304809', 'tblTempUsageDetail_20' ) start [2025-01-22 11:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304809', 'tblTempUsageDetail_20' ) end [2025-01-22 11:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:52:34] Production.INFO: ==27326== Releasing lock... [2025-01-22 11:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:52:34] Production.INFO: 63.5 MB #Memory Used# [2025-01-22 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:53:05 [end_date_ymd] => 2025-01-22 11:53:05 [RateCDR] => 1 ) [2025-01-22 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:53:05' and `end` < '2025-01-22 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:53:22] Production.INFO: count ==4747 [2025-01-22 11:53:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:53:05 - End Time 2025-01-22 11:53:05 [2025-01-22 11:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304814', 'tblTempUsageDetail_20' ) start [2025-01-22 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304814', 'tblTempUsageDetail_20' ) end [2025-01-22 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304814', 'tblTempVendorCDR_20' ) start [2025-01-22 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304814', 'tblTempVendorCDR_20' ) end [2025-01-22 11:53:24] Production.INFO: ProcessCDR(1,14304814,1,1,2) [2025-01-22 11:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304814', 'tblTempUsageDetail_20' ) start [2025-01-22 11:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304814', 'tblTempUsageDetail_20' ) end [2025-01-22 11:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:53:28] Production.INFO: ==27404== Releasing lock... [2025-01-22 11:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:53:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-22 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:54:05 [end_date_ymd] => 2025-01-22 11:54:05 [RateCDR] => 1 ) [2025-01-22 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:54:05' and `end` < '2025-01-22 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:54:22] Production.INFO: count ==4747 [2025-01-22 11:54:23] Production.ERROR: pbx CDR StartTime 2025-01-22 08:54:05 - End Time 2025-01-22 11:54:05 [2025-01-22 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304819', 'tblTempUsageDetail_20' ) start [2025-01-22 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304819', 'tblTempUsageDetail_20' ) end [2025-01-22 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304819', 'tblTempVendorCDR_20' ) start [2025-01-22 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304819', 'tblTempVendorCDR_20' ) end [2025-01-22 11:54:24] Production.INFO: ProcessCDR(1,14304819,1,1,2) [2025-01-22 11:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304819', 'tblTempUsageDetail_20' ) start [2025-01-22 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304819', 'tblTempUsageDetail_20' ) end [2025-01-22 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:54:28] Production.INFO: ==27486== Releasing lock... [2025-01-22 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:54:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:55:05 [end_date_ymd] => 2025-01-22 11:55:05 [RateCDR] => 1 ) [2025-01-22 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:55:05' and `end` < '2025-01-22 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:55:32] Production.INFO: count ==4753 [2025-01-22 11:55:34] Production.ERROR: pbx CDR StartTime 2025-01-22 08:55:05 - End Time 2025-01-22 11:55:05 [2025-01-22 11:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304824', 'tblTempUsageDetail_20' ) start [2025-01-22 11:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304824', 'tblTempUsageDetail_20' ) end [2025-01-22 11:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304824', 'tblTempVendorCDR_20' ) start [2025-01-22 11:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304824', 'tblTempVendorCDR_20' ) end [2025-01-22 11:55:34] Production.INFO: ProcessCDR(1,14304824,1,1,2) [2025-01-22 11:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304824', 'tblTempUsageDetail_20' ) start [2025-01-22 11:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304824', 'tblTempUsageDetail_20' ) end [2025-01-22 11:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:55:39] Production.INFO: ==27564== Releasing lock... [2025-01-22 11:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:55:39] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:56:05 [end_date_ymd] => 2025-01-22 11:56:05 [RateCDR] => 1 ) [2025-01-22 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:56:05' and `end` < '2025-01-22 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:56:22] Production.INFO: count ==4762 [2025-01-22 11:56:24] Production.ERROR: pbx CDR StartTime 2025-01-22 08:56:05 - End Time 2025-01-22 11:56:05 [2025-01-22 11:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304829', 'tblTempUsageDetail_20' ) start [2025-01-22 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304829', 'tblTempUsageDetail_20' ) end [2025-01-22 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304829', 'tblTempVendorCDR_20' ) start [2025-01-22 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304829', 'tblTempVendorCDR_20' ) end [2025-01-22 11:56:24] Production.INFO: ProcessCDR(1,14304829,1,1,2) [2025-01-22 11:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304829', 'tblTempUsageDetail_20' ) start [2025-01-22 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304829', 'tblTempUsageDetail_20' ) end [2025-01-22 11:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:56:29] Production.INFO: ==27639== Releasing lock... [2025-01-22 11:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:56:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:57:05 [end_date_ymd] => 2025-01-22 11:57:05 [RateCDR] => 1 ) [2025-01-22 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:57:05' and `end` < '2025-01-22 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:57:28] Production.INFO: count ==4782 [2025-01-22 11:57:30] Production.ERROR: pbx CDR StartTime 2025-01-22 08:57:05 - End Time 2025-01-22 11:57:05 [2025-01-22 11:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304834', 'tblTempUsageDetail_20' ) start [2025-01-22 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304834', 'tblTempUsageDetail_20' ) end [2025-01-22 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304834', 'tblTempVendorCDR_20' ) start [2025-01-22 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304834', 'tblTempVendorCDR_20' ) end [2025-01-22 11:57:30] Production.INFO: ProcessCDR(1,14304834,1,1,2) [2025-01-22 11:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304834', 'tblTempUsageDetail_20' ) start [2025-01-22 11:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304834', 'tblTempUsageDetail_20' ) end [2025-01-22 11:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:57:35] Production.INFO: ==27717== Releasing lock... [2025-01-22 11:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:57:35] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:58:05 [end_date_ymd] => 2025-01-22 11:58:05 [RateCDR] => 1 ) [2025-01-22 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:58:05' and `end` < '2025-01-22 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:58:23] Production.INFO: count ==4795 [2025-01-22 11:58:25] Production.ERROR: pbx CDR StartTime 2025-01-22 08:58:05 - End Time 2025-01-22 11:58:05 [2025-01-22 11:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304837', 'tblTempUsageDetail_20' ) start [2025-01-22 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304837', 'tblTempUsageDetail_20' ) end [2025-01-22 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304837', 'tblTempVendorCDR_20' ) start [2025-01-22 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304837', 'tblTempVendorCDR_20' ) end [2025-01-22 11:58:25] Production.INFO: ProcessCDR(1,14304837,1,1,2) [2025-01-22 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304837', 'tblTempUsageDetail_20' ) start [2025-01-22 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304837', 'tblTempUsageDetail_20' ) end [2025-01-22 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:58:30] Production.INFO: ==27791== Releasing lock... [2025-01-22 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:58:30] Production.INFO: 64 MB #Memory Used# [2025-01-22 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 08:59:05 [end_date_ymd] => 2025-01-22 11:59:05 [RateCDR] => 1 ) [2025-01-22 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 08:59:05' and `end` < '2025-01-22 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 11:59:25] Production.INFO: count ==4827 [2025-01-22 11:59:26] Production.ERROR: pbx CDR StartTime 2025-01-22 08:59:05 - End Time 2025-01-22 11:59:05 [2025-01-22 11:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304844', 'tblTempUsageDetail_20' ) start [2025-01-22 11:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304844', 'tblTempUsageDetail_20' ) end [2025-01-22 11:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304844', 'tblTempVendorCDR_20' ) start [2025-01-22 11:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304844', 'tblTempVendorCDR_20' ) end [2025-01-22 11:59:27] Production.INFO: ProcessCDR(1,14304844,1,1,2) [2025-01-22 11:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 11:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304844', 'tblTempUsageDetail_20' ) start [2025-01-22 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304844', 'tblTempUsageDetail_20' ) end [2025-01-22 11:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 11:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 11:59:32] Production.INFO: ==27863== Releasing lock... [2025-01-22 11:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 11:59:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:00:06 [end_date_ymd] => 2025-01-22 12:00:06 [RateCDR] => 1 ) [2025-01-22 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:00:06' and `end` < '2025-01-22 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:00:29] Production.INFO: count ==4832 [2025-01-22 12:00:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:00:06 - End Time 2025-01-22 12:00:06 [2025-01-22 12:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304849', 'tblTempUsageDetail_20' ) start [2025-01-22 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304849', 'tblTempUsageDetail_20' ) end [2025-01-22 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304849', 'tblTempVendorCDR_20' ) start [2025-01-22 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304849', 'tblTempVendorCDR_20' ) end [2025-01-22 12:00:31] Production.INFO: ProcessCDR(1,14304849,1,1,2) [2025-01-22 12:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304849', 'tblTempUsageDetail_20' ) start [2025-01-22 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304849', 'tblTempUsageDetail_20' ) end [2025-01-22 12:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:00:36] Production.INFO: ==27940== Releasing lock... [2025-01-22 12:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:00:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:01:05 [end_date_ymd] => 2025-01-22 12:01:05 [RateCDR] => 1 ) [2025-01-22 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:01:05' and `end` < '2025-01-22 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:01:27] Production.INFO: count ==4988 [2025-01-22 12:01:29] Production.ERROR: pbx CDR StartTime 2025-01-22 09:01:05 - End Time 2025-01-22 12:01:05 [2025-01-22 12:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304855', 'tblTempUsageDetail_20' ) start [2025-01-22 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304855', 'tblTempUsageDetail_20' ) end [2025-01-22 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304855', 'tblTempVendorCDR_20' ) start [2025-01-22 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304855', 'tblTempVendorCDR_20' ) end [2025-01-22 12:01:29] Production.INFO: ProcessCDR(1,14304855,1,1,2) [2025-01-22 12:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304855', 'tblTempUsageDetail_20' ) start [2025-01-22 12:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304855', 'tblTempUsageDetail_20' ) end [2025-01-22 12:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:01:34] Production.INFO: ==28029== Releasing lock... [2025-01-22 12:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:01:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-22 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:02:06 [end_date_ymd] => 2025-01-22 12:02:06 [RateCDR] => 1 ) [2025-01-22 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:02:06' and `end` < '2025-01-22 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:02:25] Production.INFO: count ==5012 [2025-01-22 12:02:27] Production.ERROR: pbx CDR StartTime 2025-01-22 09:02:06 - End Time 2025-01-22 12:02:06 [2025-01-22 12:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304860', 'tblTempUsageDetail_20' ) start [2025-01-22 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304860', 'tblTempUsageDetail_20' ) end [2025-01-22 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304860', 'tblTempVendorCDR_20' ) start [2025-01-22 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304860', 'tblTempVendorCDR_20' ) end [2025-01-22 12:02:28] Production.INFO: ProcessCDR(1,14304860,1,1,2) [2025-01-22 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304860', 'tblTempUsageDetail_20' ) start [2025-01-22 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304860', 'tblTempUsageDetail_20' ) end [2025-01-22 12:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:02:33] Production.INFO: ==28104== Releasing lock... [2025-01-22 12:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:02:33] Production.INFO: 65.5 MB #Memory Used# [2025-01-22 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:03:05 [end_date_ymd] => 2025-01-22 12:03:05 [RateCDR] => 1 ) [2025-01-22 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:03:05' and `end` < '2025-01-22 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:03:28] Production.INFO: count ==5024 [2025-01-22 12:03:30] Production.ERROR: pbx CDR StartTime 2025-01-22 09:03:05 - End Time 2025-01-22 12:03:05 [2025-01-22 12:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304865', 'tblTempUsageDetail_20' ) start [2025-01-22 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304865', 'tblTempUsageDetail_20' ) end [2025-01-22 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304865', 'tblTempVendorCDR_20' ) start [2025-01-22 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304865', 'tblTempVendorCDR_20' ) end [2025-01-22 12:03:30] Production.INFO: ProcessCDR(1,14304865,1,1,2) [2025-01-22 12:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304865', 'tblTempUsageDetail_20' ) start [2025-01-22 12:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304865', 'tblTempUsageDetail_20' ) end [2025-01-22 12:03:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:03:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:03:35] Production.INFO: ==28215== Releasing lock... [2025-01-22 12:03:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:03:35] Production.INFO: 65.75 MB #Memory Used# [2025-01-22 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:04:05 [end_date_ymd] => 2025-01-22 12:04:05 [RateCDR] => 1 ) [2025-01-22 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:04:05' and `end` < '2025-01-22 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:04:29] Production.INFO: count ==5043 [2025-01-22 12:04:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:04:05 - End Time 2025-01-22 12:04:05 [2025-01-22 12:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304870', 'tblTempUsageDetail_20' ) start [2025-01-22 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304870', 'tblTempUsageDetail_20' ) end [2025-01-22 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304870', 'tblTempVendorCDR_20' ) start [2025-01-22 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304870', 'tblTempVendorCDR_20' ) end [2025-01-22 12:04:31] Production.INFO: ProcessCDR(1,14304870,1,1,2) [2025-01-22 12:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304870', 'tblTempUsageDetail_20' ) start [2025-01-22 12:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304870', 'tblTempUsageDetail_20' ) end [2025-01-22 12:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:04:36] Production.INFO: ==28291== Releasing lock... [2025-01-22 12:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:04:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-22 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:05:05 [end_date_ymd] => 2025-01-22 12:05:05 [RateCDR] => 1 ) [2025-01-22 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:05:05' and `end` < '2025-01-22 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:05:27] Production.INFO: count ==5061 [2025-01-22 12:05:29] Production.ERROR: pbx CDR StartTime 2025-01-22 09:05:05 - End Time 2025-01-22 12:05:05 [2025-01-22 12:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304875', 'tblTempUsageDetail_20' ) start [2025-01-22 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304875', 'tblTempUsageDetail_20' ) end [2025-01-22 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304875', 'tblTempVendorCDR_20' ) start [2025-01-22 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304875', 'tblTempVendorCDR_20' ) end [2025-01-22 12:05:29] Production.INFO: ProcessCDR(1,14304875,1,1,2) [2025-01-22 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304875', 'tblTempUsageDetail_20' ) start [2025-01-22 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304875', 'tblTempUsageDetail_20' ) end [2025-01-22 12:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:05:35] Production.INFO: ==28364== Releasing lock... [2025-01-22 12:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:05:35] Production.INFO: 66 MB #Memory Used# [2025-01-22 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:06:06 [end_date_ymd] => 2025-01-22 12:06:06 [RateCDR] => 1 ) [2025-01-22 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:06:06' and `end` < '2025-01-22 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:06:25] Production.INFO: count ==5074 [2025-01-22 12:06:27] Production.ERROR: pbx CDR StartTime 2025-01-22 09:06:06 - End Time 2025-01-22 12:06:06 [2025-01-22 12:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304880', 'tblTempUsageDetail_20' ) start [2025-01-22 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304880', 'tblTempUsageDetail_20' ) end [2025-01-22 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304880', 'tblTempVendorCDR_20' ) start [2025-01-22 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304880', 'tblTempVendorCDR_20' ) end [2025-01-22 12:06:27] Production.INFO: ProcessCDR(1,14304880,1,1,2) [2025-01-22 12:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304880', 'tblTempUsageDetail_20' ) start [2025-01-22 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304880', 'tblTempUsageDetail_20' ) end [2025-01-22 12:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:06:32] Production.INFO: ==28437== Releasing lock... [2025-01-22 12:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:06:32] Production.INFO: 66 MB #Memory Used# [2025-01-22 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:07:05 [end_date_ymd] => 2025-01-22 12:07:05 [RateCDR] => 1 ) [2025-01-22 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:07:05' and `end` < '2025-01-22 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:07:34] Production.INFO: count ==5097 [2025-01-22 12:07:36] Production.ERROR: pbx CDR StartTime 2025-01-22 09:07:05 - End Time 2025-01-22 12:07:05 [2025-01-22 12:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304885', 'tblTempUsageDetail_20' ) start [2025-01-22 12:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304885', 'tblTempUsageDetail_20' ) end [2025-01-22 12:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304885', 'tblTempVendorCDR_20' ) start [2025-01-22 12:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304885', 'tblTempVendorCDR_20' ) end [2025-01-22 12:07:36] Production.INFO: ProcessCDR(1,14304885,1,1,2) [2025-01-22 12:07:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:07:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:07:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:07:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304885', 'tblTempUsageDetail_20' ) start [2025-01-22 12:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304885', 'tblTempUsageDetail_20' ) end [2025-01-22 12:07:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:07:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:07:41] Production.INFO: ==28513== Releasing lock... [2025-01-22 12:07:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:07:41] Production.INFO: 66.25 MB #Memory Used# [2025-01-22 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:08:06 [end_date_ymd] => 2025-01-22 12:08:06 [RateCDR] => 1 ) [2025-01-22 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:08:06' and `end` < '2025-01-22 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:08:31] Production.INFO: count ==5106 [2025-01-22 12:08:33] Production.ERROR: pbx CDR StartTime 2025-01-22 09:08:06 - End Time 2025-01-22 12:08:06 [2025-01-22 12:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304890', 'tblTempUsageDetail_20' ) start [2025-01-22 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304890', 'tblTempUsageDetail_20' ) end [2025-01-22 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304890', 'tblTempVendorCDR_20' ) start [2025-01-22 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304890', 'tblTempVendorCDR_20' ) end [2025-01-22 12:08:34] Production.INFO: ProcessCDR(1,14304890,1,1,2) [2025-01-22 12:08:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:08:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:08:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:08:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304890', 'tblTempUsageDetail_20' ) start [2025-01-22 12:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304890', 'tblTempUsageDetail_20' ) end [2025-01-22 12:08:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:08:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:08:39] Production.INFO: ==28586== Releasing lock... [2025-01-22 12:08:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:08:39] Production.INFO: 66.25 MB #Memory Used# [2025-01-22 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:09:05 [end_date_ymd] => 2025-01-22 12:09:05 [RateCDR] => 1 ) [2025-01-22 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:09:05' and `end` < '2025-01-22 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:09:25] Production.INFO: count ==5134 [2025-01-22 12:09:27] Production.ERROR: pbx CDR StartTime 2025-01-22 09:09:05 - End Time 2025-01-22 12:09:05 [2025-01-22 12:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304895', 'tblTempUsageDetail_20' ) start [2025-01-22 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304895', 'tblTempUsageDetail_20' ) end [2025-01-22 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304895', 'tblTempVendorCDR_20' ) start [2025-01-22 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304895', 'tblTempVendorCDR_20' ) end [2025-01-22 12:09:27] Production.INFO: ProcessCDR(1,14304895,1,1,2) [2025-01-22 12:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304895', 'tblTempUsageDetail_20' ) start [2025-01-22 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304895', 'tblTempUsageDetail_20' ) end [2025-01-22 12:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:09:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:09:33] Production.INFO: ==28670== Releasing lock... [2025-01-22 12:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:09:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-22 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:10:06 [end_date_ymd] => 2025-01-22 12:10:06 [RateCDR] => 1 ) [2025-01-22 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:10:06' and `end` < '2025-01-22 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:10:28] Production.INFO: count ==5146 [2025-01-22 12:10:30] Production.ERROR: pbx CDR StartTime 2025-01-22 09:10:06 - End Time 2025-01-22 12:10:06 [2025-01-22 12:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304900', 'tblTempUsageDetail_20' ) start [2025-01-22 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304900', 'tblTempUsageDetail_20' ) end [2025-01-22 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304900', 'tblTempVendorCDR_20' ) start [2025-01-22 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304900', 'tblTempVendorCDR_20' ) end [2025-01-22 12:10:30] Production.INFO: ProcessCDR(1,14304900,1,1,2) [2025-01-22 12:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304900', 'tblTempUsageDetail_20' ) start [2025-01-22 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304900', 'tblTempUsageDetail_20' ) end [2025-01-22 12:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:10:34] Production.INFO: ==28747== Releasing lock... [2025-01-22 12:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:10:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-22 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:11:05 [end_date_ymd] => 2025-01-22 12:11:05 [RateCDR] => 1 ) [2025-01-22 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:11:05' and `end` < '2025-01-22 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:11:32] Production.INFO: count ==5205 [2025-01-22 12:11:34] Production.ERROR: pbx CDR StartTime 2025-01-22 09:11:05 - End Time 2025-01-22 12:11:05 [2025-01-22 12:11:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304906', 'tblTempUsageDetail_20' ) start [2025-01-22 12:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304906', 'tblTempUsageDetail_20' ) end [2025-01-22 12:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304906', 'tblTempVendorCDR_20' ) start [2025-01-22 12:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304906', 'tblTempVendorCDR_20' ) end [2025-01-22 12:11:34] Production.INFO: ProcessCDR(1,14304906,1,1,2) [2025-01-22 12:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304906', 'tblTempUsageDetail_20' ) start [2025-01-22 12:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304906', 'tblTempUsageDetail_20' ) end [2025-01-22 12:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:11:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:11:39] Production.INFO: ==28826== Releasing lock... [2025-01-22 12:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:11:39] Production.INFO: 67 MB #Memory Used# [2025-01-22 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:12:06 [end_date_ymd] => 2025-01-22 12:12:06 [RateCDR] => 1 ) [2025-01-22 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:12:06' and `end` < '2025-01-22 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:12:32] Production.INFO: count ==5217 [2025-01-22 12:12:34] Production.ERROR: pbx CDR StartTime 2025-01-22 09:12:06 - End Time 2025-01-22 12:12:06 [2025-01-22 12:12:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304911', 'tblTempUsageDetail_20' ) start [2025-01-22 12:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304911', 'tblTempUsageDetail_20' ) end [2025-01-22 12:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304911', 'tblTempVendorCDR_20' ) start [2025-01-22 12:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304911', 'tblTempVendorCDR_20' ) end [2025-01-22 12:12:34] Production.INFO: ProcessCDR(1,14304911,1,1,2) [2025-01-22 12:12:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:12:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:12:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:12:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:12:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304911', 'tblTempUsageDetail_20' ) start [2025-01-22 12:12:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304911', 'tblTempUsageDetail_20' ) end [2025-01-22 12:12:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:12:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:12:39] Production.INFO: ==28900== Releasing lock... [2025-01-22 12:12:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:12:39] Production.INFO: 67 MB #Memory Used# [2025-01-22 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:13:05 [end_date_ymd] => 2025-01-22 12:13:05 [RateCDR] => 1 ) [2025-01-22 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:13:05' and `end` < '2025-01-22 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:13:29] Production.INFO: count ==5226 [2025-01-22 12:13:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:13:05 - End Time 2025-01-22 12:13:05 [2025-01-22 12:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304916', 'tblTempUsageDetail_20' ) start [2025-01-22 12:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304916', 'tblTempUsageDetail_20' ) end [2025-01-22 12:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304916', 'tblTempVendorCDR_20' ) start [2025-01-22 12:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304916', 'tblTempVendorCDR_20' ) end [2025-01-22 12:13:31] Production.INFO: ProcessCDR(1,14304916,1,1,2) [2025-01-22 12:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304916', 'tblTempUsageDetail_20' ) start [2025-01-22 12:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304916', 'tblTempUsageDetail_20' ) end [2025-01-22 12:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:13:36] Production.INFO: ==28972== Releasing lock... [2025-01-22 12:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:13:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:14:06 [end_date_ymd] => 2025-01-22 12:14:06 [RateCDR] => 1 ) [2025-01-22 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:14:06' and `end` < '2025-01-22 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:14:24] Production.INFO: count ==5222 [2025-01-22 12:14:26] Production.ERROR: pbx CDR StartTime 2025-01-22 09:14:06 - End Time 2025-01-22 12:14:06 [2025-01-22 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304921', 'tblTempUsageDetail_20' ) start [2025-01-22 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304921', 'tblTempUsageDetail_20' ) end [2025-01-22 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304921', 'tblTempVendorCDR_20' ) start [2025-01-22 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304921', 'tblTempVendorCDR_20' ) end [2025-01-22 12:14:26] Production.INFO: ProcessCDR(1,14304921,1,1,2) [2025-01-22 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304921', 'tblTempUsageDetail_20' ) start [2025-01-22 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304921', 'tblTempUsageDetail_20' ) end [2025-01-22 12:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:14:31] Production.INFO: ==29049== Releasing lock... [2025-01-22 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:14:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:15:05 [end_date_ymd] => 2025-01-22 12:15:05 [RateCDR] => 1 ) [2025-01-22 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:15:05' and `end` < '2025-01-22 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:15:30] Production.INFO: count ==5216 [2025-01-22 12:15:32] Production.ERROR: pbx CDR StartTime 2025-01-22 09:15:05 - End Time 2025-01-22 12:15:05 [2025-01-22 12:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304926', 'tblTempUsageDetail_20' ) start [2025-01-22 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304926', 'tblTempUsageDetail_20' ) end [2025-01-22 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304926', 'tblTempVendorCDR_20' ) start [2025-01-22 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304926', 'tblTempVendorCDR_20' ) end [2025-01-22 12:15:32] Production.INFO: ProcessCDR(1,14304926,1,1,2) [2025-01-22 12:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304926', 'tblTempUsageDetail_20' ) start [2025-01-22 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304926', 'tblTempUsageDetail_20' ) end [2025-01-22 12:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:15:37] Production.INFO: ==29121== Releasing lock... [2025-01-22 12:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:15:37] Production.INFO: 67 MB #Memory Used# [2025-01-22 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:16:05 [end_date_ymd] => 2025-01-22 12:16:05 [RateCDR] => 1 ) [2025-01-22 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:16:05' and `end` < '2025-01-22 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:16:26] Production.INFO: count ==5222 [2025-01-22 12:16:28] Production.ERROR: pbx CDR StartTime 2025-01-22 09:16:05 - End Time 2025-01-22 12:16:05 [2025-01-22 12:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304931', 'tblTempUsageDetail_20' ) start [2025-01-22 12:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304931', 'tblTempUsageDetail_20' ) end [2025-01-22 12:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304931', 'tblTempVendorCDR_20' ) start [2025-01-22 12:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304931', 'tblTempVendorCDR_20' ) end [2025-01-22 12:16:28] Production.INFO: ProcessCDR(1,14304931,1,1,2) [2025-01-22 12:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304931', 'tblTempUsageDetail_20' ) start [2025-01-22 12:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304931', 'tblTempUsageDetail_20' ) end [2025-01-22 12:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:16:33] Production.INFO: ==29197== Releasing lock... [2025-01-22 12:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:16:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:17:05 [end_date_ymd] => 2025-01-22 12:17:05 [RateCDR] => 1 ) [2025-01-22 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:17:05' and `end` < '2025-01-22 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:17:29] Production.INFO: count ==5226 [2025-01-22 12:17:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:17:05 - End Time 2025-01-22 12:17:05 [2025-01-22 12:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304936', 'tblTempUsageDetail_20' ) start [2025-01-22 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304936', 'tblTempUsageDetail_20' ) end [2025-01-22 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304936', 'tblTempVendorCDR_20' ) start [2025-01-22 12:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304936', 'tblTempVendorCDR_20' ) end [2025-01-22 12:17:31] Production.INFO: ProcessCDR(1,14304936,1,1,2) [2025-01-22 12:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304936', 'tblTempUsageDetail_20' ) start [2025-01-22 12:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304936', 'tblTempUsageDetail_20' ) end [2025-01-22 12:17:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:17:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:17:36] Production.INFO: ==29268== Releasing lock... [2025-01-22 12:17:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:17:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:18:05 [end_date_ymd] => 2025-01-22 12:18:05 [RateCDR] => 1 ) [2025-01-22 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:18:05' and `end` < '2025-01-22 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:18:23] Production.INFO: count ==5234 [2025-01-22 12:18:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:18:05 - End Time 2025-01-22 12:18:05 [2025-01-22 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304941', 'tblTempUsageDetail_20' ) start [2025-01-22 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304941', 'tblTempUsageDetail_20' ) end [2025-01-22 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304941', 'tblTempVendorCDR_20' ) start [2025-01-22 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304941', 'tblTempVendorCDR_20' ) end [2025-01-22 12:18:25] Production.INFO: ProcessCDR(1,14304941,1,1,2) [2025-01-22 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304941', 'tblTempUsageDetail_20' ) start [2025-01-22 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304941', 'tblTempUsageDetail_20' ) end [2025-01-22 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:18:30] Production.INFO: ==29354== Releasing lock... [2025-01-22 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:18:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:19:05 [end_date_ymd] => 2025-01-22 12:19:05 [RateCDR] => 1 ) [2025-01-22 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:19:05' and `end` < '2025-01-22 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:19:24] Production.INFO: count ==5235 [2025-01-22 12:19:26] Production.ERROR: pbx CDR StartTime 2025-01-22 09:19:05 - End Time 2025-01-22 12:19:05 [2025-01-22 12:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304946', 'tblTempUsageDetail_20' ) start [2025-01-22 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304946', 'tblTempUsageDetail_20' ) end [2025-01-22 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304946', 'tblTempVendorCDR_20' ) start [2025-01-22 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304946', 'tblTempVendorCDR_20' ) end [2025-01-22 12:19:26] Production.INFO: ProcessCDR(1,14304946,1,1,2) [2025-01-22 12:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304946', 'tblTempUsageDetail_20' ) start [2025-01-22 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304946', 'tblTempUsageDetail_20' ) end [2025-01-22 12:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:19:31] Production.INFO: ==29466== Releasing lock... [2025-01-22 12:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:19:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:20:06 [end_date_ymd] => 2025-01-22 12:20:06 [RateCDR] => 1 ) [2025-01-22 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:20:06' and `end` < '2025-01-22 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:20:29] Production.INFO: count ==5246 [2025-01-22 12:20:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:20:06 - End Time 2025-01-22 12:20:06 [2025-01-22 12:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304951', 'tblTempUsageDetail_20' ) start [2025-01-22 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304951', 'tblTempUsageDetail_20' ) end [2025-01-22 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304951', 'tblTempVendorCDR_20' ) start [2025-01-22 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304951', 'tblTempVendorCDR_20' ) end [2025-01-22 12:20:32] Production.INFO: ProcessCDR(1,14304951,1,1,2) [2025-01-22 12:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304951', 'tblTempUsageDetail_20' ) start [2025-01-22 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304951', 'tblTempUsageDetail_20' ) end [2025-01-22 12:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:20:36] Production.INFO: ==29541== Releasing lock... [2025-01-22 12:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:20:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:21:05 [end_date_ymd] => 2025-01-22 12:21:05 [RateCDR] => 1 ) [2025-01-22 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:21:05' and `end` < '2025-01-22 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:21:28] Production.INFO: count ==5292 [2025-01-22 12:21:30] Production.ERROR: pbx CDR StartTime 2025-01-22 09:21:05 - End Time 2025-01-22 12:21:05 [2025-01-22 12:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304957', 'tblTempUsageDetail_20' ) start [2025-01-22 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304957', 'tblTempUsageDetail_20' ) end [2025-01-22 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304957', 'tblTempVendorCDR_20' ) start [2025-01-22 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304957', 'tblTempVendorCDR_20' ) end [2025-01-22 12:21:30] Production.INFO: ProcessCDR(1,14304957,1,1,2) [2025-01-22 12:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304957', 'tblTempUsageDetail_20' ) start [2025-01-22 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304957', 'tblTempUsageDetail_20' ) end [2025-01-22 12:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:21:34] Production.INFO: ==29615== Releasing lock... [2025-01-22 12:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:21:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-22 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:22:05 [end_date_ymd] => 2025-01-22 12:22:05 [RateCDR] => 1 ) [2025-01-22 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:22:05' and `end` < '2025-01-22 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:22:31] Production.INFO: count ==5296 [2025-01-22 12:22:33] Production.ERROR: pbx CDR StartTime 2025-01-22 09:22:05 - End Time 2025-01-22 12:22:05 [2025-01-22 12:22:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304962', 'tblTempUsageDetail_20' ) start [2025-01-22 12:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304962', 'tblTempUsageDetail_20' ) end [2025-01-22 12:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304962', 'tblTempVendorCDR_20' ) start [2025-01-22 12:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304962', 'tblTempVendorCDR_20' ) end [2025-01-22 12:22:33] Production.INFO: ProcessCDR(1,14304962,1,1,2) [2025-01-22 12:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304962', 'tblTempUsageDetail_20' ) start [2025-01-22 12:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304962', 'tblTempUsageDetail_20' ) end [2025-01-22 12:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:22:38] Production.INFO: ==29691== Releasing lock... [2025-01-22 12:22:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:22:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-22 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:23:05 [end_date_ymd] => 2025-01-22 12:23:05 [RateCDR] => 1 ) [2025-01-22 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:23:05' and `end` < '2025-01-22 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:23:29] Production.INFO: count ==5303 [2025-01-22 12:23:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:23:05 - End Time 2025-01-22 12:23:05 [2025-01-22 12:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304967', 'tblTempUsageDetail_20' ) start [2025-01-22 12:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304967', 'tblTempUsageDetail_20' ) end [2025-01-22 12:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304967', 'tblTempVendorCDR_20' ) start [2025-01-22 12:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304967', 'tblTempVendorCDR_20' ) end [2025-01-22 12:23:31] Production.INFO: ProcessCDR(1,14304967,1,1,2) [2025-01-22 12:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304967', 'tblTempUsageDetail_20' ) start [2025-01-22 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304967', 'tblTempUsageDetail_20' ) end [2025-01-22 12:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:23:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:23:36] Production.INFO: ==29765== Releasing lock... [2025-01-22 12:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:23:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-22 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:24:05 [end_date_ymd] => 2025-01-22 12:24:05 [RateCDR] => 1 ) [2025-01-22 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:24:05' and `end` < '2025-01-22 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:24:27] Production.INFO: count ==5319 [2025-01-22 12:24:29] Production.ERROR: pbx CDR StartTime 2025-01-22 09:24:05 - End Time 2025-01-22 12:24:05 [2025-01-22 12:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304972', 'tblTempUsageDetail_20' ) start [2025-01-22 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304972', 'tblTempUsageDetail_20' ) end [2025-01-22 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304972', 'tblTempVendorCDR_20' ) start [2025-01-22 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304972', 'tblTempVendorCDR_20' ) end [2025-01-22 12:24:30] Production.INFO: ProcessCDR(1,14304972,1,1,2) [2025-01-22 12:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304972', 'tblTempUsageDetail_20' ) start [2025-01-22 12:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304972', 'tblTempUsageDetail_20' ) end [2025-01-22 12:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:24:34] Production.INFO: ==29839== Releasing lock... [2025-01-22 12:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:24:34] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:25:05 [end_date_ymd] => 2025-01-22 12:25:05 [RateCDR] => 1 ) [2025-01-22 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:25:05' and `end` < '2025-01-22 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:25:31] Production.INFO: count ==5338 [2025-01-22 12:25:33] Production.ERROR: pbx CDR StartTime 2025-01-22 09:25:05 - End Time 2025-01-22 12:25:05 [2025-01-22 12:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304977', 'tblTempUsageDetail_20' ) start [2025-01-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304977', 'tblTempUsageDetail_20' ) end [2025-01-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304977', 'tblTempVendorCDR_20' ) start [2025-01-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304977', 'tblTempVendorCDR_20' ) end [2025-01-22 12:25:33] Production.INFO: ProcessCDR(1,14304977,1,1,2) [2025-01-22 12:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304977', 'tblTempUsageDetail_20' ) start [2025-01-22 12:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304977', 'tblTempUsageDetail_20' ) end [2025-01-22 12:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:25:38] Production.INFO: ==29912== Releasing lock... [2025-01-22 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:25:38] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:26:05 [end_date_ymd] => 2025-01-22 12:26:05 [RateCDR] => 1 ) [2025-01-22 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:26:05' and `end` < '2025-01-22 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:26:22] Production.INFO: count ==5331 [2025-01-22 12:26:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:26:05 - End Time 2025-01-22 12:26:05 [2025-01-22 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304982', 'tblTempUsageDetail_20' ) start [2025-01-22 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304982', 'tblTempUsageDetail_20' ) end [2025-01-22 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304982', 'tblTempVendorCDR_20' ) start [2025-01-22 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304982', 'tblTempVendorCDR_20' ) end [2025-01-22 12:26:25] Production.INFO: ProcessCDR(1,14304982,1,1,2) [2025-01-22 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304982', 'tblTempUsageDetail_20' ) start [2025-01-22 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304982', 'tblTempUsageDetail_20' ) end [2025-01-22 12:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:26:29] Production.INFO: ==29982== Releasing lock... [2025-01-22 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:26:29] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:27:05 [end_date_ymd] => 2025-01-22 12:27:05 [RateCDR] => 1 ) [2025-01-22 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:27:05' and `end` < '2025-01-22 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:27:22] Production.INFO: count ==5328 [2025-01-22 12:27:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:27:05 - End Time 2025-01-22 12:27:05 [2025-01-22 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304987', 'tblTempUsageDetail_20' ) start [2025-01-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304987', 'tblTempUsageDetail_20' ) end [2025-01-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304987', 'tblTempVendorCDR_20' ) start [2025-01-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304987', 'tblTempVendorCDR_20' ) end [2025-01-22 12:27:25] Production.INFO: ProcessCDR(1,14304987,1,1,2) [2025-01-22 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304987', 'tblTempUsageDetail_20' ) start [2025-01-22 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304987', 'tblTempUsageDetail_20' ) end [2025-01-22 12:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:27:29] Production.INFO: ==30052== Releasing lock... [2025-01-22 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:27:29] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:28:05 [end_date_ymd] => 2025-01-22 12:28:05 [RateCDR] => 1 ) [2025-01-22 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:28:05' and `end` < '2025-01-22 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:28:23] Production.INFO: count ==5326 [2025-01-22 12:28:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:28:05 - End Time 2025-01-22 12:28:05 [2025-01-22 12:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304992', 'tblTempUsageDetail_20' ) start [2025-01-22 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304992', 'tblTempUsageDetail_20' ) end [2025-01-22 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304992', 'tblTempVendorCDR_20' ) start [2025-01-22 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304992', 'tblTempVendorCDR_20' ) end [2025-01-22 12:28:25] Production.INFO: ProcessCDR(1,14304992,1,1,2) [2025-01-22 12:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304992', 'tblTempUsageDetail_20' ) start [2025-01-22 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304992', 'tblTempUsageDetail_20' ) end [2025-01-22 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:28:29] Production.INFO: ==30124== Releasing lock... [2025-01-22 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:28:29] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:29:05 [end_date_ymd] => 2025-01-22 12:29:05 [RateCDR] => 1 ) [2025-01-22 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:29:05' and `end` < '2025-01-22 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:29:22] Production.INFO: count ==5334 [2025-01-22 12:29:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:29:05 - End Time 2025-01-22 12:29:05 [2025-01-22 12:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304997', 'tblTempUsageDetail_20' ) start [2025-01-22 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14304997', 'tblTempUsageDetail_20' ) end [2025-01-22 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304997', 'tblTempVendorCDR_20' ) start [2025-01-22 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14304997', 'tblTempVendorCDR_20' ) end [2025-01-22 12:29:25] Production.INFO: ProcessCDR(1,14304997,1,1,2) [2025-01-22 12:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14304997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14304997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14304997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14304997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304997', 'tblTempUsageDetail_20' ) start [2025-01-22 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14304997', 'tblTempUsageDetail_20' ) end [2025-01-22 12:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:29:29] Production.INFO: ==30196== Releasing lock... [2025-01-22 12:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:29:29] Production.INFO: 68 MB #Memory Used# [2025-01-22 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:30:05 [end_date_ymd] => 2025-01-22 12:30:05 [RateCDR] => 1 ) [2025-01-22 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:30:05' and `end` < '2025-01-22 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:30:34] Production.INFO: count ==5355 [2025-01-22 12:30:36] Production.ERROR: pbx CDR StartTime 2025-01-22 09:30:05 - End Time 2025-01-22 12:30:05 [2025-01-22 12:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305003', 'tblTempUsageDetail_20' ) start [2025-01-22 12:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305003', 'tblTempUsageDetail_20' ) end [2025-01-22 12:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305003', 'tblTempVendorCDR_20' ) start [2025-01-22 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305003', 'tblTempVendorCDR_20' ) end [2025-01-22 12:30:37] Production.INFO: ProcessCDR(1,14305003,1,1,2) [2025-01-22 12:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305003', 'tblTempUsageDetail_20' ) start [2025-01-22 12:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305003', 'tblTempUsageDetail_20' ) end [2025-01-22 12:30:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:30:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:30:41] Production.INFO: ==30269== Releasing lock... [2025-01-22 12:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:30:41] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:31:05 [end_date_ymd] => 2025-01-22 12:31:05 [RateCDR] => 1 ) [2025-01-22 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:31:05' and `end` < '2025-01-22 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:31:24] Production.INFO: count ==5353 [2025-01-22 12:31:26] Production.ERROR: pbx CDR StartTime 2025-01-22 09:31:05 - End Time 2025-01-22 12:31:05 [2025-01-22 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305008', 'tblTempUsageDetail_20' ) start [2025-01-22 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305008', 'tblTempUsageDetail_20' ) end [2025-01-22 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305008', 'tblTempVendorCDR_20' ) start [2025-01-22 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305008', 'tblTempVendorCDR_20' ) end [2025-01-22 12:31:26] Production.INFO: ProcessCDR(1,14305008,1,1,2) [2025-01-22 12:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305008', 'tblTempUsageDetail_20' ) start [2025-01-22 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305008', 'tblTempUsageDetail_20' ) end [2025-01-22 12:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:31:31] Production.INFO: ==30342== Releasing lock... [2025-01-22 12:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:31:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:32:05 [end_date_ymd] => 2025-01-22 12:32:05 [RateCDR] => 1 ) [2025-01-22 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:32:05' and `end` < '2025-01-22 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:32:22] Production.INFO: count ==5366 [2025-01-22 12:32:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:32:05 - End Time 2025-01-22 12:32:05 [2025-01-22 12:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305013', 'tblTempUsageDetail_20' ) start [2025-01-22 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305013', 'tblTempUsageDetail_20' ) end [2025-01-22 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305013', 'tblTempVendorCDR_20' ) start [2025-01-22 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305013', 'tblTempVendorCDR_20' ) end [2025-01-22 12:32:24] Production.INFO: ProcessCDR(1,14305013,1,1,2) [2025-01-22 12:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305013', 'tblTempUsageDetail_20' ) start [2025-01-22 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305013', 'tblTempUsageDetail_20' ) end [2025-01-22 12:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:32:29] Production.INFO: ==30411== Releasing lock... [2025-01-22 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:32:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:33:05 [end_date_ymd] => 2025-01-22 12:33:05 [RateCDR] => 1 ) [2025-01-22 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:33:05' and `end` < '2025-01-22 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:33:22] Production.INFO: count ==5369 [2025-01-22 12:33:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:33:05 - End Time 2025-01-22 12:33:05 [2025-01-22 12:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305018', 'tblTempUsageDetail_20' ) start [2025-01-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305018', 'tblTempUsageDetail_20' ) end [2025-01-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305018', 'tblTempVendorCDR_20' ) start [2025-01-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305018', 'tblTempVendorCDR_20' ) end [2025-01-22 12:33:24] Production.INFO: ProcessCDR(1,14305018,1,1,2) [2025-01-22 12:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305018', 'tblTempUsageDetail_20' ) start [2025-01-22 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305018', 'tblTempUsageDetail_20' ) end [2025-01-22 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:33:27] Production.INFO: ==30482== Releasing lock... [2025-01-22 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:33:27] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:34:06 [end_date_ymd] => 2025-01-22 12:34:06 [RateCDR] => 1 ) [2025-01-22 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:34:06' and `end` < '2025-01-22 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:34:29] Production.INFO: count ==5377 [2025-01-22 12:34:31] Production.ERROR: pbx CDR StartTime 2025-01-22 09:34:06 - End Time 2025-01-22 12:34:06 [2025-01-22 12:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305023', 'tblTempUsageDetail_20' ) start [2025-01-22 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305023', 'tblTempUsageDetail_20' ) end [2025-01-22 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305023', 'tblTempVendorCDR_20' ) start [2025-01-22 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305023', 'tblTempVendorCDR_20' ) end [2025-01-22 12:34:31] Production.INFO: ProcessCDR(1,14305023,1,1,2) [2025-01-22 12:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:34:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:34:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305023', 'tblTempUsageDetail_20' ) start [2025-01-22 12:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305023', 'tblTempUsageDetail_20' ) end [2025-01-22 12:34:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:34:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:34:36] Production.INFO: ==30591== Releasing lock... [2025-01-22 12:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:34:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:35:05 [end_date_ymd] => 2025-01-22 12:35:05 [RateCDR] => 1 ) [2025-01-22 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:35:05' and `end` < '2025-01-22 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:35:28] Production.INFO: count ==5383 [2025-01-22 12:35:30] Production.ERROR: pbx CDR StartTime 2025-01-22 09:35:05 - End Time 2025-01-22 12:35:05 [2025-01-22 12:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305028', 'tblTempUsageDetail_20' ) start [2025-01-22 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305028', 'tblTempUsageDetail_20' ) end [2025-01-22 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305028', 'tblTempVendorCDR_20' ) start [2025-01-22 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305028', 'tblTempVendorCDR_20' ) end [2025-01-22 12:35:30] Production.INFO: ProcessCDR(1,14305028,1,1,2) [2025-01-22 12:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305028', 'tblTempUsageDetail_20' ) start [2025-01-22 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305028', 'tblTempUsageDetail_20' ) end [2025-01-22 12:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:35:35] Production.INFO: ==30667== Releasing lock... [2025-01-22 12:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:35:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:36:05 [end_date_ymd] => 2025-01-22 12:36:05 [RateCDR] => 1 ) [2025-01-22 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:36:05' and `end` < '2025-01-22 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:36:23] Production.INFO: count ==5370 [2025-01-22 12:36:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:36:05 - End Time 2025-01-22 12:36:05 [2025-01-22 12:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305033', 'tblTempUsageDetail_20' ) start [2025-01-22 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305033', 'tblTempUsageDetail_20' ) end [2025-01-22 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305033', 'tblTempVendorCDR_20' ) start [2025-01-22 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305033', 'tblTempVendorCDR_20' ) end [2025-01-22 12:36:25] Production.INFO: ProcessCDR(1,14305033,1,1,2) [2025-01-22 12:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305033', 'tblTempUsageDetail_20' ) start [2025-01-22 12:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305033', 'tblTempUsageDetail_20' ) end [2025-01-22 12:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:36:30] Production.INFO: ==30736== Releasing lock... [2025-01-22 12:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:36:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:37:05 [end_date_ymd] => 2025-01-22 12:37:05 [RateCDR] => 1 ) [2025-01-22 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:37:05' and `end` < '2025-01-22 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:37:33] Production.INFO: count ==5385 [2025-01-22 12:37:35] Production.ERROR: pbx CDR StartTime 2025-01-22 09:37:05 - End Time 2025-01-22 12:37:05 [2025-01-22 12:37:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305038', 'tblTempUsageDetail_20' ) start [2025-01-22 12:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305038', 'tblTempUsageDetail_20' ) end [2025-01-22 12:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305038', 'tblTempVendorCDR_20' ) start [2025-01-22 12:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305038', 'tblTempVendorCDR_20' ) end [2025-01-22 12:37:36] Production.INFO: ProcessCDR(1,14305038,1,1,2) [2025-01-22 12:37:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:37:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:37:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:37:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305038', 'tblTempUsageDetail_20' ) start [2025-01-22 12:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305038', 'tblTempUsageDetail_20' ) end [2025-01-22 12:37:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:37:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:37:40] Production.INFO: ==30806== Releasing lock... [2025-01-22 12:37:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:37:40] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:38:05 [end_date_ymd] => 2025-01-22 12:38:05 [RateCDR] => 1 ) [2025-01-22 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:38:05' and `end` < '2025-01-22 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:38:31] Production.INFO: count ==5399 [2025-01-22 12:38:33] Production.ERROR: pbx CDR StartTime 2025-01-22 09:38:05 - End Time 2025-01-22 12:38:05 [2025-01-22 12:38:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305043', 'tblTempUsageDetail_20' ) start [2025-01-22 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305043', 'tblTempUsageDetail_20' ) end [2025-01-22 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305043', 'tblTempVendorCDR_20' ) start [2025-01-22 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305043', 'tblTempVendorCDR_20' ) end [2025-01-22 12:38:33] Production.INFO: ProcessCDR(1,14305043,1,1,2) [2025-01-22 12:38:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:38:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:38:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:38:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305043', 'tblTempUsageDetail_20' ) start [2025-01-22 12:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305043', 'tblTempUsageDetail_20' ) end [2025-01-22 12:38:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:38:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:38:38] Production.INFO: ==30876== Releasing lock... [2025-01-22 12:38:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:38:38] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:39:05 [end_date_ymd] => 2025-01-22 12:39:05 [RateCDR] => 1 ) [2025-01-22 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:39:05' and `end` < '2025-01-22 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:39:22] Production.INFO: count ==5400 [2025-01-22 12:39:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:39:05 - End Time 2025-01-22 12:39:05 [2025-01-22 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305048', 'tblTempUsageDetail_20' ) start [2025-01-22 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305048', 'tblTempUsageDetail_20' ) end [2025-01-22 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305048', 'tblTempVendorCDR_20' ) start [2025-01-22 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305048', 'tblTempVendorCDR_20' ) end [2025-01-22 12:39:24] Production.INFO: ProcessCDR(1,14305048,1,1,2) [2025-01-22 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305048', 'tblTempUsageDetail_20' ) start [2025-01-22 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305048', 'tblTempUsageDetail_20' ) end [2025-01-22 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:39:28] Production.INFO: ==30947== Releasing lock... [2025-01-22 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:39:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:40:05 [end_date_ymd] => 2025-01-22 12:40:05 [RateCDR] => 1 ) [2025-01-22 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:40:05' and `end` < '2025-01-22 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:40:23] Production.INFO: count ==5418 [2025-01-22 12:40:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:40:05 - End Time 2025-01-22 12:40:05 [2025-01-22 12:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305053', 'tblTempUsageDetail_20' ) start [2025-01-22 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305053', 'tblTempUsageDetail_20' ) end [2025-01-22 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305053', 'tblTempVendorCDR_20' ) start [2025-01-22 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305053', 'tblTempVendorCDR_20' ) end [2025-01-22 12:40:25] Production.INFO: ProcessCDR(1,14305053,1,1,2) [2025-01-22 12:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305053', 'tblTempUsageDetail_20' ) start [2025-01-22 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305053', 'tblTempUsageDetail_20' ) end [2025-01-22 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:40:30] Production.INFO: ==31018== Releasing lock... [2025-01-22 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:40:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:41:05 [end_date_ymd] => 2025-01-22 12:41:05 [RateCDR] => 1 ) [2025-01-22 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:41:05' and `end` < '2025-01-22 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:41:22] Production.INFO: count ==5459 [2025-01-22 12:41:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:41:05 - End Time 2025-01-22 12:41:05 [2025-01-22 12:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305059', 'tblTempUsageDetail_20' ) start [2025-01-22 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305059', 'tblTempUsageDetail_20' ) end [2025-01-22 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305059', 'tblTempVendorCDR_20' ) start [2025-01-22 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305059', 'tblTempVendorCDR_20' ) end [2025-01-22 12:41:24] Production.INFO: ProcessCDR(1,14305059,1,1,2) [2025-01-22 12:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305059', 'tblTempUsageDetail_20' ) start [2025-01-22 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305059', 'tblTempUsageDetail_20' ) end [2025-01-22 12:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:41:29] Production.INFO: ==31092== Releasing lock... [2025-01-22 12:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:41:29] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:42:05 [end_date_ymd] => 2025-01-22 12:42:05 [RateCDR] => 1 ) [2025-01-22 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:42:05' and `end` < '2025-01-22 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:42:23] Production.INFO: count ==5469 [2025-01-22 12:42:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:42:05 - End Time 2025-01-22 12:42:05 [2025-01-22 12:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305064', 'tblTempUsageDetail_20' ) start [2025-01-22 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305064', 'tblTempUsageDetail_20' ) end [2025-01-22 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305064', 'tblTempVendorCDR_20' ) start [2025-01-22 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305064', 'tblTempVendorCDR_20' ) end [2025-01-22 12:42:25] Production.INFO: ProcessCDR(1,14305064,1,1,2) [2025-01-22 12:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305064', 'tblTempUsageDetail_20' ) start [2025-01-22 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305064', 'tblTempUsageDetail_20' ) end [2025-01-22 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:42:29] Production.INFO: ==31168== Releasing lock... [2025-01-22 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:42:29] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:43:05 [end_date_ymd] => 2025-01-22 12:43:05 [RateCDR] => 1 ) [2025-01-22 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:43:05' and `end` < '2025-01-22 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:43:21] Production.INFO: count ==5467 [2025-01-22 12:43:23] Production.ERROR: pbx CDR StartTime 2025-01-22 09:43:05 - End Time 2025-01-22 12:43:05 [2025-01-22 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305069', 'tblTempUsageDetail_20' ) start [2025-01-22 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305069', 'tblTempUsageDetail_20' ) end [2025-01-22 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305069', 'tblTempVendorCDR_20' ) start [2025-01-22 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305069', 'tblTempVendorCDR_20' ) end [2025-01-22 12:43:23] Production.INFO: ProcessCDR(1,14305069,1,1,2) [2025-01-22 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305069', 'tblTempUsageDetail_20' ) start [2025-01-22 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305069', 'tblTempUsageDetail_20' ) end [2025-01-22 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:43:27] Production.INFO: ==31243== Releasing lock... [2025-01-22 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:43:27] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:44:05 [end_date_ymd] => 2025-01-22 12:44:05 [RateCDR] => 1 ) [2025-01-22 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:44:05' and `end` < '2025-01-22 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:44:20] Production.INFO: count ==5483 [2025-01-22 12:44:22] Production.ERROR: pbx CDR StartTime 2025-01-22 09:44:05 - End Time 2025-01-22 12:44:05 [2025-01-22 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305074', 'tblTempUsageDetail_20' ) start [2025-01-22 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305074', 'tblTempUsageDetail_20' ) end [2025-01-22 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305074', 'tblTempVendorCDR_20' ) start [2025-01-22 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305074', 'tblTempVendorCDR_20' ) end [2025-01-22 12:44:22] Production.INFO: ProcessCDR(1,14305074,1,1,2) [2025-01-22 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305074', 'tblTempUsageDetail_20' ) start [2025-01-22 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305074', 'tblTempUsageDetail_20' ) end [2025-01-22 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:44:26] Production.INFO: ==31314== Releasing lock... [2025-01-22 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:44:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:45:05 [end_date_ymd] => 2025-01-22 12:45:05 [RateCDR] => 1 ) [2025-01-22 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:45:05' and `end` < '2025-01-22 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:45:27] Production.INFO: count ==5493 [2025-01-22 12:45:29] Production.ERROR: pbx CDR StartTime 2025-01-22 09:45:05 - End Time 2025-01-22 12:45:05 [2025-01-22 12:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305079', 'tblTempUsageDetail_20' ) start [2025-01-22 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305079', 'tblTempUsageDetail_20' ) end [2025-01-22 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305079', 'tblTempVendorCDR_20' ) start [2025-01-22 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305079', 'tblTempVendorCDR_20' ) end [2025-01-22 12:45:29] Production.INFO: ProcessCDR(1,14305079,1,1,2) [2025-01-22 12:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305079', 'tblTempUsageDetail_20' ) start [2025-01-22 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305079', 'tblTempUsageDetail_20' ) end [2025-01-22 12:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:45:34] Production.INFO: ==31384== Releasing lock... [2025-01-22 12:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:45:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:46:05 [end_date_ymd] => 2025-01-22 12:46:05 [RateCDR] => 1 ) [2025-01-22 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:46:05' and `end` < '2025-01-22 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:46:19] Production.INFO: count ==5488 [2025-01-22 12:46:21] Production.ERROR: pbx CDR StartTime 2025-01-22 09:46:05 - End Time 2025-01-22 12:46:05 [2025-01-22 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305084', 'tblTempUsageDetail_20' ) start [2025-01-22 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305084', 'tblTempUsageDetail_20' ) end [2025-01-22 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305084', 'tblTempVendorCDR_20' ) start [2025-01-22 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305084', 'tblTempVendorCDR_20' ) end [2025-01-22 12:46:22] Production.INFO: ProcessCDR(1,14305084,1,1,2) [2025-01-22 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305084', 'tblTempUsageDetail_20' ) start [2025-01-22 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305084', 'tblTempUsageDetail_20' ) end [2025-01-22 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:46:26] Production.INFO: ==31457== Releasing lock... [2025-01-22 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:46:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:47:05 [end_date_ymd] => 2025-01-22 12:47:05 [RateCDR] => 1 ) [2025-01-22 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:47:05' and `end` < '2025-01-22 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:47:19] Production.INFO: count ==5481 [2025-01-22 12:47:21] Production.ERROR: pbx CDR StartTime 2025-01-22 09:47:05 - End Time 2025-01-22 12:47:05 [2025-01-22 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305089', 'tblTempUsageDetail_20' ) start [2025-01-22 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305089', 'tblTempUsageDetail_20' ) end [2025-01-22 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305089', 'tblTempVendorCDR_20' ) start [2025-01-22 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305089', 'tblTempVendorCDR_20' ) end [2025-01-22 12:47:21] Production.INFO: ProcessCDR(1,14305089,1,1,2) [2025-01-22 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305089', 'tblTempUsageDetail_20' ) start [2025-01-22 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305089', 'tblTempUsageDetail_20' ) end [2025-01-22 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:47:26] Production.INFO: ==31527== Releasing lock... [2025-01-22 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:47:26] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:48:06 [end_date_ymd] => 2025-01-22 12:48:06 [RateCDR] => 1 ) [2025-01-22 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:48:06' and `end` < '2025-01-22 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:48:23] Production.INFO: count ==5484 [2025-01-22 12:48:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:48:06 - End Time 2025-01-22 12:48:06 [2025-01-22 12:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305094', 'tblTempUsageDetail_20' ) start [2025-01-22 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305094', 'tblTempUsageDetail_20' ) end [2025-01-22 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305094', 'tblTempVendorCDR_20' ) start [2025-01-22 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305094', 'tblTempVendorCDR_20' ) end [2025-01-22 12:48:26] Production.INFO: ProcessCDR(1,14305094,1,1,2) [2025-01-22 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305094', 'tblTempUsageDetail_20' ) start [2025-01-22 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305094', 'tblTempUsageDetail_20' ) end [2025-01-22 12:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:48:30] Production.INFO: ==31600== Releasing lock... [2025-01-22 12:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:48:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:49:04 [end_date_ymd] => 2025-01-22 12:49:04 [RateCDR] => 1 ) [2025-01-22 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:49:04' and `end` < '2025-01-22 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:49:18] Production.INFO: count ==5470 [2025-01-22 12:49:20] Production.ERROR: pbx CDR StartTime 2025-01-22 09:49:04 - End Time 2025-01-22 12:49:04 [2025-01-22 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305099', 'tblTempUsageDetail_20' ) start [2025-01-22 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305099', 'tblTempUsageDetail_20' ) end [2025-01-22 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305099', 'tblTempVendorCDR_20' ) start [2025-01-22 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305099', 'tblTempVendorCDR_20' ) end [2025-01-22 12:49:20] Production.INFO: ProcessCDR(1,14305099,1,1,2) [2025-01-22 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305099', 'tblTempUsageDetail_20' ) start [2025-01-22 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305099', 'tblTempUsageDetail_20' ) end [2025-01-22 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:49:25] Production.INFO: ==31670== Releasing lock... [2025-01-22 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:49:25] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:50:06 [end_date_ymd] => 2025-01-22 12:50:06 [RateCDR] => 1 ) [2025-01-22 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:50:06' and `end` < '2025-01-22 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:50:26] Production.INFO: count ==5470 [2025-01-22 12:50:28] Production.ERROR: pbx CDR StartTime 2025-01-22 09:50:06 - End Time 2025-01-22 12:50:06 [2025-01-22 12:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305105', 'tblTempUsageDetail_20' ) start [2025-01-22 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305105', 'tblTempUsageDetail_20' ) end [2025-01-22 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305105', 'tblTempVendorCDR_20' ) start [2025-01-22 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305105', 'tblTempVendorCDR_20' ) end [2025-01-22 12:50:28] Production.INFO: ProcessCDR(1,14305105,1,1,2) [2025-01-22 12:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305105', 'tblTempUsageDetail_20' ) start [2025-01-22 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305105', 'tblTempUsageDetail_20' ) end [2025-01-22 12:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:50:33] Production.INFO: ==31782== Releasing lock... [2025-01-22 12:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:50:33] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:51:05 [end_date_ymd] => 2025-01-22 12:51:05 [RateCDR] => 1 ) [2025-01-22 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:51:05' and `end` < '2025-01-22 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:51:22] Production.INFO: count ==5473 [2025-01-22 12:51:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:51:05 - End Time 2025-01-22 12:51:05 [2025-01-22 12:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305110', 'tblTempUsageDetail_20' ) start [2025-01-22 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305110', 'tblTempUsageDetail_20' ) end [2025-01-22 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305110', 'tblTempVendorCDR_20' ) start [2025-01-22 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305110', 'tblTempVendorCDR_20' ) end [2025-01-22 12:51:24] Production.INFO: ProcessCDR(1,14305110,1,1,2) [2025-01-22 12:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305110', 'tblTempUsageDetail_20' ) start [2025-01-22 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305110', 'tblTempUsageDetail_20' ) end [2025-01-22 12:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:51:29] Production.INFO: ==31854== Releasing lock... [2025-01-22 12:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:51:29] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:52:05 [end_date_ymd] => 2025-01-22 12:52:05 [RateCDR] => 1 ) [2025-01-22 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:52:05' and `end` < '2025-01-22 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:52:21] Production.INFO: count ==5453 [2025-01-22 12:52:23] Production.ERROR: pbx CDR StartTime 2025-01-22 09:52:05 - End Time 2025-01-22 12:52:05 [2025-01-22 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305115', 'tblTempUsageDetail_20' ) start [2025-01-22 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305115', 'tblTempUsageDetail_20' ) end [2025-01-22 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305115', 'tblTempVendorCDR_20' ) start [2025-01-22 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305115', 'tblTempVendorCDR_20' ) end [2025-01-22 12:52:24] Production.INFO: ProcessCDR(1,14305115,1,1,2) [2025-01-22 12:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305115', 'tblTempUsageDetail_20' ) start [2025-01-22 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305115', 'tblTempUsageDetail_20' ) end [2025-01-22 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:52:28] Production.INFO: ==31927== Releasing lock... [2025-01-22 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:52:28] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:53:05 [end_date_ymd] => 2025-01-22 12:53:05 [RateCDR] => 1 ) [2025-01-22 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:53:05' and `end` < '2025-01-22 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:53:25] Production.INFO: count ==5455 [2025-01-22 12:53:27] Production.ERROR: pbx CDR StartTime 2025-01-22 09:53:05 - End Time 2025-01-22 12:53:05 [2025-01-22 12:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305117', 'tblTempUsageDetail_20' ) start [2025-01-22 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305117', 'tblTempUsageDetail_20' ) end [2025-01-22 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305117', 'tblTempVendorCDR_20' ) start [2025-01-22 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305117', 'tblTempVendorCDR_20' ) end [2025-01-22 12:53:27] Production.INFO: ProcessCDR(1,14305117,1,1,2) [2025-01-22 12:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305117', 'tblTempUsageDetail_20' ) start [2025-01-22 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305117', 'tblTempUsageDetail_20' ) end [2025-01-22 12:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:53:32] Production.INFO: ==31998== Releasing lock... [2025-01-22 12:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:53:32] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:54:05 [end_date_ymd] => 2025-01-22 12:54:05 [RateCDR] => 1 ) [2025-01-22 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:54:05' and `end` < '2025-01-22 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:54:23] Production.INFO: count ==5443 [2025-01-22 12:54:25] Production.ERROR: pbx CDR StartTime 2025-01-22 09:54:05 - End Time 2025-01-22 12:54:05 [2025-01-22 12:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305125', 'tblTempUsageDetail_20' ) start [2025-01-22 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305125', 'tblTempUsageDetail_20' ) end [2025-01-22 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305125', 'tblTempVendorCDR_20' ) start [2025-01-22 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305125', 'tblTempVendorCDR_20' ) end [2025-01-22 12:54:25] Production.INFO: ProcessCDR(1,14305125,1,1,2) [2025-01-22 12:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305125', 'tblTempUsageDetail_20' ) start [2025-01-22 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305125', 'tblTempUsageDetail_20' ) end [2025-01-22 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:54:30] Production.INFO: ==32086== Releasing lock... [2025-01-22 12:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:54:30] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:55:05 [end_date_ymd] => 2025-01-22 12:55:05 [RateCDR] => 1 ) [2025-01-22 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:55:05' and `end` < '2025-01-22 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:55:20] Production.INFO: count ==5444 [2025-01-22 12:55:22] Production.ERROR: pbx CDR StartTime 2025-01-22 09:55:05 - End Time 2025-01-22 12:55:05 [2025-01-22 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305130', 'tblTempUsageDetail_20' ) start [2025-01-22 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305130', 'tblTempUsageDetail_20' ) end [2025-01-22 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305130', 'tblTempVendorCDR_20' ) start [2025-01-22 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305130', 'tblTempVendorCDR_20' ) end [2025-01-22 12:55:22] Production.INFO: ProcessCDR(1,14305130,1,1,2) [2025-01-22 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305130', 'tblTempUsageDetail_20' ) start [2025-01-22 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305130', 'tblTempUsageDetail_20' ) end [2025-01-22 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:55:26] Production.INFO: ==32156== Releasing lock... [2025-01-22 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:55:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:56:05 [end_date_ymd] => 2025-01-22 12:56:05 [RateCDR] => 1 ) [2025-01-22 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:56:05' and `end` < '2025-01-22 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:56:19] Production.INFO: count ==5449 [2025-01-22 12:56:21] Production.ERROR: pbx CDR StartTime 2025-01-22 09:56:05 - End Time 2025-01-22 12:56:05 [2025-01-22 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305135', 'tblTempUsageDetail_20' ) start [2025-01-22 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305135', 'tblTempUsageDetail_20' ) end [2025-01-22 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305135', 'tblTempVendorCDR_20' ) start [2025-01-22 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305135', 'tblTempVendorCDR_20' ) end [2025-01-22 12:56:21] Production.INFO: ProcessCDR(1,14305135,1,1,2) [2025-01-22 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305135', 'tblTempUsageDetail_20' ) start [2025-01-22 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305135', 'tblTempUsageDetail_20' ) end [2025-01-22 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:56:26] Production.INFO: ==32230== Releasing lock... [2025-01-22 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:56:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:57:06 [end_date_ymd] => 2025-01-22 12:57:06 [RateCDR] => 1 ) [2025-01-22 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:57:06' and `end` < '2025-01-22 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 ,'') [2025-01-22 12:57:23] Production.INFO: count ==5461 [2025-01-22 12:57:26] Production.ERROR: pbx CDR StartTime 2025-01-22 09:57:06 - End Time 2025-01-22 12:57:06 [2025-01-22 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305140', 'tblTempUsageDetail_20' ) start [2025-01-22 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305140', 'tblTempUsageDetail_20' ) end [2025-01-22 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305140', 'tblTempVendorCDR_20' ) start [2025-01-22 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305140', 'tblTempVendorCDR_20' ) end [2025-01-22 12:57:26] Production.INFO: ProcessCDR(1,14305140,1,1,2) [2025-01-22 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305140', 'tblTempUsageDetail_20' ) start [2025-01-22 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305140', 'tblTempUsageDetail_20' ) end [2025-01-22 12:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:57:30] Production.INFO: ==32299== Releasing lock... [2025-01-22 12:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:57:30] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:58:05 [end_date_ymd] => 2025-01-22 12:58:05 [RateCDR] => 1 ) [2025-01-22 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:58:05' and `end` < '2025-01-22 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:58:22] Production.INFO: count ==5467 [2025-01-22 12:58:24] Production.ERROR: pbx CDR StartTime 2025-01-22 09:58:05 - End Time 2025-01-22 12:58:05 [2025-01-22 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305145', 'tblTempUsageDetail_20' ) start [2025-01-22 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305145', 'tblTempUsageDetail_20' ) end [2025-01-22 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305145', 'tblTempVendorCDR_20' ) start [2025-01-22 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305145', 'tblTempVendorCDR_20' ) end [2025-01-22 12:58:24] Production.INFO: ProcessCDR(1,14305145,1,1,2) [2025-01-22 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305145', 'tblTempUsageDetail_20' ) start [2025-01-22 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305145', 'tblTempUsageDetail_20' ) end [2025-01-22 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:58:28] Production.INFO: ==32373== Releasing lock... [2025-01-22 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:58:28] Production.INFO: 69 MB #Memory Used# [2025-01-22 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 09:59:05 [end_date_ymd] => 2025-01-22 12:59:05 [RateCDR] => 1 ) [2025-01-22 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 09:59:05' and `end` < '2025-01-22 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 12:59:30] Production.INFO: count ==5488 [2025-01-22 12:59:32] Production.ERROR: pbx CDR StartTime 2025-01-22 09:59:05 - End Time 2025-01-22 12:59:05 [2025-01-22 12:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305150', 'tblTempUsageDetail_20' ) start [2025-01-22 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305150', 'tblTempUsageDetail_20' ) end [2025-01-22 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305150', 'tblTempVendorCDR_20' ) start [2025-01-22 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305150', 'tblTempVendorCDR_20' ) end [2025-01-22 12:59:32] Production.INFO: ProcessCDR(1,14305150,1,1,2) [2025-01-22 12:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 12:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 12:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305150', 'tblTempUsageDetail_20' ) start [2025-01-22 12:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305150', 'tblTempUsageDetail_20' ) end [2025-01-22 12:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 12:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 12:59:36] Production.INFO: ==32447== Releasing lock... [2025-01-22 12:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 12:59:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:00:05 [end_date_ymd] => 2025-01-22 13:00:05 [RateCDR] => 1 ) [2025-01-22 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:00:05' and `end` < '2025-01-22 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:00:31] Production.INFO: count ==5472 [2025-01-22 13:00:33] Production.ERROR: pbx CDR StartTime 2025-01-22 10:00:05 - End Time 2025-01-22 13:00:05 [2025-01-22 13:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305156', 'tblTempUsageDetail_20' ) start [2025-01-22 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305156', 'tblTempUsageDetail_20' ) end [2025-01-22 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305156', 'tblTempVendorCDR_20' ) start [2025-01-22 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305156', 'tblTempVendorCDR_20' ) end [2025-01-22 13:00:34] Production.INFO: ProcessCDR(1,14305156,1,1,2) [2025-01-22 13:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305156', 'tblTempUsageDetail_20' ) start [2025-01-22 13:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305156', 'tblTempUsageDetail_20' ) end [2025-01-22 13:00:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:00:38] Production.INFO: ==32522== Releasing lock... [2025-01-22 13:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:00:38] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:01:05 [end_date_ymd] => 2025-01-22 13:01:05 [RateCDR] => 1 ) [2025-01-22 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:01:05' and `end` < '2025-01-22 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:01:27] Production.INFO: count ==5517 [2025-01-22 13:01:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:01:05 - End Time 2025-01-22 13:01:05 [2025-01-22 13:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305161', 'tblTempUsageDetail_20' ) start [2025-01-22 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305161', 'tblTempUsageDetail_20' ) end [2025-01-22 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305161', 'tblTempVendorCDR_20' ) start [2025-01-22 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305161', 'tblTempVendorCDR_20' ) end [2025-01-22 13:01:29] Production.INFO: ProcessCDR(1,14305161,1,1,2) [2025-01-22 13:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305161', 'tblTempUsageDetail_20' ) start [2025-01-22 13:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305161', 'tblTempUsageDetail_20' ) end [2025-01-22 13:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:01:34] Production.INFO: ==32607== Releasing lock... [2025-01-22 13:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:01:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:02:05 [end_date_ymd] => 2025-01-22 13:02:05 [RateCDR] => 1 ) [2025-01-22 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:02:05' and `end` < '2025-01-22 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:02:34] Production.INFO: count ==5508 [2025-01-22 13:02:37] Production.ERROR: pbx CDR StartTime 2025-01-22 10:02:05 - End Time 2025-01-22 13:02:05 [2025-01-22 13:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305166', 'tblTempUsageDetail_20' ) start [2025-01-22 13:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305166', 'tblTempUsageDetail_20' ) end [2025-01-22 13:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305166', 'tblTempVendorCDR_20' ) start [2025-01-22 13:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305166', 'tblTempVendorCDR_20' ) end [2025-01-22 13:02:37] Production.INFO: ProcessCDR(1,14305166,1,1,2) [2025-01-22 13:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305166', 'tblTempUsageDetail_20' ) start [2025-01-22 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305166', 'tblTempUsageDetail_20' ) end [2025-01-22 13:02:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:02:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:02:42] Production.INFO: ==32676== Releasing lock... [2025-01-22 13:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:02:42] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:03:05 [end_date_ymd] => 2025-01-22 13:03:05 [RateCDR] => 1 ) [2025-01-22 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:03:05' and `end` < '2025-01-22 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:03:22] Production.INFO: count ==5500 [2025-01-22 13:03:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:03:05 - End Time 2025-01-22 13:03:05 [2025-01-22 13:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305171', 'tblTempUsageDetail_20' ) start [2025-01-22 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305171', 'tblTempUsageDetail_20' ) end [2025-01-22 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305171', 'tblTempVendorCDR_20' ) start [2025-01-22 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305171', 'tblTempVendorCDR_20' ) end [2025-01-22 13:03:24] Production.INFO: ProcessCDR(1,14305171,1,1,2) [2025-01-22 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305171', 'tblTempUsageDetail_20' ) start [2025-01-22 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305171', 'tblTempUsageDetail_20' ) end [2025-01-22 13:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:03:29] Production.INFO: ==32747== Releasing lock... [2025-01-22 13:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:03:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:04:07 [end_date_ymd] => 2025-01-22 13:04:07 [RateCDR] => 1 ) [2025-01-22 13:04:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:04:07' and `end` < '2025-01-22 13:04:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:04:26] Production.INFO: count ==5502 [2025-01-22 13:04:28] Production.ERROR: pbx CDR StartTime 2025-01-22 10:04:07 - End Time 2025-01-22 13:04:07 [2025-01-22 13:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305176', 'tblTempUsageDetail_20' ) start [2025-01-22 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305176', 'tblTempUsageDetail_20' ) end [2025-01-22 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305176', 'tblTempVendorCDR_20' ) start [2025-01-22 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305176', 'tblTempVendorCDR_20' ) end [2025-01-22 13:04:29] Production.INFO: ProcessCDR(1,14305176,1,1,2) [2025-01-22 13:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305176', 'tblTempUsageDetail_20' ) start [2025-01-22 13:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305176', 'tblTempUsageDetail_20' ) end [2025-01-22 13:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:04:34] Production.INFO: ==375== Releasing lock... [2025-01-22 13:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:04:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:05:05 [end_date_ymd] => 2025-01-22 13:05:05 [RateCDR] => 1 ) [2025-01-22 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:05:05' and `end` < '2025-01-22 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:05:24] Production.INFO: count ==5490 [2025-01-22 13:05:25] Production.ERROR: pbx CDR StartTime 2025-01-22 10:05:05 - End Time 2025-01-22 13:05:05 [2025-01-22 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305181', 'tblTempUsageDetail_20' ) start [2025-01-22 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305181', 'tblTempUsageDetail_20' ) end [2025-01-22 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305181', 'tblTempVendorCDR_20' ) start [2025-01-22 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305181', 'tblTempVendorCDR_20' ) end [2025-01-22 13:05:26] Production.INFO: ProcessCDR(1,14305181,1,1,2) [2025-01-22 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305181', 'tblTempUsageDetail_20' ) start [2025-01-22 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305181', 'tblTempUsageDetail_20' ) end [2025-01-22 13:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:05:30] Production.INFO: ==488== Releasing lock... [2025-01-22 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:05:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:06:05 [end_date_ymd] => 2025-01-22 13:06:05 [RateCDR] => 1 ) [2025-01-22 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:06:05' and `end` < '2025-01-22 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:06:29] Production.INFO: count ==5486 [2025-01-22 13:06:31] Production.ERROR: pbx CDR StartTime 2025-01-22 10:06:05 - End Time 2025-01-22 13:06:05 [2025-01-22 13:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305186', 'tblTempUsageDetail_20' ) start [2025-01-22 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305186', 'tblTempUsageDetail_20' ) end [2025-01-22 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305186', 'tblTempVendorCDR_20' ) start [2025-01-22 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305186', 'tblTempVendorCDR_20' ) end [2025-01-22 13:06:32] Production.INFO: ProcessCDR(1,14305186,1,1,2) [2025-01-22 13:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:06:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:06:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305186', 'tblTempUsageDetail_20' ) start [2025-01-22 13:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305186', 'tblTempUsageDetail_20' ) end [2025-01-22 13:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:06:36] Production.INFO: ==560== Releasing lock... [2025-01-22 13:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:06:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:07:05 [end_date_ymd] => 2025-01-22 13:07:05 [RateCDR] => 1 ) [2025-01-22 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:07:05' and `end` < '2025-01-22 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:07:27] Production.INFO: count ==5488 [2025-01-22 13:07:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:07:05 - End Time 2025-01-22 13:07:05 [2025-01-22 13:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305191', 'tblTempUsageDetail_20' ) start [2025-01-22 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305191', 'tblTempUsageDetail_20' ) end [2025-01-22 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305191', 'tblTempVendorCDR_20' ) start [2025-01-22 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305191', 'tblTempVendorCDR_20' ) end [2025-01-22 13:07:30] Production.INFO: ProcessCDR(1,14305191,1,1,2) [2025-01-22 13:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305191', 'tblTempUsageDetail_20' ) start [2025-01-22 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305191', 'tblTempUsageDetail_20' ) end [2025-01-22 13:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:07:34] Production.INFO: ==643== Releasing lock... [2025-01-22 13:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:07:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:08:05 [end_date_ymd] => 2025-01-22 13:08:05 [RateCDR] => 1 ) [2025-01-22 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:08:05' and `end` < '2025-01-22 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:08:27] Production.INFO: count ==5502 [2025-01-22 13:08:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:08:05 - End Time 2025-01-22 13:08:05 [2025-01-22 13:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305196', 'tblTempUsageDetail_20' ) start [2025-01-22 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305196', 'tblTempUsageDetail_20' ) end [2025-01-22 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305196', 'tblTempVendorCDR_20' ) start [2025-01-22 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305196', 'tblTempVendorCDR_20' ) end [2025-01-22 13:08:29] Production.INFO: ProcessCDR(1,14305196,1,1,2) [2025-01-22 13:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305196', 'tblTempUsageDetail_20' ) start [2025-01-22 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305196', 'tblTempUsageDetail_20' ) end [2025-01-22 13:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:08:34] Production.INFO: ==736== Releasing lock... [2025-01-22 13:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:08:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:09:05 [end_date_ymd] => 2025-01-22 13:09:05 [RateCDR] => 1 ) [2025-01-22 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:09:05' and `end` < '2025-01-22 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:09:25] Production.INFO: count ==5516 [2025-01-22 13:09:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:09:05 - End Time 2025-01-22 13:09:05 [2025-01-22 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305201', 'tblTempUsageDetail_20' ) start [2025-01-22 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305201', 'tblTempUsageDetail_20' ) end [2025-01-22 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305201', 'tblTempVendorCDR_20' ) start [2025-01-22 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305201', 'tblTempVendorCDR_20' ) end [2025-01-22 13:09:27] Production.INFO: ProcessCDR(1,14305201,1,1,2) [2025-01-22 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305201', 'tblTempUsageDetail_20' ) start [2025-01-22 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305201', 'tblTempUsageDetail_20' ) end [2025-01-22 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:09:32] Production.INFO: ==813== Releasing lock... [2025-01-22 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:09:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:10:06 [end_date_ymd] => 2025-01-22 13:10:06 [RateCDR] => 1 ) [2025-01-22 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:10:06' and `end` < '2025-01-22 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:10:24] Production.INFO: count ==5519 [2025-01-22 13:10:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:10:06 - End Time 2025-01-22 13:10:06 [2025-01-22 13:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305207', 'tblTempUsageDetail_20' ) start [2025-01-22 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305207', 'tblTempUsageDetail_20' ) end [2025-01-22 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305207', 'tblTempVendorCDR_20' ) start [2025-01-22 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305207', 'tblTempVendorCDR_20' ) end [2025-01-22 13:10:26] Production.INFO: ProcessCDR(1,14305207,1,1,2) [2025-01-22 13:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305207', 'tblTempUsageDetail_20' ) start [2025-01-22 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305207', 'tblTempUsageDetail_20' ) end [2025-01-22 13:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:10:31] Production.INFO: ==887== Releasing lock... [2025-01-22 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:10:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:11:05 [end_date_ymd] => 2025-01-22 13:11:05 [RateCDR] => 1 ) [2025-01-22 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:11:05' and `end` < '2025-01-22 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:11:19] Production.INFO: count ==5485 [2025-01-22 13:11:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:11:05 - End Time 2025-01-22 13:11:05 [2025-01-22 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305212', 'tblTempUsageDetail_20' ) start [2025-01-22 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305212', 'tblTempUsageDetail_20' ) end [2025-01-22 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305212', 'tblTempVendorCDR_20' ) start [2025-01-22 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305212', 'tblTempVendorCDR_20' ) end [2025-01-22 13:11:21] Production.INFO: ProcessCDR(1,14305212,1,1,2) [2025-01-22 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305212', 'tblTempUsageDetail_20' ) start [2025-01-22 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305212', 'tblTempUsageDetail_20' ) end [2025-01-22 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:11:25] Production.INFO: ==963== Releasing lock... [2025-01-22 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:11:25] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:12:05 [end_date_ymd] => 2025-01-22 13:12:05 [RateCDR] => 1 ) [2025-01-22 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:12:05' and `end` < '2025-01-22 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:12:20] Production.INFO: count ==5489 [2025-01-22 13:12:22] Production.ERROR: pbx CDR StartTime 2025-01-22 10:12:05 - End Time 2025-01-22 13:12:05 [2025-01-22 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305217', 'tblTempUsageDetail_20' ) start [2025-01-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305217', 'tblTempUsageDetail_20' ) end [2025-01-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305217', 'tblTempVendorCDR_20' ) start [2025-01-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305217', 'tblTempVendorCDR_20' ) end [2025-01-22 13:12:22] Production.INFO: ProcessCDR(1,14305217,1,1,2) [2025-01-22 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305217', 'tblTempUsageDetail_20' ) start [2025-01-22 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305217', 'tblTempUsageDetail_20' ) end [2025-01-22 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:12:27] Production.INFO: ==1034== Releasing lock... [2025-01-22 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:12:27] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:13:05 [end_date_ymd] => 2025-01-22 13:13:05 [RateCDR] => 1 ) [2025-01-22 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:13:05' and `end` < '2025-01-22 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:13:21] Production.INFO: count ==5467 [2025-01-22 13:13:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:13:05 - End Time 2025-01-22 13:13:05 [2025-01-22 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305222', 'tblTempUsageDetail_20' ) start [2025-01-22 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305222', 'tblTempUsageDetail_20' ) end [2025-01-22 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305222', 'tblTempVendorCDR_20' ) start [2025-01-22 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305222', 'tblTempVendorCDR_20' ) end [2025-01-22 13:13:23] Production.INFO: ProcessCDR(1,14305222,1,1,2) [2025-01-22 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305222', 'tblTempUsageDetail_20' ) start [2025-01-22 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305222', 'tblTempUsageDetail_20' ) end [2025-01-22 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:13:28] Production.INFO: ==1106== Releasing lock... [2025-01-22 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:13:28] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:14:05 [end_date_ymd] => 2025-01-22 13:14:05 [RateCDR] => 1 ) [2025-01-22 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:14:05' and `end` < '2025-01-22 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:14:19] Production.INFO: count ==5481 [2025-01-22 13:14:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:14:05 - End Time 2025-01-22 13:14:05 [2025-01-22 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305227', 'tblTempUsageDetail_20' ) start [2025-01-22 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305227', 'tblTempUsageDetail_20' ) end [2025-01-22 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305227', 'tblTempVendorCDR_20' ) start [2025-01-22 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305227', 'tblTempVendorCDR_20' ) end [2025-01-22 13:14:21] Production.INFO: ProcessCDR(1,14305227,1,1,2) [2025-01-22 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305227', 'tblTempUsageDetail_20' ) start [2025-01-22 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305227', 'tblTempUsageDetail_20' ) end [2025-01-22 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:14:26] Production.INFO: ==1183== Releasing lock... [2025-01-22 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:14:26] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:15:06 [end_date_ymd] => 2025-01-22 13:15:06 [RateCDR] => 1 ) [2025-01-22 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:15:06' and `end` < '2025-01-22 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:15:24] Production.INFO: count ==5486 [2025-01-22 13:15:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:15:06 - End Time 2025-01-22 13:15:06 [2025-01-22 13:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305232', 'tblTempUsageDetail_20' ) start [2025-01-22 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305232', 'tblTempUsageDetail_20' ) end [2025-01-22 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305232', 'tblTempVendorCDR_20' ) start [2025-01-22 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305232', 'tblTempVendorCDR_20' ) end [2025-01-22 13:15:26] Production.INFO: ProcessCDR(1,14305232,1,1,2) [2025-01-22 13:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305232', 'tblTempUsageDetail_20' ) start [2025-01-22 13:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305232', 'tblTempUsageDetail_20' ) end [2025-01-22 13:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:15:29] Production.INFO: ==1266== Releasing lock... [2025-01-22 13:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:15:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:16:05 [end_date_ymd] => 2025-01-22 13:16:05 [RateCDR] => 1 ) [2025-01-22 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:16:05' and `end` < '2025-01-22 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:16:21] Production.INFO: count ==5511 [2025-01-22 13:16:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:16:05 - End Time 2025-01-22 13:16:05 [2025-01-22 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305237', 'tblTempUsageDetail_20' ) start [2025-01-22 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305237', 'tblTempUsageDetail_20' ) end [2025-01-22 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305237', 'tblTempVendorCDR_20' ) start [2025-01-22 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305237', 'tblTempVendorCDR_20' ) end [2025-01-22 13:16:23] Production.INFO: ProcessCDR(1,14305237,1,1,2) [2025-01-22 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305237', 'tblTempUsageDetail_20' ) start [2025-01-22 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305237', 'tblTempUsageDetail_20' ) end [2025-01-22 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:16:28] Production.INFO: ==1341== Releasing lock... [2025-01-22 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:16:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:17:04 [end_date_ymd] => 2025-01-22 13:17:04 [RateCDR] => 1 ) [2025-01-22 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:17:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 13:17:31] Production.INFO: count ==5521 [2025-01-22 13:17:33] Production.ERROR: pbx CDR StartTime 2025-01-22 10:17:04 - End Time 2025-01-22 13:17:04 [2025-01-22 13:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305242', 'tblTempUsageDetail_20' ) start [2025-01-22 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305242', 'tblTempUsageDetail_20' ) end [2025-01-22 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305242', 'tblTempVendorCDR_20' ) start [2025-01-22 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305242', 'tblTempVendorCDR_20' ) end [2025-01-22 13:17:33] Production.INFO: ProcessCDR(1,14305242,1,1,2) [2025-01-22 13:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:17:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305242', 'tblTempUsageDetail_20' ) start [2025-01-22 13:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305242', 'tblTempUsageDetail_20' ) end [2025-01-22 13:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:17:38] Production.INFO: ==1410== Releasing lock... [2025-01-22 13:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:17:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:18:05 [end_date_ymd] => 2025-01-22 13:18:05 [RateCDR] => 1 ) [2025-01-22 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:18:05' and `end` < '2025-01-22 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:18:33] Production.INFO: count ==5503 [2025-01-22 13:18:35] Production.ERROR: pbx CDR StartTime 2025-01-22 10:18:05 - End Time 2025-01-22 13:18:05 [2025-01-22 13:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305247', 'tblTempUsageDetail_20' ) start [2025-01-22 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305247', 'tblTempUsageDetail_20' ) end [2025-01-22 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305247', 'tblTempVendorCDR_20' ) start [2025-01-22 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305247', 'tblTempVendorCDR_20' ) end [2025-01-22 13:18:35] Production.INFO: ProcessCDR(1,14305247,1,1,2) [2025-01-22 13:18:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305247', 'tblTempUsageDetail_20' ) start [2025-01-22 13:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305247', 'tblTempUsageDetail_20' ) end [2025-01-22 13:18:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:18:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:18:40] Production.INFO: ==1481== Releasing lock... [2025-01-22 13:18:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:18:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:19:06 [end_date_ymd] => 2025-01-22 13:19:06 [RateCDR] => 1 ) [2025-01-22 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:19:06' and `end` < '2025-01-22 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:19:26] Production.INFO: count ==5499 [2025-01-22 13:19:28] Production.ERROR: pbx CDR StartTime 2025-01-22 10:19:06 - End Time 2025-01-22 13:19:06 [2025-01-22 13:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305252', 'tblTempUsageDetail_20' ) start [2025-01-22 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305252', 'tblTempUsageDetail_20' ) end [2025-01-22 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305252', 'tblTempVendorCDR_20' ) start [2025-01-22 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305252', 'tblTempVendorCDR_20' ) end [2025-01-22 13:19:28] Production.INFO: ProcessCDR(1,14305252,1,1,2) [2025-01-22 13:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305252', 'tblTempUsageDetail_20' ) start [2025-01-22 13:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305252', 'tblTempUsageDetail_20' ) end [2025-01-22 13:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:19:33] Production.INFO: ==1592== Releasing lock... [2025-01-22 13:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:19:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:20:06 [end_date_ymd] => 2025-01-22 13:20:06 [RateCDR] => 1 ) [2025-01-22 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:20:06' and `end` < '2025-01-22 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:20:26] Production.INFO: count ==5492 [2025-01-22 13:20:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:20:06 - End Time 2025-01-22 13:20:06 [2025-01-22 13:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305258', 'tblTempUsageDetail_20' ) start [2025-01-22 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305258', 'tblTempUsageDetail_20' ) end [2025-01-22 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305258', 'tblTempVendorCDR_20' ) start [2025-01-22 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305258', 'tblTempVendorCDR_20' ) end [2025-01-22 13:20:29] Production.INFO: ProcessCDR(1,14305258,1,1,2) [2025-01-22 13:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305258', 'tblTempUsageDetail_20' ) start [2025-01-22 13:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305258', 'tblTempUsageDetail_20' ) end [2025-01-22 13:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:20:32] Production.INFO: ==1667== Releasing lock... [2025-01-22 13:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:20:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:21:05 [end_date_ymd] => 2025-01-22 13:21:05 [RateCDR] => 1 ) [2025-01-22 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:21:05' and `end` < '2025-01-22 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:21:23] Production.INFO: count ==5511 [2025-01-22 13:21:25] Production.ERROR: pbx CDR StartTime 2025-01-22 10:21:05 - End Time 2025-01-22 13:21:05 [2025-01-22 13:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305263', 'tblTempUsageDetail_20' ) start [2025-01-22 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305263', 'tblTempUsageDetail_20' ) end [2025-01-22 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305263', 'tblTempVendorCDR_20' ) start [2025-01-22 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305263', 'tblTempVendorCDR_20' ) end [2025-01-22 13:21:25] Production.INFO: ProcessCDR(1,14305263,1,1,2) [2025-01-22 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305263', 'tblTempUsageDetail_20' ) start [2025-01-22 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305263', 'tblTempUsageDetail_20' ) end [2025-01-22 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:21:30] Production.INFO: ==1789== Releasing lock... [2025-01-22 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:21:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:22:05 [end_date_ymd] => 2025-01-22 13:22:05 [RateCDR] => 1 ) [2025-01-22 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:22:05' and `end` < '2025-01-22 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:22:22] Production.INFO: count ==5517 [2025-01-22 13:22:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:22:05 - End Time 2025-01-22 13:22:05 [2025-01-22 13:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305268', 'tblTempUsageDetail_20' ) start [2025-01-22 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305268', 'tblTempUsageDetail_20' ) end [2025-01-22 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305268', 'tblTempVendorCDR_20' ) start [2025-01-22 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305268', 'tblTempVendorCDR_20' ) end [2025-01-22 13:22:24] Production.INFO: ProcessCDR(1,14305268,1,1,2) [2025-01-22 13:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305268', 'tblTempUsageDetail_20' ) start [2025-01-22 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305268', 'tblTempUsageDetail_20' ) end [2025-01-22 13:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:22:29] Production.INFO: ==1866== Releasing lock... [2025-01-22 13:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:22:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:23:05 [end_date_ymd] => 2025-01-22 13:23:05 [RateCDR] => 1 ) [2025-01-22 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:23:05' and `end` < '2025-01-22 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:23:19] Production.INFO: count ==5495 [2025-01-22 13:23:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:23:05 - End Time 2025-01-22 13:23:05 [2025-01-22 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305273', 'tblTempUsageDetail_20' ) start [2025-01-22 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305273', 'tblTempUsageDetail_20' ) end [2025-01-22 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305273', 'tblTempVendorCDR_20' ) start [2025-01-22 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305273', 'tblTempVendorCDR_20' ) end [2025-01-22 13:23:21] Production.INFO: ProcessCDR(1,14305273,1,1,2) [2025-01-22 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305273', 'tblTempUsageDetail_20' ) start [2025-01-22 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305273', 'tblTempUsageDetail_20' ) end [2025-01-22 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:23:25] Production.INFO: ==1937== Releasing lock... [2025-01-22 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:23:25] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:24:05 [end_date_ymd] => 2025-01-22 13:24:05 [RateCDR] => 1 ) [2025-01-22 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:24:05' and `end` < '2025-01-22 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:24:22] Production.INFO: count ==5483 [2025-01-22 13:24:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:24:05 - End Time 2025-01-22 13:24:05 [2025-01-22 13:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305278', 'tblTempUsageDetail_20' ) start [2025-01-22 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305278', 'tblTempUsageDetail_20' ) end [2025-01-22 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305278', 'tblTempVendorCDR_20' ) start [2025-01-22 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305278', 'tblTempVendorCDR_20' ) end [2025-01-22 13:24:24] Production.INFO: ProcessCDR(1,14305278,1,1,2) [2025-01-22 13:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305278', 'tblTempUsageDetail_20' ) start [2025-01-22 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305278', 'tblTempUsageDetail_20' ) end [2025-01-22 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:24:29] Production.INFO: ==2009== Releasing lock... [2025-01-22 13:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:24:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:25:06 [end_date_ymd] => 2025-01-22 13:25:06 [RateCDR] => 1 ) [2025-01-22 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:25:06' and `end` < '2025-01-22 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:25:20] Production.INFO: count ==5494 [2025-01-22 13:25:22] Production.ERROR: pbx CDR StartTime 2025-01-22 10:25:06 - End Time 2025-01-22 13:25:06 [2025-01-22 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305283', 'tblTempUsageDetail_20' ) start [2025-01-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305283', 'tblTempUsageDetail_20' ) end [2025-01-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305283', 'tblTempVendorCDR_20' ) start [2025-01-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305283', 'tblTempVendorCDR_20' ) end [2025-01-22 13:25:23] Production.INFO: ProcessCDR(1,14305283,1,1,2) [2025-01-22 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305283', 'tblTempUsageDetail_20' ) start [2025-01-22 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305283', 'tblTempUsageDetail_20' ) end [2025-01-22 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:25:27] Production.INFO: ==2080== Releasing lock... [2025-01-22 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:25:27] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:26:05 [end_date_ymd] => 2025-01-22 13:26:05 [RateCDR] => 1 ) [2025-01-22 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:26:05' and `end` < '2025-01-22 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:26:24] Production.INFO: count ==5511 [2025-01-22 13:26:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:26:05 - End Time 2025-01-22 13:26:05 [2025-01-22 13:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305288', 'tblTempUsageDetail_20' ) start [2025-01-22 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305288', 'tblTempUsageDetail_20' ) end [2025-01-22 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305288', 'tblTempVendorCDR_20' ) start [2025-01-22 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305288', 'tblTempVendorCDR_20' ) end [2025-01-22 13:26:26] Production.INFO: ProcessCDR(1,14305288,1,1,2) [2025-01-22 13:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305288', 'tblTempUsageDetail_20' ) start [2025-01-22 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305288', 'tblTempUsageDetail_20' ) end [2025-01-22 13:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:26:31] Production.INFO: ==2154== Releasing lock... [2025-01-22 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:26:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:27:05 [end_date_ymd] => 2025-01-22 13:27:05 [RateCDR] => 1 ) [2025-01-22 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:27:05' and `end` < '2025-01-22 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:27:22] Production.INFO: count ==5503 [2025-01-22 13:27:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:27:05 - End Time 2025-01-22 13:27:05 [2025-01-22 13:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305293', 'tblTempUsageDetail_20' ) start [2025-01-22 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305293', 'tblTempUsageDetail_20' ) end [2025-01-22 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305293', 'tblTempVendorCDR_20' ) start [2025-01-22 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305293', 'tblTempVendorCDR_20' ) end [2025-01-22 13:27:24] Production.INFO: ProcessCDR(1,14305293,1,1,2) [2025-01-22 13:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305293', 'tblTempUsageDetail_20' ) start [2025-01-22 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305293', 'tblTempUsageDetail_20' ) end [2025-01-22 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:27:28] Production.INFO: ==2227== Releasing lock... [2025-01-22 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:27:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:28:04 [end_date_ymd] => 2025-01-22 13:28:04 [RateCDR] => 1 ) [2025-01-22 13:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:28:04' and `end` < '2025-01-22 13:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:28:20] Production.INFO: count ==5471 [2025-01-22 13:28:22] Production.ERROR: pbx CDR StartTime 2025-01-22 10:28:04 - End Time 2025-01-22 13:28:04 [2025-01-22 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305298', 'tblTempUsageDetail_20' ) start [2025-01-22 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305298', 'tblTempUsageDetail_20' ) end [2025-01-22 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305298', 'tblTempVendorCDR_20' ) start [2025-01-22 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305298', 'tblTempVendorCDR_20' ) end [2025-01-22 13:28:23] Production.INFO: ProcessCDR(1,14305298,1,1,2) [2025-01-22 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305298', 'tblTempUsageDetail_20' ) start [2025-01-22 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305298', 'tblTempUsageDetail_20' ) end [2025-01-22 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:28:26] Production.INFO: ==2300== Releasing lock... [2025-01-22 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:28:26] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:29:05 [end_date_ymd] => 2025-01-22 13:29:05 [RateCDR] => 1 ) [2025-01-22 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:29:05' and `end` < '2025-01-22 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:29:19] Production.INFO: count ==5455 [2025-01-22 13:29:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:29:05 - End Time 2025-01-22 13:29:05 [2025-01-22 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305303', 'tblTempUsageDetail_20' ) start [2025-01-22 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305303', 'tblTempUsageDetail_20' ) end [2025-01-22 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305303', 'tblTempVendorCDR_20' ) start [2025-01-22 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305303', 'tblTempVendorCDR_20' ) end [2025-01-22 13:29:21] Production.INFO: ProcessCDR(1,14305303,1,1,2) [2025-01-22 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305303', 'tblTempUsageDetail_20' ) start [2025-01-22 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305303', 'tblTempUsageDetail_20' ) end [2025-01-22 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:29:25] Production.INFO: ==2371== Releasing lock... [2025-01-22 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:29:25] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:30:06 [end_date_ymd] => 2025-01-22 13:30:06 [RateCDR] => 1 ) [2025-01-22 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:30:06' and `end` < '2025-01-22 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:30:30] Production.INFO: count ==5473 [2025-01-22 13:30:32] Production.ERROR: pbx CDR StartTime 2025-01-22 10:30:06 - End Time 2025-01-22 13:30:06 [2025-01-22 13:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305308', 'tblTempUsageDetail_20' ) start [2025-01-22 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305308', 'tblTempUsageDetail_20' ) end [2025-01-22 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305308', 'tblTempVendorCDR_20' ) start [2025-01-22 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305308', 'tblTempVendorCDR_20' ) end [2025-01-22 13:30:32] Production.INFO: ProcessCDR(1,14305308,1,1,2) [2025-01-22 13:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305308', 'tblTempUsageDetail_20' ) start [2025-01-22 13:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305308', 'tblTempUsageDetail_20' ) end [2025-01-22 13:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:30:37] Production.INFO: ==2444== Releasing lock... [2025-01-22 13:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:30:37] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:31:04 [end_date_ymd] => 2025-01-22 13:31:04 [RateCDR] => 1 ) [2025-01-22 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:31:04' and `end` < '2025-01-22 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:31:18] Production.INFO: count ==5446 [2025-01-22 13:31:20] Production.ERROR: pbx CDR StartTime 2025-01-22 10:31:04 - End Time 2025-01-22 13:31:04 [2025-01-22 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305314', 'tblTempUsageDetail_20' ) start [2025-01-22 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305314', 'tblTempUsageDetail_20' ) end [2025-01-22 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305314', 'tblTempVendorCDR_20' ) start [2025-01-22 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305314', 'tblTempVendorCDR_20' ) end [2025-01-22 13:31:21] Production.INFO: ProcessCDR(1,14305314,1,1,2) [2025-01-22 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305314', 'tblTempUsageDetail_20' ) start [2025-01-22 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305314', 'tblTempUsageDetail_20' ) end [2025-01-22 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:31:24] Production.INFO: ==2515== Releasing lock... [2025-01-22 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:31:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:32:05 [end_date_ymd] => 2025-01-22 13:32:05 [RateCDR] => 1 ) [2025-01-22 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:32:05' and `end` < '2025-01-22 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:32:21] Production.INFO: count ==5475 [2025-01-22 13:32:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:32:05 - End Time 2025-01-22 13:32:05 [2025-01-22 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305319', 'tblTempUsageDetail_20' ) start [2025-01-22 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305319', 'tblTempUsageDetail_20' ) end [2025-01-22 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305319', 'tblTempVendorCDR_20' ) start [2025-01-22 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305319', 'tblTempVendorCDR_20' ) end [2025-01-22 13:32:24] Production.INFO: ProcessCDR(1,14305319,1,1,2) [2025-01-22 13:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305319', 'tblTempUsageDetail_20' ) start [2025-01-22 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305319', 'tblTempUsageDetail_20' ) end [2025-01-22 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:32:28] Production.INFO: ==2586== Releasing lock... [2025-01-22 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:32:28] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:33:05 [end_date_ymd] => 2025-01-22 13:33:05 [RateCDR] => 1 ) [2025-01-22 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:33:05' and `end` < '2025-01-22 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:33:19] Production.INFO: count ==5469 [2025-01-22 13:33:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:33:05 - End Time 2025-01-22 13:33:05 [2025-01-22 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305324', 'tblTempUsageDetail_20' ) start [2025-01-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305324', 'tblTempUsageDetail_20' ) end [2025-01-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305324', 'tblTempVendorCDR_20' ) start [2025-01-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305324', 'tblTempVendorCDR_20' ) end [2025-01-22 13:33:22] Production.INFO: ProcessCDR(1,14305324,1,1,2) [2025-01-22 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305324', 'tblTempUsageDetail_20' ) start [2025-01-22 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305324', 'tblTempUsageDetail_20' ) end [2025-01-22 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:33:26] Production.INFO: ==2657== Releasing lock... [2025-01-22 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:33:26] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:34:05 [end_date_ymd] => 2025-01-22 13:34:05 [RateCDR] => 1 ) [2025-01-22 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:34:05' and `end` < '2025-01-22 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:34:24] Production.INFO: count ==5474 [2025-01-22 13:34:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:34:05 - End Time 2025-01-22 13:34:05 [2025-01-22 13:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305329', 'tblTempUsageDetail_20' ) start [2025-01-22 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305329', 'tblTempUsageDetail_20' ) end [2025-01-22 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305329', 'tblTempVendorCDR_20' ) start [2025-01-22 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305329', 'tblTempVendorCDR_20' ) end [2025-01-22 13:34:26] Production.INFO: ProcessCDR(1,14305329,1,1,2) [2025-01-22 13:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305329', 'tblTempUsageDetail_20' ) start [2025-01-22 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305329', 'tblTempUsageDetail_20' ) end [2025-01-22 13:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:34:30] Production.INFO: ==2731== Releasing lock... [2025-01-22 13:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:34:30] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:35:05 [end_date_ymd] => 2025-01-22 13:35:05 [RateCDR] => 1 ) [2025-01-22 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:35:05' and `end` < '2025-01-22 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:35:25] Production.INFO: count ==5480 [2025-01-22 13:35:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:35:05 - End Time 2025-01-22 13:35:05 [2025-01-22 13:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305334', 'tblTempUsageDetail_20' ) start [2025-01-22 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305334', 'tblTempUsageDetail_20' ) end [2025-01-22 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305334', 'tblTempVendorCDR_20' ) start [2025-01-22 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305334', 'tblTempVendorCDR_20' ) end [2025-01-22 13:35:27] Production.INFO: ProcessCDR(1,14305334,1,1,2) [2025-01-22 13:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305334', 'tblTempUsageDetail_20' ) start [2025-01-22 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305334', 'tblTempUsageDetail_20' ) end [2025-01-22 13:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:35:32] Production.INFO: ==2803== Releasing lock... [2025-01-22 13:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:35:32] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:36:05 [end_date_ymd] => 2025-01-22 13:36:05 [RateCDR] => 1 ) [2025-01-22 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:36:05' and `end` < '2025-01-22 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:36:22] Production.INFO: count ==5487 [2025-01-22 13:36:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:36:05 - End Time 2025-01-22 13:36:05 [2025-01-22 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305339', 'tblTempUsageDetail_20' ) start [2025-01-22 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305339', 'tblTempUsageDetail_20' ) end [2025-01-22 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305339', 'tblTempVendorCDR_20' ) start [2025-01-22 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305339', 'tblTempVendorCDR_20' ) end [2025-01-22 13:36:24] Production.INFO: ProcessCDR(1,14305339,1,1,2) [2025-01-22 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305339', 'tblTempUsageDetail_20' ) start [2025-01-22 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305339', 'tblTempUsageDetail_20' ) end [2025-01-22 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:36:27] Production.INFO: ==2916== Releasing lock... [2025-01-22 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:36:27] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:37:04 [end_date_ymd] => 2025-01-22 13:37:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 10:37:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 13:37:22] Production.INFO: count ==5468 [2025-01-22 13:37:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:37:04 - End Time 2025-01-22 13:37:04 [2025-01-22 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305341', 'tblTempUsageDetail_20' ) start [2025-01-22 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305341', 'tblTempUsageDetail_20' ) end [2025-01-22 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305341', 'tblTempVendorCDR_20' ) start [2025-01-22 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305341', 'tblTempVendorCDR_20' ) end [2025-01-22 13:37:24] Production.INFO: ProcessCDR(1,14305341,1,1,2) [2025-01-22 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305341', 'tblTempUsageDetail_20' ) start [2025-01-22 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305341', 'tblTempUsageDetail_20' ) end [2025-01-22 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:37:28] Production.INFO: ==2985== Releasing lock... [2025-01-22 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:37:28] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:38:05 [end_date_ymd] => 2025-01-22 13:38:05 [RateCDR] => 1 ) [2025-01-22 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:38:05' and `end` < '2025-01-22 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:38:25] Production.INFO: count ==5468 [2025-01-22 13:38:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:38:05 - End Time 2025-01-22 13:38:05 [2025-01-22 13:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305349', 'tblTempUsageDetail_20' ) start [2025-01-22 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305349', 'tblTempUsageDetail_20' ) end [2025-01-22 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305349', 'tblTempVendorCDR_20' ) start [2025-01-22 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305349', 'tblTempVendorCDR_20' ) end [2025-01-22 13:38:27] Production.INFO: ProcessCDR(1,14305349,1,1,2) [2025-01-22 13:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305349', 'tblTempUsageDetail_20' ) start [2025-01-22 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305349', 'tblTempUsageDetail_20' ) end [2025-01-22 13:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:38:32] Production.INFO: ==3062== Releasing lock... [2025-01-22 13:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:38:32] Production.INFO: 69 MB #Memory Used# [2025-01-22 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:39:06 [end_date_ymd] => 2025-01-22 13:39:06 [RateCDR] => 1 ) [2025-01-22 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:39:06' and `end` < '2025-01-22 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:39:22] Production.INFO: count ==5425 [2025-01-22 13:39:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:39:06 - End Time 2025-01-22 13:39:06 [2025-01-22 13:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305354', 'tblTempUsageDetail_20' ) start [2025-01-22 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305354', 'tblTempUsageDetail_20' ) end [2025-01-22 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305354', 'tblTempVendorCDR_20' ) start [2025-01-22 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305354', 'tblTempVendorCDR_20' ) end [2025-01-22 13:39:25] Production.INFO: ProcessCDR(1,14305354,1,1,2) [2025-01-22 13:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305354', 'tblTempUsageDetail_20' ) start [2025-01-22 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305354', 'tblTempUsageDetail_20' ) end [2025-01-22 13:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:39:29] Production.INFO: ==3134== Releasing lock... [2025-01-22 13:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:39:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:40:06 [end_date_ymd] => 2025-01-22 13:40:06 [RateCDR] => 1 ) [2025-01-22 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:40:06' and `end` < '2025-01-22 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:40:25] Production.INFO: count ==5427 [2025-01-22 13:40:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:40:06 - End Time 2025-01-22 13:40:06 [2025-01-22 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305360', 'tblTempUsageDetail_20' ) start [2025-01-22 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305360', 'tblTempUsageDetail_20' ) end [2025-01-22 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305360', 'tblTempVendorCDR_20' ) start [2025-01-22 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305360', 'tblTempVendorCDR_20' ) end [2025-01-22 13:40:27] Production.INFO: ProcessCDR(1,14305360,1,1,2) [2025-01-22 13:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305360', 'tblTempUsageDetail_20' ) start [2025-01-22 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305360', 'tblTempUsageDetail_20' ) end [2025-01-22 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:40:32] Production.INFO: ==3206== Releasing lock... [2025-01-22 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:40:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:41:04 [end_date_ymd] => 2025-01-22 13:41:04 [RateCDR] => 1 ) [2025-01-22 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:41:04' and `end` < '2025-01-22 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:41:20] Production.INFO: count ==5392 [2025-01-22 13:41:22] Production.ERROR: pbx CDR StartTime 2025-01-22 10:41:04 - End Time 2025-01-22 13:41:04 [2025-01-22 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305365', 'tblTempUsageDetail_20' ) start [2025-01-22 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305365', 'tblTempUsageDetail_20' ) end [2025-01-22 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305365', 'tblTempVendorCDR_20' ) start [2025-01-22 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305365', 'tblTempVendorCDR_20' ) end [2025-01-22 13:41:22] Production.INFO: ProcessCDR(1,14305365,1,1,2) [2025-01-22 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305365', 'tblTempUsageDetail_20' ) start [2025-01-22 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305365', 'tblTempUsageDetail_20' ) end [2025-01-22 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:41:27] Production.INFO: ==3280== Releasing lock... [2025-01-22 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:41:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:42:05 [end_date_ymd] => 2025-01-22 13:42:05 [RateCDR] => 1 ) [2025-01-22 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:42:05' and `end` < '2025-01-22 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:42:19] Production.INFO: count ==5382 [2025-01-22 13:42:21] Production.ERROR: pbx CDR StartTime 2025-01-22 10:42:05 - End Time 2025-01-22 13:42:05 [2025-01-22 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305370', 'tblTempUsageDetail_20' ) start [2025-01-22 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305370', 'tblTempUsageDetail_20' ) end [2025-01-22 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305370', 'tblTempVendorCDR_20' ) start [2025-01-22 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305370', 'tblTempVendorCDR_20' ) end [2025-01-22 13:42:21] Production.INFO: ProcessCDR(1,14305370,1,1,2) [2025-01-22 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305370', 'tblTempUsageDetail_20' ) start [2025-01-22 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305370', 'tblTempUsageDetail_20' ) end [2025-01-22 13:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:42:26] Production.INFO: ==3350== Releasing lock... [2025-01-22 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:42:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:43:05 [end_date_ymd] => 2025-01-22 13:43:05 [RateCDR] => 1 ) [2025-01-22 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:43:05' and `end` < '2025-01-22 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:43:23] Production.INFO: count ==5386 [2025-01-22 13:43:25] Production.ERROR: pbx CDR StartTime 2025-01-22 10:43:05 - End Time 2025-01-22 13:43:05 [2025-01-22 13:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305375', 'tblTempUsageDetail_20' ) start [2025-01-22 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305375', 'tblTempUsageDetail_20' ) end [2025-01-22 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305375', 'tblTempVendorCDR_20' ) start [2025-01-22 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305375', 'tblTempVendorCDR_20' ) end [2025-01-22 13:43:25] Production.INFO: ProcessCDR(1,14305375,1,1,2) [2025-01-22 13:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305375', 'tblTempUsageDetail_20' ) start [2025-01-22 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305375', 'tblTempUsageDetail_20' ) end [2025-01-22 13:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:43:30] Production.INFO: ==3420== Releasing lock... [2025-01-22 13:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:43:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:44:05 [end_date_ymd] => 2025-01-22 13:44:05 [RateCDR] => 1 ) [2025-01-22 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:44:05' and `end` < '2025-01-22 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:44:21] Production.INFO: count ==5380 [2025-01-22 13:44:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:44:05 - End Time 2025-01-22 13:44:05 [2025-01-22 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305380', 'tblTempUsageDetail_20' ) start [2025-01-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305380', 'tblTempUsageDetail_20' ) end [2025-01-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305380', 'tblTempVendorCDR_20' ) start [2025-01-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305380', 'tblTempVendorCDR_20' ) end [2025-01-22 13:44:23] Production.INFO: ProcessCDR(1,14305380,1,1,2) [2025-01-22 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305380', 'tblTempUsageDetail_20' ) start [2025-01-22 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305380', 'tblTempUsageDetail_20' ) end [2025-01-22 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:44:28] Production.INFO: ==3491== Releasing lock... [2025-01-22 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:44:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:45:05 [end_date_ymd] => 2025-01-22 13:45:05 [RateCDR] => 1 ) [2025-01-22 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:45:05' and `end` < '2025-01-22 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:45:24] Production.INFO: count ==5382 [2025-01-22 13:45:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:45:05 - End Time 2025-01-22 13:45:05 [2025-01-22 13:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305385', 'tblTempUsageDetail_20' ) start [2025-01-22 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305385', 'tblTempUsageDetail_20' ) end [2025-01-22 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305385', 'tblTempVendorCDR_20' ) start [2025-01-22 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305385', 'tblTempVendorCDR_20' ) end [2025-01-22 13:45:26] Production.INFO: ProcessCDR(1,14305385,1,1,2) [2025-01-22 13:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305385', 'tblTempUsageDetail_20' ) start [2025-01-22 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305385', 'tblTempUsageDetail_20' ) end [2025-01-22 13:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:45:30] Production.INFO: ==3561== Releasing lock... [2025-01-22 13:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:45:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:46:04 [end_date_ymd] => 2025-01-22 13:46:04 [RateCDR] => 1 ) [2025-01-22 13:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:46:04' and `end` < '2025-01-22 13:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:46:27] Production.INFO: count ==5382 [2025-01-22 13:46:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:46:04 - End Time 2025-01-22 13:46:04 [2025-01-22 13:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305390', 'tblTempUsageDetail_20' ) start [2025-01-22 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305390', 'tblTempUsageDetail_20' ) end [2025-01-22 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305390', 'tblTempVendorCDR_20' ) start [2025-01-22 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305390', 'tblTempVendorCDR_20' ) end [2025-01-22 13:46:29] Production.INFO: ProcessCDR(1,14305390,1,1,2) [2025-01-22 13:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305390', 'tblTempUsageDetail_20' ) start [2025-01-22 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305390', 'tblTempUsageDetail_20' ) end [2025-01-22 13:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:46:33] Production.INFO: ==3631== Releasing lock... [2025-01-22 13:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:46:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:47:05 [end_date_ymd] => 2025-01-22 13:47:05 [RateCDR] => 1 ) [2025-01-22 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:47:05' and `end` < '2025-01-22 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:47:25] Production.INFO: count ==5379 [2025-01-22 13:47:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:47:05 - End Time 2025-01-22 13:47:05 [2025-01-22 13:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305395', 'tblTempUsageDetail_20' ) start [2025-01-22 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305395', 'tblTempUsageDetail_20' ) end [2025-01-22 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305395', 'tblTempVendorCDR_20' ) start [2025-01-22 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305395', 'tblTempVendorCDR_20' ) end [2025-01-22 13:47:27] Production.INFO: ProcessCDR(1,14305395,1,1,2) [2025-01-22 13:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305395', 'tblTempUsageDetail_20' ) start [2025-01-22 13:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305395', 'tblTempUsageDetail_20' ) end [2025-01-22 13:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:47:31] Production.INFO: ==3706== Releasing lock... [2025-01-22 13:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:47:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:48:05 [end_date_ymd] => 2025-01-22 13:48:05 [RateCDR] => 1 ) [2025-01-22 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:48:05' and `end` < '2025-01-22 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:48:22] Production.INFO: count ==5391 [2025-01-22 13:48:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:48:05 - End Time 2025-01-22 13:48:05 [2025-01-22 13:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305400', 'tblTempUsageDetail_20' ) start [2025-01-22 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305400', 'tblTempUsageDetail_20' ) end [2025-01-22 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305400', 'tblTempVendorCDR_20' ) start [2025-01-22 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305400', 'tblTempVendorCDR_20' ) end [2025-01-22 13:48:24] Production.INFO: ProcessCDR(1,14305400,1,1,2) [2025-01-22 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305400', 'tblTempUsageDetail_20' ) start [2025-01-22 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305400', 'tblTempUsageDetail_20' ) end [2025-01-22 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:48:28] Production.INFO: ==3779== Releasing lock... [2025-01-22 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:48:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:49:04 [end_date_ymd] => 2025-01-22 13:49:04 [RateCDR] => 1 ) [2025-01-22 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:49:04' and `end` < '2025-01-22 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:49:22] Production.INFO: count ==5383 [2025-01-22 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:49:04 - End Time 2025-01-22 13:49:04 [2025-01-22 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305405', 'tblTempUsageDetail_20' ) start [2025-01-22 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305405', 'tblTempUsageDetail_20' ) end [2025-01-22 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305405', 'tblTempVendorCDR_20' ) start [2025-01-22 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305405', 'tblTempVendorCDR_20' ) end [2025-01-22 13:49:24] Production.INFO: ProcessCDR(1,14305405,1,1,2) [2025-01-22 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305405', 'tblTempUsageDetail_20' ) start [2025-01-22 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305405', 'tblTempUsageDetail_20' ) end [2025-01-22 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:49:28] Production.INFO: ==3850== Releasing lock... [2025-01-22 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:49:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:50:06 [end_date_ymd] => 2025-01-22 13:50:06 [RateCDR] => 1 ) [2025-01-22 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:50:06' and `end` < '2025-01-22 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:50:28] Production.INFO: count ==5382 [2025-01-22 13:50:30] Production.ERROR: pbx CDR StartTime 2025-01-22 10:50:06 - End Time 2025-01-22 13:50:06 [2025-01-22 13:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305411', 'tblTempUsageDetail_20' ) start [2025-01-22 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305411', 'tblTempUsageDetail_20' ) end [2025-01-22 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305411', 'tblTempVendorCDR_20' ) start [2025-01-22 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305411', 'tblTempVendorCDR_20' ) end [2025-01-22 13:50:30] Production.INFO: ProcessCDR(1,14305411,1,1,2) [2025-01-22 13:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305411', 'tblTempUsageDetail_20' ) start [2025-01-22 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305411', 'tblTempUsageDetail_20' ) end [2025-01-22 13:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:50:35] Production.INFO: ==3924== Releasing lock... [2025-01-22 13:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:50:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:51:05 [end_date_ymd] => 2025-01-22 13:51:05 [RateCDR] => 1 ) [2025-01-22 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:51:05' and `end` < '2025-01-22 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:51:24] Production.INFO: count ==5388 [2025-01-22 13:51:26] Production.ERROR: pbx CDR StartTime 2025-01-22 10:51:05 - End Time 2025-01-22 13:51:05 [2025-01-22 13:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305416', 'tblTempUsageDetail_20' ) start [2025-01-22 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305416', 'tblTempUsageDetail_20' ) end [2025-01-22 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305416', 'tblTempVendorCDR_20' ) start [2025-01-22 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305416', 'tblTempVendorCDR_20' ) end [2025-01-22 13:51:26] Production.INFO: ProcessCDR(1,14305416,1,1,2) [2025-01-22 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305416', 'tblTempUsageDetail_20' ) start [2025-01-22 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305416', 'tblTempUsageDetail_20' ) end [2025-01-22 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:51:30] Production.INFO: ==4005== Releasing lock... [2025-01-22 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:51:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:52:05 [end_date_ymd] => 2025-01-22 13:52:05 [RateCDR] => 1 ) [2025-01-22 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:52:05' and `end` < '2025-01-22 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:52:21] Production.INFO: count ==5397 [2025-01-22 13:52:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:52:05 - End Time 2025-01-22 13:52:05 [2025-01-22 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305421', 'tblTempUsageDetail_20' ) start [2025-01-22 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305421', 'tblTempUsageDetail_20' ) end [2025-01-22 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305421', 'tblTempVendorCDR_20' ) start [2025-01-22 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305421', 'tblTempVendorCDR_20' ) end [2025-01-22 13:52:23] Production.INFO: ProcessCDR(1,14305421,1,1,2) [2025-01-22 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305421', 'tblTempUsageDetail_20' ) start [2025-01-22 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305421', 'tblTempUsageDetail_20' ) end [2025-01-22 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:52:28] Production.INFO: ==4115== Releasing lock... [2025-01-22 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:52:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:53:04 [end_date_ymd] => 2025-01-22 13:53:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 10:53:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 13:53:25] Production.INFO: count ==5402 [2025-01-22 13:53:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:53:04 - End Time 2025-01-22 13:53:04 [2025-01-22 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305426', 'tblTempUsageDetail_20' ) start [2025-01-22 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305426', 'tblTempUsageDetail_20' ) end [2025-01-22 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305426', 'tblTempVendorCDR_20' ) start [2025-01-22 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305426', 'tblTempVendorCDR_20' ) end [2025-01-22 13:53:27] Production.INFO: ProcessCDR(1,14305426,1,1,2) [2025-01-22 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305426', 'tblTempUsageDetail_20' ) start [2025-01-22 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305426', 'tblTempUsageDetail_20' ) end [2025-01-22 13:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:53:32] Production.INFO: ==4186== Releasing lock... [2025-01-22 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:53:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:54:05 [end_date_ymd] => 2025-01-22 13:54:05 [RateCDR] => 1 ) [2025-01-22 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:54:05' and `end` < '2025-01-22 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:54:23] Production.INFO: count ==5413 [2025-01-22 13:54:25] Production.ERROR: pbx CDR StartTime 2025-01-22 10:54:05 - End Time 2025-01-22 13:54:05 [2025-01-22 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305431', 'tblTempUsageDetail_20' ) start [2025-01-22 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305431', 'tblTempUsageDetail_20' ) end [2025-01-22 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305431', 'tblTempVendorCDR_20' ) start [2025-01-22 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305431', 'tblTempVendorCDR_20' ) end [2025-01-22 13:54:26] Production.INFO: ProcessCDR(1,14305431,1,1,2) [2025-01-22 13:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305431', 'tblTempUsageDetail_20' ) start [2025-01-22 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305431', 'tblTempUsageDetail_20' ) end [2025-01-22 13:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:54:30] Production.INFO: ==4258== Releasing lock... [2025-01-22 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:54:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:55:06 [end_date_ymd] => 2025-01-22 13:55:06 [RateCDR] => 1 ) [2025-01-22 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:55:06' and `end` < '2025-01-22 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:55:27] Production.INFO: count ==5415 [2025-01-22 13:55:29] Production.ERROR: pbx CDR StartTime 2025-01-22 10:55:06 - End Time 2025-01-22 13:55:06 [2025-01-22 13:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305436', 'tblTempUsageDetail_20' ) start [2025-01-22 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305436', 'tblTempUsageDetail_20' ) end [2025-01-22 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305436', 'tblTempVendorCDR_20' ) start [2025-01-22 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305436', 'tblTempVendorCDR_20' ) end [2025-01-22 13:55:30] Production.INFO: ProcessCDR(1,14305436,1,1,2) [2025-01-22 13:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305436', 'tblTempUsageDetail_20' ) start [2025-01-22 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305436', 'tblTempUsageDetail_20' ) end [2025-01-22 13:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:55:34] Production.INFO: ==4329== Releasing lock... [2025-01-22 13:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:55:34] Production.INFO: 68.5 MB #Memory Used# [2025-01-22 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:56:05 [end_date_ymd] => 2025-01-22 13:56:05 [RateCDR] => 1 ) [2025-01-22 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:56:05' and `end` < '2025-01-22 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:56:25] Production.INFO: count ==5437 [2025-01-22 13:56:27] Production.ERROR: pbx CDR StartTime 2025-01-22 10:56:05 - End Time 2025-01-22 13:56:05 [2025-01-22 13:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305441', 'tblTempUsageDetail_20' ) start [2025-01-22 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305441', 'tblTempUsageDetail_20' ) end [2025-01-22 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305441', 'tblTempVendorCDR_20' ) start [2025-01-22 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305441', 'tblTempVendorCDR_20' ) end [2025-01-22 13:56:28] Production.INFO: ProcessCDR(1,14305441,1,1,2) [2025-01-22 13:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305441', 'tblTempUsageDetail_20' ) start [2025-01-22 13:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305441', 'tblTempUsageDetail_20' ) end [2025-01-22 13:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:56:32] Production.INFO: ==4399== Releasing lock... [2025-01-22 13:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:56:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:57:05 [end_date_ymd] => 2025-01-22 13:57:05 [RateCDR] => 1 ) [2025-01-22 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:57:05' and `end` < '2025-01-22 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:57:21] Production.INFO: count ==5444 [2025-01-22 13:57:23] Production.ERROR: pbx CDR StartTime 2025-01-22 10:57:05 - End Time 2025-01-22 13:57:05 [2025-01-22 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305446', 'tblTempUsageDetail_20' ) start [2025-01-22 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305446', 'tblTempUsageDetail_20' ) end [2025-01-22 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305446', 'tblTempVendorCDR_20' ) start [2025-01-22 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305446', 'tblTempVendorCDR_20' ) end [2025-01-22 13:57:23] Production.INFO: ProcessCDR(1,14305446,1,1,2) [2025-01-22 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305446', 'tblTempUsageDetail_20' ) start [2025-01-22 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305446', 'tblTempUsageDetail_20' ) end [2025-01-22 13:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:57:29] Production.INFO: ==4470== Releasing lock... [2025-01-22 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:57:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:58:05 [end_date_ymd] => 2025-01-22 13:58:05 [RateCDR] => 1 ) [2025-01-22 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:58:05' and `end` < '2025-01-22 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:58:22] Production.INFO: count ==5448 [2025-01-22 13:58:24] Production.ERROR: pbx CDR StartTime 2025-01-22 10:58:05 - End Time 2025-01-22 13:58:05 [2025-01-22 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305451', 'tblTempUsageDetail_20' ) start [2025-01-22 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305451', 'tblTempUsageDetail_20' ) end [2025-01-22 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305451', 'tblTempVendorCDR_20' ) start [2025-01-22 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305451', 'tblTempVendorCDR_20' ) end [2025-01-22 13:58:24] Production.INFO: ProcessCDR(1,14305451,1,1,2) [2025-01-22 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305451', 'tblTempUsageDetail_20' ) start [2025-01-22 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305451', 'tblTempUsageDetail_20' ) end [2025-01-22 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:58:29] Production.INFO: ==4538== Releasing lock... [2025-01-22 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:58:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 10:59:06 [end_date_ymd] => 2025-01-22 13:59:06 [RateCDR] => 1 ) [2025-01-22 13:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 10:59:06' and `end` < '2025-01-22 13:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 13:59:28] Production.INFO: count ==5439 [2025-01-22 13:59:30] Production.ERROR: pbx CDR StartTime 2025-01-22 10:59:06 - End Time 2025-01-22 13:59:06 [2025-01-22 13:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305456', 'tblTempUsageDetail_20' ) start [2025-01-22 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305456', 'tblTempUsageDetail_20' ) end [2025-01-22 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305456', 'tblTempVendorCDR_20' ) start [2025-01-22 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305456', 'tblTempVendorCDR_20' ) end [2025-01-22 13:59:30] Production.INFO: ProcessCDR(1,14305456,1,1,2) [2025-01-22 13:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 13:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 13:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305456', 'tblTempUsageDetail_20' ) start [2025-01-22 13:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305456', 'tblTempUsageDetail_20' ) end [2025-01-22 13:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 13:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 13:59:34] Production.INFO: ==4617== Releasing lock... [2025-01-22 13:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 13:59:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:00:05 [end_date_ymd] => 2025-01-22 14:00:05 [RateCDR] => 1 ) [2025-01-22 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:00:05' and `end` < '2025-01-22 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:00:25] Production.INFO: count ==5434 [2025-01-22 14:00:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:00:05 - End Time 2025-01-22 14:00:05 [2025-01-22 14:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305462', 'tblTempUsageDetail_20' ) start [2025-01-22 14:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305462', 'tblTempUsageDetail_20' ) end [2025-01-22 14:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305462', 'tblTempVendorCDR_20' ) start [2025-01-22 14:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305462', 'tblTempVendorCDR_20' ) end [2025-01-22 14:00:27] Production.INFO: ProcessCDR(1,14305462,1,1,2) [2025-01-22 14:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305462', 'tblTempUsageDetail_20' ) start [2025-01-22 14:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305462', 'tblTempUsageDetail_20' ) end [2025-01-22 14:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:00:32] Production.INFO: ==4692== Releasing lock... [2025-01-22 14:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:00:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:01:05 [end_date_ymd] => 2025-01-22 14:01:05 [RateCDR] => 1 ) [2025-01-22 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:01:05' and `end` < '2025-01-22 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:01:28] Production.INFO: count ==5510 [2025-01-22 14:01:30] Production.ERROR: pbx CDR StartTime 2025-01-22 11:01:05 - End Time 2025-01-22 14:01:05 [2025-01-22 14:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305467', 'tblTempUsageDetail_20' ) start [2025-01-22 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305467', 'tblTempUsageDetail_20' ) end [2025-01-22 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305467', 'tblTempVendorCDR_20' ) start [2025-01-22 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305467', 'tblTempVendorCDR_20' ) end [2025-01-22 14:01:30] Production.INFO: ProcessCDR(1,14305467,1,1,2) [2025-01-22 14:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305467', 'tblTempUsageDetail_20' ) start [2025-01-22 14:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305467', 'tblTempUsageDetail_20' ) end [2025-01-22 14:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:01:34] Production.INFO: ==4777== Releasing lock... [2025-01-22 14:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:01:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:02:06 [end_date_ymd] => 2025-01-22 14:02:06 [RateCDR] => 1 ) [2025-01-22 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:02:06' and `end` < '2025-01-22 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:02:25] Production.INFO: count ==5512 [2025-01-22 14:02:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:02:06 - End Time 2025-01-22 14:02:06 [2025-01-22 14:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305472', 'tblTempUsageDetail_20' ) start [2025-01-22 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305472', 'tblTempUsageDetail_20' ) end [2025-01-22 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305472', 'tblTempVendorCDR_20' ) start [2025-01-22 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305472', 'tblTempVendorCDR_20' ) end [2025-01-22 14:02:28] Production.INFO: ProcessCDR(1,14305472,1,1,2) [2025-01-22 14:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305472', 'tblTempUsageDetail_20' ) start [2025-01-22 14:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305472', 'tblTempUsageDetail_20' ) end [2025-01-22 14:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:02:32] Production.INFO: ==4848== Releasing lock... [2025-01-22 14:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:02:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:03:05 [end_date_ymd] => 2025-01-22 14:03:05 [RateCDR] => 1 ) [2025-01-22 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:03:05' and `end` < '2025-01-22 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:03:23] Production.INFO: count ==5513 [2025-01-22 14:03:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:03:05 - End Time 2025-01-22 14:03:05 [2025-01-22 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305477', 'tblTempUsageDetail_20' ) start [2025-01-22 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305477', 'tblTempUsageDetail_20' ) end [2025-01-22 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305477', 'tblTempVendorCDR_20' ) start [2025-01-22 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305477', 'tblTempVendorCDR_20' ) end [2025-01-22 14:03:25] Production.INFO: ProcessCDR(1,14305477,1,1,2) [2025-01-22 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305477', 'tblTempUsageDetail_20' ) start [2025-01-22 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305477', 'tblTempUsageDetail_20' ) end [2025-01-22 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:03:30] Production.INFO: ==4918== Releasing lock... [2025-01-22 14:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:03:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:04:06 [end_date_ymd] => 2025-01-22 14:04:06 [RateCDR] => 1 ) [2025-01-22 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:04:06' and `end` < '2025-01-22 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:04:23] Production.INFO: count ==5515 [2025-01-22 14:04:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:04:06 - End Time 2025-01-22 14:04:06 [2025-01-22 14:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305482', 'tblTempUsageDetail_20' ) start [2025-01-22 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305482', 'tblTempUsageDetail_20' ) end [2025-01-22 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305482', 'tblTempVendorCDR_20' ) start [2025-01-22 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305482', 'tblTempVendorCDR_20' ) end [2025-01-22 14:04:26] Production.INFO: ProcessCDR(1,14305482,1,1,2) [2025-01-22 14:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305482', 'tblTempUsageDetail_20' ) start [2025-01-22 14:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305482', 'tblTempUsageDetail_20' ) end [2025-01-22 14:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:04:31] Production.INFO: ==4990== Releasing lock... [2025-01-22 14:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:04:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:05:05 [end_date_ymd] => 2025-01-22 14:05:05 [RateCDR] => 1 ) [2025-01-22 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:05:05' and `end` < '2025-01-22 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:05:23] Production.INFO: count ==5498 [2025-01-22 14:05:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:05:05 - End Time 2025-01-22 14:05:05 [2025-01-22 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305487', 'tblTempUsageDetail_20' ) start [2025-01-22 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305487', 'tblTempUsageDetail_20' ) end [2025-01-22 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305487', 'tblTempVendorCDR_20' ) start [2025-01-22 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305487', 'tblTempVendorCDR_20' ) end [2025-01-22 14:05:25] Production.INFO: ProcessCDR(1,14305487,1,1,2) [2025-01-22 14:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305487', 'tblTempUsageDetail_20' ) start [2025-01-22 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305487', 'tblTempUsageDetail_20' ) end [2025-01-22 14:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:05:30] Production.INFO: ==5065== Releasing lock... [2025-01-22 14:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:05:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:06:05 [end_date_ymd] => 2025-01-22 14:06:05 [RateCDR] => 1 ) [2025-01-22 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:06:05' and `end` < '2025-01-22 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:06:25] Production.INFO: count ==5496 [2025-01-22 14:06:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:06:05 - End Time 2025-01-22 14:06:05 [2025-01-22 14:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305492', 'tblTempUsageDetail_20' ) start [2025-01-22 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305492', 'tblTempUsageDetail_20' ) end [2025-01-22 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305492', 'tblTempVendorCDR_20' ) start [2025-01-22 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305492', 'tblTempVendorCDR_20' ) end [2025-01-22 14:06:27] Production.INFO: ProcessCDR(1,14305492,1,1,2) [2025-01-22 14:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305492', 'tblTempUsageDetail_20' ) start [2025-01-22 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305492', 'tblTempUsageDetail_20' ) end [2025-01-22 14:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:06:31] Production.INFO: ==5143== Releasing lock... [2025-01-22 14:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:06:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:07:04 [end_date_ymd] => 2025-01-22 14:07:04 [RateCDR] => 1 ) [2025-01-22 14:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:07:04' and `end` < '2025-01-22 14:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:07:24] Production.INFO: count ==5488 [2025-01-22 14:07:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:07:04 - End Time 2025-01-22 14:07:04 [2025-01-22 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305497', 'tblTempUsageDetail_20' ) start [2025-01-22 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305497', 'tblTempUsageDetail_20' ) end [2025-01-22 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305497', 'tblTempVendorCDR_20' ) start [2025-01-22 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305497', 'tblTempVendorCDR_20' ) end [2025-01-22 14:07:26] Production.INFO: ProcessCDR(1,14305497,1,1,2) [2025-01-22 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305497', 'tblTempUsageDetail_20' ) start [2025-01-22 14:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305497', 'tblTempUsageDetail_20' ) end [2025-01-22 14:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:07:30] Production.INFO: ==5252== Releasing lock... [2025-01-22 14:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:07:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:08:06 [end_date_ymd] => 2025-01-22 14:08:06 [RateCDR] => 1 ) [2025-01-22 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:08:06' and `end` < '2025-01-22 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:08:33] Production.INFO: count ==5486 [2025-01-22 14:08:35] Production.ERROR: pbx CDR StartTime 2025-01-22 11:08:06 - End Time 2025-01-22 14:08:06 [2025-01-22 14:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305502', 'tblTempUsageDetail_20' ) start [2025-01-22 14:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305502', 'tblTempUsageDetail_20' ) end [2025-01-22 14:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305502', 'tblTempVendorCDR_20' ) start [2025-01-22 14:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305502', 'tblTempVendorCDR_20' ) end [2025-01-22 14:08:35] Production.INFO: ProcessCDR(1,14305502,1,1,2) [2025-01-22 14:08:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:08:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:08:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:08:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305502', 'tblTempUsageDetail_20' ) start [2025-01-22 14:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305502', 'tblTempUsageDetail_20' ) end [2025-01-22 14:08:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:08:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:08:40] Production.INFO: ==5324== Releasing lock... [2025-01-22 14:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:08:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:09:05 [end_date_ymd] => 2025-01-22 14:09:05 [RateCDR] => 1 ) [2025-01-22 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:09:05' and `end` < '2025-01-22 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:09:24] Production.INFO: count ==5473 [2025-01-22 14:09:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:09:05 - End Time 2025-01-22 14:09:05 [2025-01-22 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305507', 'tblTempUsageDetail_20' ) start [2025-01-22 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305507', 'tblTempUsageDetail_20' ) end [2025-01-22 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305507', 'tblTempVendorCDR_20' ) start [2025-01-22 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305507', 'tblTempVendorCDR_20' ) end [2025-01-22 14:09:26] Production.INFO: ProcessCDR(1,14305507,1,1,2) [2025-01-22 14:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305507', 'tblTempUsageDetail_20' ) start [2025-01-22 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305507', 'tblTempUsageDetail_20' ) end [2025-01-22 14:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:09:30] Production.INFO: ==5394== Releasing lock... [2025-01-22 14:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:09:30] Production.INFO: 69 MB #Memory Used# [2025-01-22 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:10:06 [end_date_ymd] => 2025-01-22 14:10:06 [RateCDR] => 1 ) [2025-01-22 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:10:06' and `end` < '2025-01-22 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:10:26] Production.INFO: count ==5457 [2025-01-22 14:10:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:10:06 - End Time 2025-01-22 14:10:06 [2025-01-22 14:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305513', 'tblTempUsageDetail_20' ) start [2025-01-22 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305513', 'tblTempUsageDetail_20' ) end [2025-01-22 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305513', 'tblTempVendorCDR_20' ) start [2025-01-22 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305513', 'tblTempVendorCDR_20' ) end [2025-01-22 14:10:28] Production.INFO: ProcessCDR(1,14305513,1,1,2) [2025-01-22 14:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305513', 'tblTempUsageDetail_20' ) start [2025-01-22 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305513', 'tblTempUsageDetail_20' ) end [2025-01-22 14:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:10:32] Production.INFO: ==5468== Releasing lock... [2025-01-22 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:10:32] Production.INFO: 69 MB #Memory Used# [2025-01-22 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:11:05 [end_date_ymd] => 2025-01-22 14:11:05 [RateCDR] => 1 ) [2025-01-22 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:11:05' and `end` < '2025-01-22 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:11:35] Production.INFO: count ==5490 [2025-01-22 14:11:37] Production.ERROR: pbx CDR StartTime 2025-01-22 11:11:05 - End Time 2025-01-22 14:11:05 [2025-01-22 14:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305518', 'tblTempUsageDetail_20' ) start [2025-01-22 14:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305518', 'tblTempUsageDetail_20' ) end [2025-01-22 14:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305518', 'tblTempVendorCDR_20' ) start [2025-01-22 14:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305518', 'tblTempVendorCDR_20' ) end [2025-01-22 14:11:37] Production.INFO: ProcessCDR(1,14305518,1,1,2) [2025-01-22 14:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:11:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:11:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:11:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305518', 'tblTempUsageDetail_20' ) start [2025-01-22 14:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305518', 'tblTempUsageDetail_20' ) end [2025-01-22 14:11:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:11:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:11:42] Production.INFO: ==5543== Releasing lock... [2025-01-22 14:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:11:42] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:12:05 [end_date_ymd] => 2025-01-22 14:12:05 [RateCDR] => 1 ) [2025-01-22 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:12:05' and `end` < '2025-01-22 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:12:26] Production.INFO: count ==5483 [2025-01-22 14:12:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:12:05 - End Time 2025-01-22 14:12:05 [2025-01-22 14:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305523', 'tblTempUsageDetail_20' ) start [2025-01-22 14:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305523', 'tblTempUsageDetail_20' ) end [2025-01-22 14:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305523', 'tblTempVendorCDR_20' ) start [2025-01-22 14:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305523', 'tblTempVendorCDR_20' ) end [2025-01-22 14:12:28] Production.INFO: ProcessCDR(1,14305523,1,1,2) [2025-01-22 14:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305523', 'tblTempUsageDetail_20' ) start [2025-01-22 14:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305523', 'tblTempUsageDetail_20' ) end [2025-01-22 14:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:12:33] Production.INFO: ==5614== Releasing lock... [2025-01-22 14:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:12:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:13:05 [end_date_ymd] => 2025-01-22 14:13:05 [RateCDR] => 1 ) [2025-01-22 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:13:05' and `end` < '2025-01-22 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:13:31] Production.INFO: count ==5498 [2025-01-22 14:13:33] Production.ERROR: pbx CDR StartTime 2025-01-22 11:13:05 - End Time 2025-01-22 14:13:05 [2025-01-22 14:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305528', 'tblTempUsageDetail_20' ) start [2025-01-22 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305528', 'tblTempUsageDetail_20' ) end [2025-01-22 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305528', 'tblTempVendorCDR_20' ) start [2025-01-22 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305528', 'tblTempVendorCDR_20' ) end [2025-01-22 14:13:33] Production.INFO: ProcessCDR(1,14305528,1,1,2) [2025-01-22 14:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:13:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:13:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:13:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305528', 'tblTempUsageDetail_20' ) start [2025-01-22 14:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305528', 'tblTempUsageDetail_20' ) end [2025-01-22 14:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:13:38] Production.INFO: ==5686== Releasing lock... [2025-01-22 14:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:13:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:14:05 [end_date_ymd] => 2025-01-22 14:14:05 [RateCDR] => 1 ) [2025-01-22 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:14:05' and `end` < '2025-01-22 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:14:23] Production.INFO: count ==5496 [2025-01-22 14:14:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:14:05 - End Time 2025-01-22 14:14:05 [2025-01-22 14:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305533', 'tblTempUsageDetail_20' ) start [2025-01-22 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305533', 'tblTempUsageDetail_20' ) end [2025-01-22 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305533', 'tblTempVendorCDR_20' ) start [2025-01-22 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305533', 'tblTempVendorCDR_20' ) end [2025-01-22 14:14:25] Production.INFO: ProcessCDR(1,14305533,1,1,2) [2025-01-22 14:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305533', 'tblTempUsageDetail_20' ) start [2025-01-22 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305533', 'tblTempUsageDetail_20' ) end [2025-01-22 14:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:14:30] Production.INFO: ==5760== Releasing lock... [2025-01-22 14:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:14:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:15:04 [end_date_ymd] => 2025-01-22 14:15:04 [RateCDR] => 1 ) [2025-01-22 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:15:04' and `end` < '2025-01-22 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:15:30] Production.INFO: count ==5508 [2025-01-22 14:15:32] Production.ERROR: pbx CDR StartTime 2025-01-22 11:15:04 - End Time 2025-01-22 14:15:04 [2025-01-22 14:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305538', 'tblTempUsageDetail_20' ) start [2025-01-22 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305538', 'tblTempUsageDetail_20' ) end [2025-01-22 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305538', 'tblTempVendorCDR_20' ) start [2025-01-22 14:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305538', 'tblTempVendorCDR_20' ) end [2025-01-22 14:15:32] Production.INFO: ProcessCDR(1,14305538,1,1,2) [2025-01-22 14:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305538', 'tblTempUsageDetail_20' ) start [2025-01-22 14:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305538', 'tblTempUsageDetail_20' ) end [2025-01-22 14:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:15:37] Production.INFO: ==5837== Releasing lock... [2025-01-22 14:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:15:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:16:05 [end_date_ymd] => 2025-01-22 14:16:05 [RateCDR] => 1 ) [2025-01-22 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:16:05' and `end` < '2025-01-22 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:16:25] Production.INFO: count ==5504 [2025-01-22 14:16:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:16:05 - End Time 2025-01-22 14:16:05 [2025-01-22 14:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305543', 'tblTempUsageDetail_20' ) start [2025-01-22 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305543', 'tblTempUsageDetail_20' ) end [2025-01-22 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305543', 'tblTempVendorCDR_20' ) start [2025-01-22 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305543', 'tblTempVendorCDR_20' ) end [2025-01-22 14:16:27] Production.INFO: ProcessCDR(1,14305543,1,1,2) [2025-01-22 14:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305543', 'tblTempUsageDetail_20' ) start [2025-01-22 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305543', 'tblTempUsageDetail_20' ) end [2025-01-22 14:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:16:32] Production.INFO: ==5912== Releasing lock... [2025-01-22 14:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:16:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:17:05 [end_date_ymd] => 2025-01-22 14:17:05 [RateCDR] => 1 ) [2025-01-22 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:17:05' and `end` < '2025-01-22 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:17:22] Production.INFO: count ==5492 [2025-01-22 14:17:24] Production.ERROR: pbx CDR StartTime 2025-01-22 11:17:05 - End Time 2025-01-22 14:17:05 [2025-01-22 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305548', 'tblTempUsageDetail_20' ) start [2025-01-22 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305548', 'tblTempUsageDetail_20' ) end [2025-01-22 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305548', 'tblTempVendorCDR_20' ) start [2025-01-22 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305548', 'tblTempVendorCDR_20' ) end [2025-01-22 14:17:24] Production.INFO: ProcessCDR(1,14305548,1,1,2) [2025-01-22 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305548', 'tblTempUsageDetail_20' ) start [2025-01-22 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305548', 'tblTempUsageDetail_20' ) end [2025-01-22 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:17:28] Production.INFO: ==5984== Releasing lock... [2025-01-22 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:17:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:18:05 [end_date_ymd] => 2025-01-22 14:18:05 [RateCDR] => 1 ) [2025-01-22 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:18:05' and `end` < '2025-01-22 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:18:21] Production.INFO: count ==5506 [2025-01-22 14:18:23] Production.ERROR: pbx CDR StartTime 2025-01-22 11:18:05 - End Time 2025-01-22 14:18:05 [2025-01-22 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305553', 'tblTempUsageDetail_20' ) start [2025-01-22 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305553', 'tblTempUsageDetail_20' ) end [2025-01-22 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305553', 'tblTempVendorCDR_20' ) start [2025-01-22 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305553', 'tblTempVendorCDR_20' ) end [2025-01-22 14:18:23] Production.INFO: ProcessCDR(1,14305553,1,1,2) [2025-01-22 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305553', 'tblTempUsageDetail_20' ) start [2025-01-22 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305553', 'tblTempUsageDetail_20' ) end [2025-01-22 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:18:28] Production.INFO: ==6056== Releasing lock... [2025-01-22 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:18:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:19:05 [end_date_ymd] => 2025-01-22 14:19:05 [RateCDR] => 1 ) [2025-01-22 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:19:05' and `end` < '2025-01-22 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:19:22] Production.INFO: count ==5507 [2025-01-22 14:19:24] Production.ERROR: pbx CDR StartTime 2025-01-22 11:19:05 - End Time 2025-01-22 14:19:05 [2025-01-22 14:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305558', 'tblTempUsageDetail_20' ) start [2025-01-22 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305558', 'tblTempUsageDetail_20' ) end [2025-01-22 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305558', 'tblTempVendorCDR_20' ) start [2025-01-22 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305558', 'tblTempVendorCDR_20' ) end [2025-01-22 14:19:25] Production.INFO: ProcessCDR(1,14305558,1,1,2) [2025-01-22 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305558', 'tblTempUsageDetail_20' ) start [2025-01-22 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305558', 'tblTempUsageDetail_20' ) end [2025-01-22 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:19:29] Production.INFO: ==6125== Releasing lock... [2025-01-22 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:19:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:20:05 [end_date_ymd] => 2025-01-22 14:20:05 [RateCDR] => 1 ) [2025-01-22 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:20:05' and `end` < '2025-01-22 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:20:36] Production.INFO: count ==5519 [2025-01-22 14:20:38] Production.ERROR: pbx CDR StartTime 2025-01-22 11:20:05 - End Time 2025-01-22 14:20:05 [2025-01-22 14:20:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305563', 'tblTempUsageDetail_20' ) start [2025-01-22 14:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305563', 'tblTempUsageDetail_20' ) end [2025-01-22 14:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305563', 'tblTempVendorCDR_20' ) start [2025-01-22 14:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305563', 'tblTempVendorCDR_20' ) end [2025-01-22 14:20:38] Production.INFO: ProcessCDR(1,14305563,1,1,2) [2025-01-22 14:20:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:20:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:20:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:20:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305563', 'tblTempUsageDetail_20' ) start [2025-01-22 14:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305563', 'tblTempUsageDetail_20' ) end [2025-01-22 14:20:43] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:20:43] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:20:43] Production.INFO: ==6200== Releasing lock... [2025-01-22 14:20:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:20:43] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:21:04 [end_date_ymd] => 2025-01-22 14:21:04 [RateCDR] => 1 ) [2025-01-22 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:21:04' and `end` < '2025-01-22 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:21:23] Production.INFO: count ==5535 [2025-01-22 14:21:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:21:04 - End Time 2025-01-22 14:21:04 [2025-01-22 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305569', 'tblTempUsageDetail_20' ) start [2025-01-22 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305569', 'tblTempUsageDetail_20' ) end [2025-01-22 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305569', 'tblTempVendorCDR_20' ) start [2025-01-22 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305569', 'tblTempVendorCDR_20' ) end [2025-01-22 14:21:25] Production.INFO: ProcessCDR(1,14305569,1,1,2) [2025-01-22 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305569', 'tblTempUsageDetail_20' ) start [2025-01-22 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305569', 'tblTempUsageDetail_20' ) end [2025-01-22 14:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:21:29] Production.INFO: ==6278== Releasing lock... [2025-01-22 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:21:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:22:05 [end_date_ymd] => 2025-01-22 14:22:05 [RateCDR] => 1 ) [2025-01-22 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:22:05' and `end` < '2025-01-22 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:22:24] Production.INFO: count ==5515 [2025-01-22 14:22:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:22:05 - End Time 2025-01-22 14:22:05 [2025-01-22 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305574', 'tblTempUsageDetail_20' ) start [2025-01-22 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305574', 'tblTempUsageDetail_20' ) end [2025-01-22 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305574', 'tblTempVendorCDR_20' ) start [2025-01-22 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305574', 'tblTempVendorCDR_20' ) end [2025-01-22 14:22:26] Production.INFO: ProcessCDR(1,14305574,1,1,2) [2025-01-22 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305574', 'tblTempUsageDetail_20' ) start [2025-01-22 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305574', 'tblTempUsageDetail_20' ) end [2025-01-22 14:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:22:30] Production.INFO: ==6390== Releasing lock... [2025-01-22 14:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:22:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:23:06 [end_date_ymd] => 2025-01-22 14:23:06 [RateCDR] => 1 ) [2025-01-22 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:23:06' and `end` < '2025-01-22 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:23:29] Production.INFO: count ==5532 [2025-01-22 14:23:31] Production.ERROR: pbx CDR StartTime 2025-01-22 11:23:06 - End Time 2025-01-22 14:23:06 [2025-01-22 14:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305579', 'tblTempUsageDetail_20' ) start [2025-01-22 14:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305579', 'tblTempUsageDetail_20' ) end [2025-01-22 14:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305579', 'tblTempVendorCDR_20' ) start [2025-01-22 14:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305579', 'tblTempVendorCDR_20' ) end [2025-01-22 14:23:31] Production.INFO: ProcessCDR(1,14305579,1,1,2) [2025-01-22 14:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305579', 'tblTempUsageDetail_20' ) start [2025-01-22 14:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305579', 'tblTempUsageDetail_20' ) end [2025-01-22 14:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:23:36] Production.INFO: ==6464== Releasing lock... [2025-01-22 14:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:23:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:24:05 [end_date_ymd] => 2025-01-22 14:24:05 [RateCDR] => 1 ) [2025-01-22 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:24:05' and `end` < '2025-01-22 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:24:37] Production.INFO: count ==5559 [2025-01-22 14:24:39] Production.ERROR: pbx CDR StartTime 2025-01-22 11:24:05 - End Time 2025-01-22 14:24:05 [2025-01-22 14:24:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:24:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305584', 'tblTempUsageDetail_20' ) start [2025-01-22 14:24:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305584', 'tblTempUsageDetail_20' ) end [2025-01-22 14:24:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305584', 'tblTempVendorCDR_20' ) start [2025-01-22 14:24:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305584', 'tblTempVendorCDR_20' ) end [2025-01-22 14:24:39] Production.INFO: ProcessCDR(1,14305584,1,1,2) [2025-01-22 14:24:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:24:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:24:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:24:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305584', 'tblTempUsageDetail_20' ) start [2025-01-22 14:24:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305584', 'tblTempUsageDetail_20' ) end [2025-01-22 14:24:44] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:24:44] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:24:44] Production.INFO: ==6537== Releasing lock... [2025-01-22 14:24:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:24:44] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:25:05 [end_date_ymd] => 2025-01-22 14:25:05 [RateCDR] => 1 ) [2025-01-22 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:25:05' and `end` < '2025-01-22 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:25:28] Production.INFO: count ==5561 [2025-01-22 14:25:30] Production.ERROR: pbx CDR StartTime 2025-01-22 11:25:05 - End Time 2025-01-22 14:25:05 [2025-01-22 14:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305589', 'tblTempUsageDetail_20' ) start [2025-01-22 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305589', 'tblTempUsageDetail_20' ) end [2025-01-22 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305589', 'tblTempVendorCDR_20' ) start [2025-01-22 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305589', 'tblTempVendorCDR_20' ) end [2025-01-22 14:25:30] Production.INFO: ProcessCDR(1,14305589,1,1,2) [2025-01-22 14:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305589', 'tblTempUsageDetail_20' ) start [2025-01-22 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305589', 'tblTempUsageDetail_20' ) end [2025-01-22 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:25:35] Production.INFO: ==6607== Releasing lock... [2025-01-22 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:25:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:26:05 [end_date_ymd] => 2025-01-22 14:26:05 [RateCDR] => 1 ) [2025-01-22 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:26:05' and `end` < '2025-01-22 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:26:26] Production.INFO: count ==5584 [2025-01-22 14:26:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:26:05 - End Time 2025-01-22 14:26:05 [2025-01-22 14:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305594', 'tblTempUsageDetail_20' ) start [2025-01-22 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305594', 'tblTempUsageDetail_20' ) end [2025-01-22 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305594', 'tblTempVendorCDR_20' ) start [2025-01-22 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305594', 'tblTempVendorCDR_20' ) end [2025-01-22 14:26:28] Production.INFO: ProcessCDR(1,14305594,1,1,2) [2025-01-22 14:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305594', 'tblTempUsageDetail_20' ) start [2025-01-22 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305594', 'tblTempUsageDetail_20' ) end [2025-01-22 14:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:26:32] Production.INFO: ==6675== Releasing lock... [2025-01-22 14:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:26:32] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:27:05 [end_date_ymd] => 2025-01-22 14:27:05 [RateCDR] => 1 ) [2025-01-22 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:27:05' and `end` < '2025-01-22 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:27:24] Production.INFO: count ==5576 [2025-01-22 14:27:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:27:05 - End Time 2025-01-22 14:27:05 [2025-01-22 14:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305599', 'tblTempUsageDetail_20' ) start [2025-01-22 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305599', 'tblTempUsageDetail_20' ) end [2025-01-22 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305599', 'tblTempVendorCDR_20' ) start [2025-01-22 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305599', 'tblTempVendorCDR_20' ) end [2025-01-22 14:27:26] Production.INFO: ProcessCDR(1,14305599,1,1,2) [2025-01-22 14:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305599', 'tblTempUsageDetail_20' ) start [2025-01-22 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305599', 'tblTempUsageDetail_20' ) end [2025-01-22 14:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:27:31] Production.INFO: ==6750== Releasing lock... [2025-01-22 14:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:27:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:28:05 [end_date_ymd] => 2025-01-22 14:28:05 [RateCDR] => 1 ) [2025-01-22 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:28:05' and `end` < '2025-01-22 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:28:24] Production.INFO: count ==5586 [2025-01-22 14:28:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:28:05 - End Time 2025-01-22 14:28:05 [2025-01-22 14:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305604', 'tblTempUsageDetail_20' ) start [2025-01-22 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305604', 'tblTempUsageDetail_20' ) end [2025-01-22 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305604', 'tblTempVendorCDR_20' ) start [2025-01-22 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305604', 'tblTempVendorCDR_20' ) end [2025-01-22 14:28:26] Production.INFO: ProcessCDR(1,14305604,1,1,2) [2025-01-22 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305604', 'tblTempUsageDetail_20' ) start [2025-01-22 14:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305604', 'tblTempUsageDetail_20' ) end [2025-01-22 14:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:28:31] Production.INFO: ==6821== Releasing lock... [2025-01-22 14:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:28:31] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:29:05 [end_date_ymd] => 2025-01-22 14:29:05 [RateCDR] => 1 ) [2025-01-22 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:29:05' and `end` < '2025-01-22 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:29:24] Production.INFO: count ==5593 [2025-01-22 14:29:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:29:05 - End Time 2025-01-22 14:29:05 [2025-01-22 14:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305609', 'tblTempUsageDetail_20' ) start [2025-01-22 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305609', 'tblTempUsageDetail_20' ) end [2025-01-22 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305609', 'tblTempVendorCDR_20' ) start [2025-01-22 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305609', 'tblTempVendorCDR_20' ) end [2025-01-22 14:29:26] Production.INFO: ProcessCDR(1,14305609,1,1,2) [2025-01-22 14:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305609', 'tblTempUsageDetail_20' ) start [2025-01-22 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305609', 'tblTempUsageDetail_20' ) end [2025-01-22 14:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:29:31] Production.INFO: ==6896== Releasing lock... [2025-01-22 14:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:29:31] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:30:05 [end_date_ymd] => 2025-01-22 14:30:05 [RateCDR] => 1 ) [2025-01-22 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:30:05' and `end` < '2025-01-22 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:30:26] Production.INFO: count ==5617 [2025-01-22 14:30:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:30:05 - End Time 2025-01-22 14:30:05 [2025-01-22 14:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305615', 'tblTempUsageDetail_20' ) start [2025-01-22 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305615', 'tblTempUsageDetail_20' ) end [2025-01-22 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305615', 'tblTempVendorCDR_20' ) start [2025-01-22 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305615', 'tblTempVendorCDR_20' ) end [2025-01-22 14:30:28] Production.INFO: ProcessCDR(1,14305615,1,1,2) [2025-01-22 14:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305615', 'tblTempUsageDetail_20' ) start [2025-01-22 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305615', 'tblTempUsageDetail_20' ) end [2025-01-22 14:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:30:33] Production.INFO: ==6969== Releasing lock... [2025-01-22 14:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:30:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:31:05 [end_date_ymd] => 2025-01-22 14:31:05 [RateCDR] => 1 ) [2025-01-22 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:31:05' and `end` < '2025-01-22 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:31:24] Production.INFO: count ==5622 [2025-01-22 14:31:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:31:05 - End Time 2025-01-22 14:31:05 [2025-01-22 14:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305620', 'tblTempUsageDetail_20' ) start [2025-01-22 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305620', 'tblTempUsageDetail_20' ) end [2025-01-22 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305620', 'tblTempVendorCDR_20' ) start [2025-01-22 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305620', 'tblTempVendorCDR_20' ) end [2025-01-22 14:31:27] Production.INFO: ProcessCDR(1,14305620,1,1,2) [2025-01-22 14:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305620', 'tblTempUsageDetail_20' ) start [2025-01-22 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305620', 'tblTempUsageDetail_20' ) end [2025-01-22 14:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:31:31] Production.INFO: ==7043== Releasing lock... [2025-01-22 14:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:31:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:32:05 [end_date_ymd] => 2025-01-22 14:32:05 [RateCDR] => 1 ) [2025-01-22 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:32:05' and `end` < '2025-01-22 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:32:25] Production.INFO: count ==5624 [2025-01-22 14:32:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:32:05 - End Time 2025-01-22 14:32:05 [2025-01-22 14:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305625', 'tblTempUsageDetail_20' ) start [2025-01-22 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305625', 'tblTempUsageDetail_20' ) end [2025-01-22 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305625', 'tblTempVendorCDR_20' ) start [2025-01-22 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305625', 'tblTempVendorCDR_20' ) end [2025-01-22 14:32:27] Production.INFO: ProcessCDR(1,14305625,1,1,2) [2025-01-22 14:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305625', 'tblTempUsageDetail_20' ) start [2025-01-22 14:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305625', 'tblTempUsageDetail_20' ) end [2025-01-22 14:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:32:32] Production.INFO: ==7117== Releasing lock... [2025-01-22 14:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:32:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:33:05 [end_date_ymd] => 2025-01-22 14:33:05 [RateCDR] => 1 ) [2025-01-22 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:33:05' and `end` < '2025-01-22 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:33:26] Production.INFO: count ==5616 [2025-01-22 14:33:29] Production.ERROR: pbx CDR StartTime 2025-01-22 11:33:05 - End Time 2025-01-22 14:33:05 [2025-01-22 14:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305630', 'tblTempUsageDetail_20' ) start [2025-01-22 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305630', 'tblTempUsageDetail_20' ) end [2025-01-22 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305630', 'tblTempVendorCDR_20' ) start [2025-01-22 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305630', 'tblTempVendorCDR_20' ) end [2025-01-22 14:33:29] Production.INFO: ProcessCDR(1,14305630,1,1,2) [2025-01-22 14:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305630', 'tblTempUsageDetail_20' ) start [2025-01-22 14:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305630', 'tblTempUsageDetail_20' ) end [2025-01-22 14:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:33:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:33:35] Production.INFO: ==7191== Releasing lock... [2025-01-22 14:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:33:35] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:34:06 [end_date_ymd] => 2025-01-22 14:34:06 [RateCDR] => 1 ) [2025-01-22 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:34:06' and `end` < '2025-01-22 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:34:23] Production.INFO: count ==5610 [2025-01-22 14:34:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:34:06 - End Time 2025-01-22 14:34:06 [2025-01-22 14:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305635', 'tblTempUsageDetail_20' ) start [2025-01-22 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305635', 'tblTempUsageDetail_20' ) end [2025-01-22 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305635', 'tblTempVendorCDR_20' ) start [2025-01-22 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305635', 'tblTempVendorCDR_20' ) end [2025-01-22 14:34:25] Production.INFO: ProcessCDR(1,14305635,1,1,2) [2025-01-22 14:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305635', 'tblTempUsageDetail_20' ) start [2025-01-22 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305635', 'tblTempUsageDetail_20' ) end [2025-01-22 14:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:34:30] Production.INFO: ==7268== Releasing lock... [2025-01-22 14:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:34:30] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:35:05 [end_date_ymd] => 2025-01-22 14:35:05 [RateCDR] => 1 ) [2025-01-22 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:35:05' and `end` < '2025-01-22 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:35:19] Production.INFO: count ==5614 [2025-01-22 14:35:21] Production.ERROR: pbx CDR StartTime 2025-01-22 11:35:05 - End Time 2025-01-22 14:35:05 [2025-01-22 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305640', 'tblTempUsageDetail_20' ) start [2025-01-22 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305640', 'tblTempUsageDetail_20' ) end [2025-01-22 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305640', 'tblTempVendorCDR_20' ) start [2025-01-22 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305640', 'tblTempVendorCDR_20' ) end [2025-01-22 14:35:21] Production.INFO: ProcessCDR(1,14305640,1,1,2) [2025-01-22 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305640', 'tblTempUsageDetail_20' ) start [2025-01-22 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305640', 'tblTempUsageDetail_20' ) end [2025-01-22 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:35:26] Production.INFO: ==7358== Releasing lock... [2025-01-22 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:35:26] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:36:06 [end_date_ymd] => 2025-01-22 14:36:06 [RateCDR] => 1 ) [2025-01-22 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:36:06' and `end` < '2025-01-22 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:36:30] Production.INFO: count ==5618 [2025-01-22 14:36:32] Production.ERROR: pbx CDR StartTime 2025-01-22 11:36:06 - End Time 2025-01-22 14:36:06 [2025-01-22 14:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305645', 'tblTempUsageDetail_20' ) start [2025-01-22 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305645', 'tblTempUsageDetail_20' ) end [2025-01-22 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305645', 'tblTempVendorCDR_20' ) start [2025-01-22 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305645', 'tblTempVendorCDR_20' ) end [2025-01-22 14:36:32] Production.INFO: ProcessCDR(1,14305645,1,1,2) [2025-01-22 14:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:36:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:36:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:36:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305645', 'tblTempUsageDetail_20' ) start [2025-01-22 14:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305645', 'tblTempUsageDetail_20' ) end [2025-01-22 14:36:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:36:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:36:37] Production.INFO: ==7434== Releasing lock... [2025-01-22 14:36:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:36:37] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:37:05 [end_date_ymd] => 2025-01-22 14:37:05 [RateCDR] => 1 ) [2025-01-22 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:37:05' and `end` < '2025-01-22 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:37:31] Production.INFO: count ==5617 [2025-01-22 14:37:33] Production.ERROR: pbx CDR StartTime 2025-01-22 11:37:05 - End Time 2025-01-22 14:37:05 [2025-01-22 14:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305650', 'tblTempUsageDetail_20' ) start [2025-01-22 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305650', 'tblTempUsageDetail_20' ) end [2025-01-22 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305650', 'tblTempVendorCDR_20' ) start [2025-01-22 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305650', 'tblTempVendorCDR_20' ) end [2025-01-22 14:37:34] Production.INFO: ProcessCDR(1,14305650,1,1,2) [2025-01-22 14:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305650', 'tblTempUsageDetail_20' ) start [2025-01-22 14:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305650', 'tblTempUsageDetail_20' ) end [2025-01-22 14:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:37:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:37:38] Production.INFO: ==7506== Releasing lock... [2025-01-22 14:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:37:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:38:06 [end_date_ymd] => 2025-01-22 14:38:06 [RateCDR] => 1 ) [2025-01-22 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:38:06' and `end` < '2025-01-22 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:38:28] Production.INFO: count ==5630 [2025-01-22 14:38:31] Production.ERROR: pbx CDR StartTime 2025-01-22 11:38:06 - End Time 2025-01-22 14:38:06 [2025-01-22 14:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305655', 'tblTempUsageDetail_20' ) start [2025-01-22 14:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305655', 'tblTempUsageDetail_20' ) end [2025-01-22 14:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305655', 'tblTempVendorCDR_20' ) start [2025-01-22 14:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305655', 'tblTempVendorCDR_20' ) end [2025-01-22 14:38:31] Production.INFO: ProcessCDR(1,14305655,1,1,2) [2025-01-22 14:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305655', 'tblTempUsageDetail_20' ) start [2025-01-22 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305655', 'tblTempUsageDetail_20' ) end [2025-01-22 14:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:38:35] Production.INFO: ==7620== Releasing lock... [2025-01-22 14:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:38:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:39:05 [end_date_ymd] => 2025-01-22 14:39:05 [RateCDR] => 1 ) [2025-01-22 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:39:05' and `end` < '2025-01-22 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:39:26] Production.INFO: count ==5638 [2025-01-22 14:39:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:39:05 - End Time 2025-01-22 14:39:05 [2025-01-22 14:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305660', 'tblTempUsageDetail_20' ) start [2025-01-22 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305660', 'tblTempUsageDetail_20' ) end [2025-01-22 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305660', 'tblTempVendorCDR_20' ) start [2025-01-22 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305660', 'tblTempVendorCDR_20' ) end [2025-01-22 14:39:28] Production.INFO: ProcessCDR(1,14305660,1,1,2) [2025-01-22 14:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305660', 'tblTempUsageDetail_20' ) start [2025-01-22 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305660', 'tblTempUsageDetail_20' ) end [2025-01-22 14:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:39:33] Production.INFO: ==7694== Releasing lock... [2025-01-22 14:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:39:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:40:06 [end_date_ymd] => 2025-01-22 14:40:06 [RateCDR] => 1 ) [2025-01-22 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:40:06' and `end` < '2025-01-22 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:40:25] Production.INFO: count ==5637 [2025-01-22 14:40:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:40:06 - End Time 2025-01-22 14:40:06 [2025-01-22 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305666', 'tblTempUsageDetail_20' ) start [2025-01-22 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305666', 'tblTempUsageDetail_20' ) end [2025-01-22 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305666', 'tblTempVendorCDR_20' ) start [2025-01-22 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305666', 'tblTempVendorCDR_20' ) end [2025-01-22 14:40:27] Production.INFO: ProcessCDR(1,14305666,1,1,2) [2025-01-22 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305666', 'tblTempUsageDetail_20' ) start [2025-01-22 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305666', 'tblTempUsageDetail_20' ) end [2025-01-22 14:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:40:31] Production.INFO: ==7771== Releasing lock... [2025-01-22 14:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:40:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:41:05 [end_date_ymd] => 2025-01-22 14:41:05 [RateCDR] => 1 ) [2025-01-22 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:41:05' and `end` < '2025-01-22 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:41:25] Production.INFO: count ==5593 [2025-01-22 14:41:27] Production.ERROR: pbx CDR StartTime 2025-01-22 11:41:05 - End Time 2025-01-22 14:41:05 [2025-01-22 14:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305671', 'tblTempUsageDetail_20' ) start [2025-01-22 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305671', 'tblTempUsageDetail_20' ) end [2025-01-22 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305671', 'tblTempVendorCDR_20' ) start [2025-01-22 14:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305671', 'tblTempVendorCDR_20' ) end [2025-01-22 14:41:28] Production.INFO: ProcessCDR(1,14305671,1,1,2) [2025-01-22 14:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305671', 'tblTempUsageDetail_20' ) start [2025-01-22 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305671', 'tblTempUsageDetail_20' ) end [2025-01-22 14:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:41:32] Production.INFO: ==7848== Releasing lock... [2025-01-22 14:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:41:32] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:42:05 [end_date_ymd] => 2025-01-22 14:42:05 [RateCDR] => 1 ) [2025-01-22 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:42:05' and `end` < '2025-01-22 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:42:22] Production.INFO: count ==5600 [2025-01-22 14:42:24] Production.ERROR: pbx CDR StartTime 2025-01-22 11:42:05 - End Time 2025-01-22 14:42:05 [2025-01-22 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305676', 'tblTempUsageDetail_20' ) start [2025-01-22 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305676', 'tblTempUsageDetail_20' ) end [2025-01-22 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305676', 'tblTempVendorCDR_20' ) start [2025-01-22 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305676', 'tblTempVendorCDR_20' ) end [2025-01-22 14:42:24] Production.INFO: ProcessCDR(1,14305676,1,1,2) [2025-01-22 14:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305676', 'tblTempUsageDetail_20' ) start [2025-01-22 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305676', 'tblTempUsageDetail_20' ) end [2025-01-22 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:42:28] Production.INFO: ==7922== Releasing lock... [2025-01-22 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:42:28] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:43:05 [end_date_ymd] => 2025-01-22 14:43:05 [RateCDR] => 1 ) [2025-01-22 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:43:05' and `end` < '2025-01-22 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:43:21] Production.INFO: count ==5600 [2025-01-22 14:43:23] Production.ERROR: pbx CDR StartTime 2025-01-22 11:43:05 - End Time 2025-01-22 14:43:05 [2025-01-22 14:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305681', 'tblTempUsageDetail_20' ) start [2025-01-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305681', 'tblTempUsageDetail_20' ) end [2025-01-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305681', 'tblTempVendorCDR_20' ) start [2025-01-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305681', 'tblTempVendorCDR_20' ) end [2025-01-22 14:43:23] Production.INFO: ProcessCDR(1,14305681,1,1,2) [2025-01-22 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305681', 'tblTempUsageDetail_20' ) start [2025-01-22 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305681', 'tblTempUsageDetail_20' ) end [2025-01-22 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:43:28] Production.INFO: ==8016== Releasing lock... [2025-01-22 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:43:28] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:44:05 [end_date_ymd] => 2025-01-22 14:44:05 [RateCDR] => 1 ) [2025-01-22 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:44:05' and `end` < '2025-01-22 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:44:21] Production.INFO: count ==5581 [2025-01-22 14:44:23] Production.ERROR: pbx CDR StartTime 2025-01-22 11:44:05 - End Time 2025-01-22 14:44:05 [2025-01-22 14:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305686', 'tblTempUsageDetail_20' ) start [2025-01-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305686', 'tblTempUsageDetail_20' ) end [2025-01-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305686', 'tblTempVendorCDR_20' ) start [2025-01-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305686', 'tblTempVendorCDR_20' ) end [2025-01-22 14:44:23] Production.INFO: ProcessCDR(1,14305686,1,1,2) [2025-01-22 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305686', 'tblTempUsageDetail_20' ) start [2025-01-22 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305686', 'tblTempUsageDetail_20' ) end [2025-01-22 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:44:27] Production.INFO: ==8112== Releasing lock... [2025-01-22 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:44:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:45:05 [end_date_ymd] => 2025-01-22 14:45:05 [RateCDR] => 1 ) [2025-01-22 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:45:05' and `end` < '2025-01-22 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:45:24] Production.INFO: count ==5585 [2025-01-22 14:45:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:45:05 - End Time 2025-01-22 14:45:05 [2025-01-22 14:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305691', 'tblTempUsageDetail_20' ) start [2025-01-22 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305691', 'tblTempUsageDetail_20' ) end [2025-01-22 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305691', 'tblTempVendorCDR_20' ) start [2025-01-22 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305691', 'tblTempVendorCDR_20' ) end [2025-01-22 14:45:26] Production.INFO: ProcessCDR(1,14305691,1,1,2) [2025-01-22 14:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305691', 'tblTempUsageDetail_20' ) start [2025-01-22 14:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305691', 'tblTempUsageDetail_20' ) end [2025-01-22 14:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:45:31] Production.INFO: ==8209== Releasing lock... [2025-01-22 14:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:45:31] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:46:05 [end_date_ymd] => 2025-01-22 14:46:05 [RateCDR] => 1 ) [2025-01-22 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:46:05' and `end` < '2025-01-22 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:46:21] Production.INFO: count ==5592 [2025-01-22 14:46:23] Production.ERROR: pbx CDR StartTime 2025-01-22 11:46:05 - End Time 2025-01-22 14:46:05 [2025-01-22 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305696', 'tblTempUsageDetail_20' ) start [2025-01-22 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305696', 'tblTempUsageDetail_20' ) end [2025-01-22 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305696', 'tblTempVendorCDR_20' ) start [2025-01-22 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305696', 'tblTempVendorCDR_20' ) end [2025-01-22 14:46:23] Production.INFO: ProcessCDR(1,14305696,1,1,2) [2025-01-22 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305696', 'tblTempUsageDetail_20' ) start [2025-01-22 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305696', 'tblTempUsageDetail_20' ) end [2025-01-22 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:46:28] Production.INFO: ==8300== Releasing lock... [2025-01-22 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:46:28] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:47:06 [end_date_ymd] => 2025-01-22 14:47:06 [RateCDR] => 1 ) [2025-01-22 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:47:06' and `end` < '2025-01-22 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:47:26] Production.INFO: count ==5592 [2025-01-22 14:47:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:47:06 - End Time 2025-01-22 14:47:06 [2025-01-22 14:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305701', 'tblTempUsageDetail_20' ) start [2025-01-22 14:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305701', 'tblTempUsageDetail_20' ) end [2025-01-22 14:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305701', 'tblTempVendorCDR_20' ) start [2025-01-22 14:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305701', 'tblTempVendorCDR_20' ) end [2025-01-22 14:47:29] Production.INFO: ProcessCDR(1,14305701,1,1,2) [2025-01-22 14:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305701', 'tblTempUsageDetail_20' ) start [2025-01-22 14:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305701', 'tblTempUsageDetail_20' ) end [2025-01-22 14:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:47:33] Production.INFO: ==8402== Releasing lock... [2025-01-22 14:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:47:33] Production.INFO: 70 MB #Memory Used# [2025-01-22 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:48:05 [end_date_ymd] => 2025-01-22 14:48:05 [RateCDR] => 1 ) [2025-01-22 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:48:05' and `end` < '2025-01-22 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:48:29] Production.INFO: count ==5579 [2025-01-22 14:48:31] Production.ERROR: pbx CDR StartTime 2025-01-22 11:48:05 - End Time 2025-01-22 14:48:05 [2025-01-22 14:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305706', 'tblTempUsageDetail_20' ) start [2025-01-22 14:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305706', 'tblTempUsageDetail_20' ) end [2025-01-22 14:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305706', 'tblTempVendorCDR_20' ) start [2025-01-22 14:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305706', 'tblTempVendorCDR_20' ) end [2025-01-22 14:48:31] Production.INFO: ProcessCDR(1,14305706,1,1,2) [2025-01-22 14:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305706', 'tblTempUsageDetail_20' ) start [2025-01-22 14:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305706', 'tblTempUsageDetail_20' ) end [2025-01-22 14:48:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:48:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:48:37] Production.INFO: ==8500== Releasing lock... [2025-01-22 14:48:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:48:37] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:49:05 [end_date_ymd] => 2025-01-22 14:49:05 [RateCDR] => 1 ) [2025-01-22 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:49:05' and `end` < '2025-01-22 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:49:23] Production.INFO: count ==5550 [2025-01-22 14:49:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:49:05 - End Time 2025-01-22 14:49:05 [2025-01-22 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305711', 'tblTempUsageDetail_20' ) start [2025-01-22 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305711', 'tblTempUsageDetail_20' ) end [2025-01-22 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305711', 'tblTempVendorCDR_20' ) start [2025-01-22 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305711', 'tblTempVendorCDR_20' ) end [2025-01-22 14:49:26] Production.INFO: ProcessCDR(1,14305711,1,1,2) [2025-01-22 14:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305711', 'tblTempUsageDetail_20' ) start [2025-01-22 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305711', 'tblTempUsageDetail_20' ) end [2025-01-22 14:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:49:30] Production.INFO: ==8601== Releasing lock... [2025-01-22 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:49:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:50:05 [end_date_ymd] => 2025-01-22 14:50:05 [RateCDR] => 1 ) [2025-01-22 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:50:05' and `end` < '2025-01-22 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:50:22] Production.INFO: count ==5522 [2025-01-22 14:50:24] Production.ERROR: pbx CDR StartTime 2025-01-22 11:50:05 - End Time 2025-01-22 14:50:05 [2025-01-22 14:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305717', 'tblTempUsageDetail_20' ) start [2025-01-22 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305717', 'tblTempUsageDetail_20' ) end [2025-01-22 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305717', 'tblTempVendorCDR_20' ) start [2025-01-22 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305717', 'tblTempVendorCDR_20' ) end [2025-01-22 14:50:24] Production.INFO: ProcessCDR(1,14305717,1,1,2) [2025-01-22 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305717', 'tblTempUsageDetail_20' ) start [2025-01-22 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305717', 'tblTempUsageDetail_20' ) end [2025-01-22 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:50:29] Production.INFO: ==8707== Releasing lock... [2025-01-22 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:50:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:51:05 [end_date_ymd] => 2025-01-22 14:51:05 [RateCDR] => 1 ) [2025-01-22 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:51:05' and `end` < '2025-01-22 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:51:29] Production.INFO: count ==5519 [2025-01-22 14:51:31] Production.ERROR: pbx CDR StartTime 2025-01-22 11:51:05 - End Time 2025-01-22 14:51:05 [2025-01-22 14:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305722', 'tblTempUsageDetail_20' ) start [2025-01-22 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305722', 'tblTempUsageDetail_20' ) end [2025-01-22 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305722', 'tblTempVendorCDR_20' ) start [2025-01-22 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305722', 'tblTempVendorCDR_20' ) end [2025-01-22 14:51:31] Production.INFO: ProcessCDR(1,14305722,1,1,2) [2025-01-22 14:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305722', 'tblTempUsageDetail_20' ) start [2025-01-22 14:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305722', 'tblTempUsageDetail_20' ) end [2025-01-22 14:51:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:51:36] Production.INFO: ==8808== Releasing lock... [2025-01-22 14:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:51:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:52:05 [end_date_ymd] => 2025-01-22 14:52:05 [RateCDR] => 1 ) [2025-01-22 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:52:05' and `end` < '2025-01-22 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:52:24] Production.INFO: count ==5534 [2025-01-22 14:52:26] Production.ERROR: pbx CDR StartTime 2025-01-22 11:52:05 - End Time 2025-01-22 14:52:05 [2025-01-22 14:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305727', 'tblTempUsageDetail_20' ) start [2025-01-22 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305727', 'tblTempUsageDetail_20' ) end [2025-01-22 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305727', 'tblTempVendorCDR_20' ) start [2025-01-22 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305727', 'tblTempVendorCDR_20' ) end [2025-01-22 14:52:27] Production.INFO: ProcessCDR(1,14305727,1,1,2) [2025-01-22 14:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305727', 'tblTempUsageDetail_20' ) start [2025-01-22 14:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305727', 'tblTempUsageDetail_20' ) end [2025-01-22 14:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:52:32] Production.INFO: ==8910== Releasing lock... [2025-01-22 14:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:52:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:53:06 [end_date_ymd] => 2025-01-22 14:53:06 [RateCDR] => 1 ) [2025-01-22 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:53:06' and `end` < '2025-01-22 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:53:32] Production.INFO: count ==5531 [2025-01-22 14:53:34] Production.ERROR: pbx CDR StartTime 2025-01-22 11:53:06 - End Time 2025-01-22 14:53:06 [2025-01-22 14:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305732', 'tblTempUsageDetail_20' ) start [2025-01-22 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305732', 'tblTempUsageDetail_20' ) end [2025-01-22 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305732', 'tblTempVendorCDR_20' ) start [2025-01-22 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305732', 'tblTempVendorCDR_20' ) end [2025-01-22 14:53:34] Production.INFO: ProcessCDR(1,14305732,1,1,2) [2025-01-22 14:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305732', 'tblTempUsageDetail_20' ) start [2025-01-22 14:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305732', 'tblTempUsageDetail_20' ) end [2025-01-22 14:53:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:53:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:53:39] Production.INFO: ==9050== Releasing lock... [2025-01-22 14:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:53:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:54:05 [end_date_ymd] => 2025-01-22 14:54:05 [RateCDR] => 1 ) [2025-01-22 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:54:05' and `end` < '2025-01-22 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:54:26] Production.INFO: count ==5546 [2025-01-22 14:54:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:54:05 - End Time 2025-01-22 14:54:05 [2025-01-22 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305737', 'tblTempUsageDetail_20' ) start [2025-01-22 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305737', 'tblTempUsageDetail_20' ) end [2025-01-22 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305737', 'tblTempVendorCDR_20' ) start [2025-01-22 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305737', 'tblTempVendorCDR_20' ) end [2025-01-22 14:54:28] Production.INFO: ProcessCDR(1,14305737,1,1,2) [2025-01-22 14:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305737', 'tblTempUsageDetail_20' ) start [2025-01-22 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305737', 'tblTempUsageDetail_20' ) end [2025-01-22 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:54:33] Production.INFO: ==9149== Releasing lock... [2025-01-22 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:54:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:55:05 [end_date_ymd] => 2025-01-22 14:55:05 [RateCDR] => 1 ) [2025-01-22 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:55:05' and `end` < '2025-01-22 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:55:23] Production.INFO: count ==5547 [2025-01-22 14:55:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:55:05 - End Time 2025-01-22 14:55:05 [2025-01-22 14:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305742', 'tblTempUsageDetail_20' ) start [2025-01-22 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305742', 'tblTempUsageDetail_20' ) end [2025-01-22 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305742', 'tblTempVendorCDR_20' ) start [2025-01-22 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305742', 'tblTempVendorCDR_20' ) end [2025-01-22 14:55:25] Production.INFO: ProcessCDR(1,14305742,1,1,2) [2025-01-22 14:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305742', 'tblTempUsageDetail_20' ) start [2025-01-22 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305742', 'tblTempUsageDetail_20' ) end [2025-01-22 14:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:55:31] Production.INFO: ==9251== Releasing lock... [2025-01-22 14:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:55:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:56:05 [end_date_ymd] => 2025-01-22 14:56:05 [RateCDR] => 1 ) [2025-01-22 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:56:05' and `end` < '2025-01-22 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:56:26] Production.INFO: count ==5552 [2025-01-22 14:56:28] Production.ERROR: pbx CDR StartTime 2025-01-22 11:56:05 - End Time 2025-01-22 14:56:05 [2025-01-22 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305747', 'tblTempUsageDetail_20' ) start [2025-01-22 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305747', 'tblTempUsageDetail_20' ) end [2025-01-22 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305747', 'tblTempVendorCDR_20' ) start [2025-01-22 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305747', 'tblTempVendorCDR_20' ) end [2025-01-22 14:56:28] Production.INFO: ProcessCDR(1,14305747,1,1,2) [2025-01-22 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305747', 'tblTempUsageDetail_20' ) start [2025-01-22 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305747', 'tblTempUsageDetail_20' ) end [2025-01-22 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:56:33] Production.INFO: ==9348== Releasing lock... [2025-01-22 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:56:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:57:05 [end_date_ymd] => 2025-01-22 14:57:05 [RateCDR] => 1 ) [2025-01-22 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:57:05' and `end` < '2025-01-22 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:57:22] Production.INFO: count ==5569 [2025-01-22 14:57:24] Production.ERROR: pbx CDR StartTime 2025-01-22 11:57:05 - End Time 2025-01-22 14:57:05 [2025-01-22 14:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305752', 'tblTempUsageDetail_20' ) start [2025-01-22 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305752', 'tblTempUsageDetail_20' ) end [2025-01-22 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305752', 'tblTempVendorCDR_20' ) start [2025-01-22 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305752', 'tblTempVendorCDR_20' ) end [2025-01-22 14:57:24] Production.INFO: ProcessCDR(1,14305752,1,1,2) [2025-01-22 14:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305752', 'tblTempUsageDetail_20' ) start [2025-01-22 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305752', 'tblTempUsageDetail_20' ) end [2025-01-22 14:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:57:29] Production.INFO: ==9451== Releasing lock... [2025-01-22 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:57:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:58:05 [end_date_ymd] => 2025-01-22 14:58:05 [RateCDR] => 1 ) [2025-01-22 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:58:05' and `end` < '2025-01-22 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:58:23] Production.INFO: count ==5578 [2025-01-22 14:58:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:58:05 - End Time 2025-01-22 14:58:05 [2025-01-22 14:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305757', 'tblTempUsageDetail_20' ) start [2025-01-22 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305757', 'tblTempUsageDetail_20' ) end [2025-01-22 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305757', 'tblTempVendorCDR_20' ) start [2025-01-22 14:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305757', 'tblTempVendorCDR_20' ) end [2025-01-22 14:58:25] Production.INFO: ProcessCDR(1,14305757,1,1,2) [2025-01-22 14:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305757', 'tblTempUsageDetail_20' ) start [2025-01-22 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305757', 'tblTempUsageDetail_20' ) end [2025-01-22 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:58:30] Production.INFO: ==9546== Releasing lock... [2025-01-22 14:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:58:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 11:59:05 [end_date_ymd] => 2025-01-22 14:59:05 [RateCDR] => 1 ) [2025-01-22 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 11:59:05' and `end` < '2025-01-22 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 14:59:23] Production.INFO: count ==5593 [2025-01-22 14:59:25] Production.ERROR: pbx CDR StartTime 2025-01-22 11:59:05 - End Time 2025-01-22 14:59:05 [2025-01-22 14:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305762', 'tblTempUsageDetail_20' ) start [2025-01-22 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305762', 'tblTempUsageDetail_20' ) end [2025-01-22 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305762', 'tblTempVendorCDR_20' ) start [2025-01-22 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305762', 'tblTempVendorCDR_20' ) end [2025-01-22 14:59:25] Production.INFO: ProcessCDR(1,14305762,1,1,2) [2025-01-22 14:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 14:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305762', 'tblTempUsageDetail_20' ) start [2025-01-22 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305762', 'tblTempUsageDetail_20' ) end [2025-01-22 14:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 14:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 14:59:30] Production.INFO: ==9650== Releasing lock... [2025-01-22 14:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 14:59:30] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:00:06 [end_date_ymd] => 2025-01-22 15:00:06 [RateCDR] => 1 ) [2025-01-22 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:00:06' and `end` < '2025-01-22 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:00:29] Production.INFO: count ==5631 [2025-01-22 15:00:31] Production.ERROR: pbx CDR StartTime 2025-01-22 12:00:06 - End Time 2025-01-22 15:00:06 [2025-01-22 15:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305768', 'tblTempUsageDetail_20' ) start [2025-01-22 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305768', 'tblTempUsageDetail_20' ) end [2025-01-22 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305768', 'tblTempVendorCDR_20' ) start [2025-01-22 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305768', 'tblTempVendorCDR_20' ) end [2025-01-22 15:00:31] Production.INFO: ProcessCDR(1,14305768,1,1,2) [2025-01-22 15:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305768', 'tblTempUsageDetail_20' ) start [2025-01-22 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305768', 'tblTempUsageDetail_20' ) end [2025-01-22 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:00:36] Production.INFO: ==9754== Releasing lock... [2025-01-22 15:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:00:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:01:06 [end_date_ymd] => 2025-01-22 15:01:06 [RateCDR] => 1 ) [2025-01-22 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:01:06' and `end` < '2025-01-22 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:01:28] Production.INFO: count ==5604 [2025-01-22 15:01:30] Production.ERROR: pbx CDR StartTime 2025-01-22 12:01:06 - End Time 2025-01-22 15:01:06 [2025-01-22 15:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305773', 'tblTempUsageDetail_20' ) start [2025-01-22 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305773', 'tblTempUsageDetail_20' ) end [2025-01-22 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305773', 'tblTempVendorCDR_20' ) start [2025-01-22 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305773', 'tblTempVendorCDR_20' ) end [2025-01-22 15:01:30] Production.INFO: ProcessCDR(1,14305773,1,1,2) [2025-01-22 15:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305773', 'tblTempUsageDetail_20' ) start [2025-01-22 15:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305773', 'tblTempUsageDetail_20' ) end [2025-01-22 15:01:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:01:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:01:35] Production.INFO: ==9953== Releasing lock... [2025-01-22 15:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:01:35] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:02:05 [end_date_ymd] => 2025-01-22 15:02:05 [RateCDR] => 1 ) [2025-01-22 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:02:05' and `end` < '2025-01-22 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:02:26] Production.INFO: count ==5604 [2025-01-22 15:02:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:02:05 - End Time 2025-01-22 15:02:05 [2025-01-22 15:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305778', 'tblTempUsageDetail_20' ) start [2025-01-22 15:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305778', 'tblTempUsageDetail_20' ) end [2025-01-22 15:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305778', 'tblTempVendorCDR_20' ) start [2025-01-22 15:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305778', 'tblTempVendorCDR_20' ) end [2025-01-22 15:02:28] Production.INFO: ProcessCDR(1,14305778,1,1,2) [2025-01-22 15:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305778', 'tblTempUsageDetail_20' ) start [2025-01-22 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305778', 'tblTempUsageDetail_20' ) end [2025-01-22 15:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:02:33] Production.INFO: ==10048== Releasing lock... [2025-01-22 15:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:02:33] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:03:06 [end_date_ymd] => 2025-01-22 15:03:06 [RateCDR] => 1 ) [2025-01-22 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:03:06' and `end` < '2025-01-22 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:03:25] Production.INFO: count ==5598 [2025-01-22 15:03:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:03:06 - End Time 2025-01-22 15:03:06 [2025-01-22 15:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305783', 'tblTempUsageDetail_20' ) start [2025-01-22 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305783', 'tblTempUsageDetail_20' ) end [2025-01-22 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305783', 'tblTempVendorCDR_20' ) start [2025-01-22 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305783', 'tblTempVendorCDR_20' ) end [2025-01-22 15:03:28] Production.INFO: ProcessCDR(1,14305783,1,1,2) [2025-01-22 15:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305783', 'tblTempUsageDetail_20' ) start [2025-01-22 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305783', 'tblTempUsageDetail_20' ) end [2025-01-22 15:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:03:33] Production.INFO: ==10149== Releasing lock... [2025-01-22 15:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:03:33] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:04:05 [end_date_ymd] => 2025-01-22 15:04:05 [RateCDR] => 1 ) [2025-01-22 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:04:05' and `end` < '2025-01-22 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:04:24] Production.INFO: count ==5599 [2025-01-22 15:04:27] Production.ERROR: pbx CDR StartTime 2025-01-22 12:04:05 - End Time 2025-01-22 15:04:05 [2025-01-22 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305788', 'tblTempUsageDetail_20' ) start [2025-01-22 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305788', 'tblTempUsageDetail_20' ) end [2025-01-22 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305788', 'tblTempVendorCDR_20' ) start [2025-01-22 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305788', 'tblTempVendorCDR_20' ) end [2025-01-22 15:04:27] Production.INFO: ProcessCDR(1,14305788,1,1,2) [2025-01-22 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305788', 'tblTempUsageDetail_20' ) start [2025-01-22 15:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305788', 'tblTempUsageDetail_20' ) end [2025-01-22 15:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:04:33] Production.INFO: ==10248== Releasing lock... [2025-01-22 15:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:04:33] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:05:05 [end_date_ymd] => 2025-01-22 15:05:05 [RateCDR] => 1 ) [2025-01-22 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:05:05' and `end` < '2025-01-22 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:05:30] Production.INFO: count ==5612 [2025-01-22 15:05:32] Production.ERROR: pbx CDR StartTime 2025-01-22 12:05:05 - End Time 2025-01-22 15:05:05 [2025-01-22 15:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305793', 'tblTempUsageDetail_20' ) start [2025-01-22 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305793', 'tblTempUsageDetail_20' ) end [2025-01-22 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305793', 'tblTempVendorCDR_20' ) start [2025-01-22 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305793', 'tblTempVendorCDR_20' ) end [2025-01-22 15:05:32] Production.INFO: ProcessCDR(1,14305793,1,1,2) [2025-01-22 15:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305793', 'tblTempUsageDetail_20' ) start [2025-01-22 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305793', 'tblTempUsageDetail_20' ) end [2025-01-22 15:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:05:37] Production.INFO: ==10427== Releasing lock... [2025-01-22 15:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:05:37] Production.INFO: 70 MB #Memory Used# [2025-01-22 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:06:06 [end_date_ymd] => 2025-01-22 15:06:06 [RateCDR] => 1 ) [2025-01-22 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:06:06' and `end` < '2025-01-22 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:06:33] Production.INFO: count ==5630 [2025-01-22 15:06:36] Production.ERROR: pbx CDR StartTime 2025-01-22 12:06:06 - End Time 2025-01-22 15:06:06 [2025-01-22 15:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305798', 'tblTempUsageDetail_20' ) start [2025-01-22 15:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305798', 'tblTempUsageDetail_20' ) end [2025-01-22 15:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305798', 'tblTempVendorCDR_20' ) start [2025-01-22 15:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305798', 'tblTempVendorCDR_20' ) end [2025-01-22 15:06:36] Production.INFO: ProcessCDR(1,14305798,1,1,2) [2025-01-22 15:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305798', 'tblTempUsageDetail_20' ) start [2025-01-22 15:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305798', 'tblTempUsageDetail_20' ) end [2025-01-22 15:06:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:06:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:06:42] Production.INFO: ==10533== Releasing lock... [2025-01-22 15:06:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:06:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:07:05 [end_date_ymd] => 2025-01-22 15:07:05 [RateCDR] => 1 ) [2025-01-22 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:07:05' and `end` < '2025-01-22 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:07:37] Production.INFO: count ==5627 [2025-01-22 15:07:39] Production.ERROR: pbx CDR StartTime 2025-01-22 12:07:05 - End Time 2025-01-22 15:07:05 [2025-01-22 15:07:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305803', 'tblTempUsageDetail_20' ) start [2025-01-22 15:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305803', 'tblTempUsageDetail_20' ) end [2025-01-22 15:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305803', 'tblTempVendorCDR_20' ) start [2025-01-22 15:07:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305803', 'tblTempVendorCDR_20' ) end [2025-01-22 15:07:39] Production.INFO: ProcessCDR(1,14305803,1,1,2) [2025-01-22 15:07:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:07:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:07:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:07:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:07:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305803', 'tblTempUsageDetail_20' ) start [2025-01-22 15:07:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305803', 'tblTempUsageDetail_20' ) end [2025-01-22 15:07:44] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:07:44] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:07:44] Production.INFO: ==10627== Releasing lock... [2025-01-22 15:07:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:07:44] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:08:05 [end_date_ymd] => 2025-01-22 15:08:05 [RateCDR] => 1 ) [2025-01-22 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:08:05' and `end` < '2025-01-22 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:08:35] Production.INFO: count ==5625 [2025-01-22 15:08:37] Production.ERROR: pbx CDR StartTime 2025-01-22 12:08:05 - End Time 2025-01-22 15:08:05 [2025-01-22 15:08:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305808', 'tblTempUsageDetail_20' ) start [2025-01-22 15:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305808', 'tblTempUsageDetail_20' ) end [2025-01-22 15:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305808', 'tblTempVendorCDR_20' ) start [2025-01-22 15:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305808', 'tblTempVendorCDR_20' ) end [2025-01-22 15:08:37] Production.INFO: ProcessCDR(1,14305808,1,1,2) [2025-01-22 15:08:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:08:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:08:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:08:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305808', 'tblTempUsageDetail_20' ) start [2025-01-22 15:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305808', 'tblTempUsageDetail_20' ) end [2025-01-22 15:08:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:08:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:08:42] Production.INFO: ==10780== Releasing lock... [2025-01-22 15:08:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:08:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:09:05 [end_date_ymd] => 2025-01-22 15:09:05 [RateCDR] => 1 ) [2025-01-22 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:09:05' and `end` < '2025-01-22 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:09:28] Production.INFO: count ==5643 [2025-01-22 15:09:31] Production.ERROR: pbx CDR StartTime 2025-01-22 12:09:05 - End Time 2025-01-22 15:09:05 [2025-01-22 15:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305813', 'tblTempUsageDetail_20' ) start [2025-01-22 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305813', 'tblTempUsageDetail_20' ) end [2025-01-22 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305813', 'tblTempVendorCDR_20' ) start [2025-01-22 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305813', 'tblTempVendorCDR_20' ) end [2025-01-22 15:09:31] Production.INFO: ProcessCDR(1,14305813,1,1,2) [2025-01-22 15:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305813', 'tblTempUsageDetail_20' ) start [2025-01-22 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305813', 'tblTempUsageDetail_20' ) end [2025-01-22 15:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:09:36] Production.INFO: ==10895== Releasing lock... [2025-01-22 15:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:09:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:10:07 [end_date_ymd] => 2025-01-22 15:10:07 [RateCDR] => 1 ) [2025-01-22 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:10:07' and `end` < '2025-01-22 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:10:37] Production.INFO: count ==5655 [2025-01-22 15:10:39] Production.ERROR: pbx CDR StartTime 2025-01-22 12:10:07 - End Time 2025-01-22 15:10:07 [2025-01-22 15:10:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305819', 'tblTempUsageDetail_20' ) start [2025-01-22 15:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305819', 'tblTempUsageDetail_20' ) end [2025-01-22 15:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305819', 'tblTempVendorCDR_20' ) start [2025-01-22 15:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305819', 'tblTempVendorCDR_20' ) end [2025-01-22 15:10:39] Production.INFO: ProcessCDR(1,14305819,1,1,2) [2025-01-22 15:10:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305819', 'tblTempUsageDetail_20' ) start [2025-01-22 15:10:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305819', 'tblTempUsageDetail_20' ) end [2025-01-22 15:10:45] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:10:45] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:10:45] Production.INFO: ==10978== Releasing lock... [2025-01-22 15:10:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:10:45] Production.INFO: 70.5 MB #Memory Used# [2025-01-22 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:11:04 [end_date_ymd] => 2025-01-22 15:11:04 [RateCDR] => 1 ) [2025-01-22 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:11:04' and `end` < '2025-01-22 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:11:25] Production.INFO: count ==5692 [2025-01-22 15:11:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:11:04 - End Time 2025-01-22 15:11:04 [2025-01-22 15:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305824', 'tblTempUsageDetail_20' ) start [2025-01-22 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305824', 'tblTempUsageDetail_20' ) end [2025-01-22 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305824', 'tblTempVendorCDR_20' ) start [2025-01-22 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305824', 'tblTempVendorCDR_20' ) end [2025-01-22 15:11:28] Production.INFO: ProcessCDR(1,14305824,1,1,2) [2025-01-22 15:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305824', 'tblTempUsageDetail_20' ) start [2025-01-22 15:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305824', 'tblTempUsageDetail_20' ) end [2025-01-22 15:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:11:32] Production.INFO: ==11056== Releasing lock... [2025-01-22 15:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:11:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:12:05 [end_date_ymd] => 2025-01-22 15:12:05 [RateCDR] => 1 ) [2025-01-22 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:12:05' and `end` < '2025-01-22 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:12:26] Production.INFO: count ==5693 [2025-01-22 15:12:29] Production.ERROR: pbx CDR StartTime 2025-01-22 12:12:05 - End Time 2025-01-22 15:12:05 [2025-01-22 15:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305829', 'tblTempUsageDetail_20' ) start [2025-01-22 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305829', 'tblTempUsageDetail_20' ) end [2025-01-22 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305829', 'tblTempVendorCDR_20' ) start [2025-01-22 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305829', 'tblTempVendorCDR_20' ) end [2025-01-22 15:12:29] Production.INFO: ProcessCDR(1,14305829,1,1,2) [2025-01-22 15:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305829', 'tblTempUsageDetail_20' ) start [2025-01-22 15:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305829', 'tblTempUsageDetail_20' ) end [2025-01-22 15:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:12:33] Production.INFO: ==11211== Releasing lock... [2025-01-22 15:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:12:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:13:05 [end_date_ymd] => 2025-01-22 15:13:05 [RateCDR] => 1 ) [2025-01-22 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:13:05' and `end` < '2025-01-22 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:13:26] Production.INFO: count ==5691 [2025-01-22 15:13:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:13:05 - End Time 2025-01-22 15:13:05 [2025-01-22 15:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305834', 'tblTempUsageDetail_20' ) start [2025-01-22 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305834', 'tblTempUsageDetail_20' ) end [2025-01-22 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305834', 'tblTempVendorCDR_20' ) start [2025-01-22 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305834', 'tblTempVendorCDR_20' ) end [2025-01-22 15:13:28] Production.INFO: ProcessCDR(1,14305834,1,1,2) [2025-01-22 15:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305834', 'tblTempUsageDetail_20' ) start [2025-01-22 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305834', 'tblTempUsageDetail_20' ) end [2025-01-22 15:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:13:32] Production.INFO: ==11290== Releasing lock... [2025-01-22 15:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:13:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:14:06 [end_date_ymd] => 2025-01-22 15:14:06 [RateCDR] => 1 ) [2025-01-22 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:14:06' and `end` < '2025-01-22 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:14:24] Production.INFO: count ==5688 [2025-01-22 15:14:26] Production.ERROR: pbx CDR StartTime 2025-01-22 12:14:06 - End Time 2025-01-22 15:14:06 [2025-01-22 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305839', 'tblTempUsageDetail_20' ) start [2025-01-22 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305839', 'tblTempUsageDetail_20' ) end [2025-01-22 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305839', 'tblTempVendorCDR_20' ) start [2025-01-22 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305839', 'tblTempVendorCDR_20' ) end [2025-01-22 15:14:27] Production.INFO: ProcessCDR(1,14305839,1,1,2) [2025-01-22 15:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305839', 'tblTempUsageDetail_20' ) start [2025-01-22 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305839', 'tblTempUsageDetail_20' ) end [2025-01-22 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:14:31] Production.INFO: ==11368== Releasing lock... [2025-01-22 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:14:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:15:05 [end_date_ymd] => 2025-01-22 15:15:05 [RateCDR] => 1 ) [2025-01-22 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:15:05' and `end` < '2025-01-22 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:15:34] Production.INFO: count ==5704 [2025-01-22 15:15:36] Production.ERROR: pbx CDR StartTime 2025-01-22 12:15:05 - End Time 2025-01-22 15:15:05 [2025-01-22 15:15:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305844', 'tblTempUsageDetail_20' ) start [2025-01-22 15:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305844', 'tblTempUsageDetail_20' ) end [2025-01-22 15:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305844', 'tblTempVendorCDR_20' ) start [2025-01-22 15:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305844', 'tblTempVendorCDR_20' ) end [2025-01-22 15:15:37] Production.INFO: ProcessCDR(1,14305844,1,1,2) [2025-01-22 15:15:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:15:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:15:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:15:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:15:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305844', 'tblTempUsageDetail_20' ) start [2025-01-22 15:15:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305844', 'tblTempUsageDetail_20' ) end [2025-01-22 15:15:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:15:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:15:42] Production.INFO: ==11517== Releasing lock... [2025-01-22 15:15:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:15:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:16:06 [end_date_ymd] => 2025-01-22 15:16:06 [RateCDR] => 1 ) [2025-01-22 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:16:06' and `end` < '2025-01-22 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:16:30] Production.INFO: count ==5722 [2025-01-22 15:16:32] Production.ERROR: pbx CDR StartTime 2025-01-22 12:16:06 - End Time 2025-01-22 15:16:06 [2025-01-22 15:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305849', 'tblTempUsageDetail_20' ) start [2025-01-22 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305849', 'tblTempUsageDetail_20' ) end [2025-01-22 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305849', 'tblTempVendorCDR_20' ) start [2025-01-22 15:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305849', 'tblTempVendorCDR_20' ) end [2025-01-22 15:16:32] Production.INFO: ProcessCDR(1,14305849,1,1,2) [2025-01-22 15:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305849', 'tblTempUsageDetail_20' ) start [2025-01-22 15:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305849', 'tblTempUsageDetail_20' ) end [2025-01-22 15:16:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:16:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:16:38] Production.INFO: ==11596== Releasing lock... [2025-01-22 15:16:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:16:38] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:17:05 [end_date_ymd] => 2025-01-22 15:17:05 [RateCDR] => 1 ) [2025-01-22 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:17:05' and `end` < '2025-01-22 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:17:28] Production.INFO: count ==5724 [2025-01-22 15:17:30] Production.ERROR: pbx CDR StartTime 2025-01-22 12:17:05 - End Time 2025-01-22 15:17:05 [2025-01-22 15:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305854', 'tblTempUsageDetail_20' ) start [2025-01-22 15:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305854', 'tblTempUsageDetail_20' ) end [2025-01-22 15:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305854', 'tblTempVendorCDR_20' ) start [2025-01-22 15:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305854', 'tblTempVendorCDR_20' ) end [2025-01-22 15:17:30] Production.INFO: ProcessCDR(1,14305854,1,1,2) [2025-01-22 15:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305854', 'tblTempUsageDetail_20' ) start [2025-01-22 15:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305854', 'tblTempUsageDetail_20' ) end [2025-01-22 15:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:17:35] Production.INFO: ==11671== Releasing lock... [2025-01-22 15:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:17:35] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:18:05 [end_date_ymd] => 2025-01-22 15:18:05 [RateCDR] => 1 ) [2025-01-22 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:18:05' and `end` < '2025-01-22 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:18:26] Production.INFO: count ==5711 [2025-01-22 15:18:29] Production.ERROR: pbx CDR StartTime 2025-01-22 12:18:05 - End Time 2025-01-22 15:18:05 [2025-01-22 15:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305859', 'tblTempUsageDetail_20' ) start [2025-01-22 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305859', 'tblTempUsageDetail_20' ) end [2025-01-22 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305859', 'tblTempVendorCDR_20' ) start [2025-01-22 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305859', 'tblTempVendorCDR_20' ) end [2025-01-22 15:18:29] Production.INFO: ProcessCDR(1,14305859,1,1,2) [2025-01-22 15:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305859', 'tblTempUsageDetail_20' ) start [2025-01-22 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305859', 'tblTempUsageDetail_20' ) end [2025-01-22 15:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:18:33] Production.INFO: ==11752== Releasing lock... [2025-01-22 15:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:18:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:19:05 [end_date_ymd] => 2025-01-22 15:19:05 [RateCDR] => 1 ) [2025-01-22 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:19:05' and `end` < '2025-01-22 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:19:27] Production.INFO: count ==5717 [2025-01-22 15:19:29] Production.ERROR: pbx CDR StartTime 2025-01-22 12:19:05 - End Time 2025-01-22 15:19:05 [2025-01-22 15:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305864', 'tblTempUsageDetail_20' ) start [2025-01-22 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305864', 'tblTempUsageDetail_20' ) end [2025-01-22 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305864', 'tblTempVendorCDR_20' ) start [2025-01-22 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305864', 'tblTempVendorCDR_20' ) end [2025-01-22 15:19:29] Production.INFO: ProcessCDR(1,14305864,1,1,2) [2025-01-22 15:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305864', 'tblTempUsageDetail_20' ) start [2025-01-22 15:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305864', 'tblTempUsageDetail_20' ) end [2025-01-22 15:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:19:34] Production.INFO: ==11829== Releasing lock... [2025-01-22 15:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:19:34] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:20:06 [end_date_ymd] => 2025-01-22 15:20:06 [RateCDR] => 1 ) [2025-01-22 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:20:06' and `end` < '2025-01-22 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:20:35] Production.INFO: count ==5719 [2025-01-22 15:20:37] Production.ERROR: pbx CDR StartTime 2025-01-22 12:20:06 - End Time 2025-01-22 15:20:06 [2025-01-22 15:20:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305869', 'tblTempUsageDetail_20' ) start [2025-01-22 15:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305869', 'tblTempUsageDetail_20' ) end [2025-01-22 15:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305869', 'tblTempVendorCDR_20' ) start [2025-01-22 15:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305869', 'tblTempVendorCDR_20' ) end [2025-01-22 15:20:38] Production.INFO: ProcessCDR(1,14305869,1,1,2) [2025-01-22 15:20:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:20:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:20:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:20:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305869', 'tblTempUsageDetail_20' ) start [2025-01-22 15:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305869', 'tblTempUsageDetail_20' ) end [2025-01-22 15:20:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:20:42] Production.INFO: ==11912== Releasing lock... [2025-01-22 15:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:20:42] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:21:05 [end_date_ymd] => 2025-01-22 15:21:05 [RateCDR] => 1 ) [2025-01-22 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:21:05' and `end` < '2025-01-22 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:21:23] Production.INFO: count ==5698 [2025-01-22 15:21:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:21:05 - End Time 2025-01-22 15:21:05 [2025-01-22 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305875', 'tblTempUsageDetail_20' ) start [2025-01-22 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305875', 'tblTempUsageDetail_20' ) end [2025-01-22 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305875', 'tblTempVendorCDR_20' ) start [2025-01-22 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305875', 'tblTempVendorCDR_20' ) end [2025-01-22 15:21:25] Production.INFO: ProcessCDR(1,14305875,1,1,2) [2025-01-22 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305875', 'tblTempUsageDetail_20' ) start [2025-01-22 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305875', 'tblTempUsageDetail_20' ) end [2025-01-22 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:21:30] Production.INFO: ==11995== Releasing lock... [2025-01-22 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:21:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:22:05 [end_date_ymd] => 2025-01-22 15:22:05 [RateCDR] => 1 ) [2025-01-22 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:22:05' and `end` < '2025-01-22 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:22:24] Production.INFO: count ==5690 [2025-01-22 15:22:26] Production.ERROR: pbx CDR StartTime 2025-01-22 12:22:05 - End Time 2025-01-22 15:22:05 [2025-01-22 15:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305880', 'tblTempUsageDetail_20' ) start [2025-01-22 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305880', 'tblTempUsageDetail_20' ) end [2025-01-22 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305880', 'tblTempVendorCDR_20' ) start [2025-01-22 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305880', 'tblTempVendorCDR_20' ) end [2025-01-22 15:22:27] Production.INFO: ProcessCDR(1,14305880,1,1,2) [2025-01-22 15:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305880', 'tblTempUsageDetail_20' ) start [2025-01-22 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305880', 'tblTempUsageDetail_20' ) end [2025-01-22 15:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:22:31] Production.INFO: ==12069== Releasing lock... [2025-01-22 15:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:22:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:23:05 [end_date_ymd] => 2025-01-22 15:23:05 [RateCDR] => 1 ) [2025-01-22 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:23:05' and `end` < '2025-01-22 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:23:23] Production.INFO: count ==5693 [2025-01-22 15:23:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:23:05 - End Time 2025-01-22 15:23:05 [2025-01-22 15:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305885', 'tblTempUsageDetail_20' ) start [2025-01-22 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305885', 'tblTempUsageDetail_20' ) end [2025-01-22 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305885', 'tblTempVendorCDR_20' ) start [2025-01-22 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305885', 'tblTempVendorCDR_20' ) end [2025-01-22 15:23:26] Production.INFO: ProcessCDR(1,14305885,1,1,2) [2025-01-22 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305885', 'tblTempUsageDetail_20' ) start [2025-01-22 15:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305885', 'tblTempUsageDetail_20' ) end [2025-01-22 15:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:23:30] Production.INFO: ==12153== Releasing lock... [2025-01-22 15:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:23:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:24:05 [end_date_ymd] => 2025-01-22 15:24:05 [RateCDR] => 1 ) [2025-01-22 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:24:05' and `end` < '2025-01-22 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:24:23] Production.INFO: count ==5670 [2025-01-22 15:24:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:24:05 - End Time 2025-01-22 15:24:05 [2025-01-22 15:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305890', 'tblTempUsageDetail_20' ) start [2025-01-22 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305890', 'tblTempUsageDetail_20' ) end [2025-01-22 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305890', 'tblTempVendorCDR_20' ) start [2025-01-22 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305890', 'tblTempVendorCDR_20' ) end [2025-01-22 15:24:25] Production.INFO: ProcessCDR(1,14305890,1,1,2) [2025-01-22 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305890', 'tblTempUsageDetail_20' ) start [2025-01-22 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305890', 'tblTempUsageDetail_20' ) end [2025-01-22 15:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:24:30] Production.INFO: ==12286== Releasing lock... [2025-01-22 15:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:24:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-22 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:25:05 [end_date_ymd] => 2025-01-22 15:25:05 [RateCDR] => 1 ) [2025-01-22 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:25:05' and `end` < '2025-01-22 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:25:26] Production.INFO: count ==5707 [2025-01-22 15:25:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:25:05 - End Time 2025-01-22 15:25:05 [2025-01-22 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305895', 'tblTempUsageDetail_20' ) start [2025-01-22 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305895', 'tblTempUsageDetail_20' ) end [2025-01-22 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305895', 'tblTempVendorCDR_20' ) start [2025-01-22 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305895', 'tblTempVendorCDR_20' ) end [2025-01-22 15:25:28] Production.INFO: ProcessCDR(1,14305895,1,1,2) [2025-01-22 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305895', 'tblTempUsageDetail_20' ) start [2025-01-22 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305895', 'tblTempUsageDetail_20' ) end [2025-01-22 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:25:33] Production.INFO: ==12372== Releasing lock... [2025-01-22 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:25:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:26:06 [end_date_ymd] => 2025-01-22 15:26:06 [RateCDR] => 1 ) [2025-01-22 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:26:06' and `end` < '2025-01-22 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:26:32] Production.INFO: count ==5705 [2025-01-22 15:26:34] Production.ERROR: pbx CDR StartTime 2025-01-22 12:26:06 - End Time 2025-01-22 15:26:06 [2025-01-22 15:26:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305900', 'tblTempUsageDetail_20' ) start [2025-01-22 15:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305900', 'tblTempUsageDetail_20' ) end [2025-01-22 15:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305900', 'tblTempVendorCDR_20' ) start [2025-01-22 15:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305900', 'tblTempVendorCDR_20' ) end [2025-01-22 15:26:35] Production.INFO: ProcessCDR(1,14305900,1,1,2) [2025-01-22 15:26:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:26:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:26:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:26:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305900', 'tblTempUsageDetail_20' ) start [2025-01-22 15:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305900', 'tblTempUsageDetail_20' ) end [2025-01-22 15:26:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:26:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:26:39] Production.INFO: ==12462== Releasing lock... [2025-01-22 15:26:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:26:39] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:27:05 [end_date_ymd] => 2025-01-22 15:27:05 [RateCDR] => 1 ) [2025-01-22 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:27:05' and `end` < '2025-01-22 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:27:34] Production.INFO: count ==5703 [2025-01-22 15:27:37] Production.ERROR: pbx CDR StartTime 2025-01-22 12:27:05 - End Time 2025-01-22 15:27:05 [2025-01-22 15:27:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305905', 'tblTempUsageDetail_20' ) start [2025-01-22 15:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305905', 'tblTempUsageDetail_20' ) end [2025-01-22 15:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305905', 'tblTempVendorCDR_20' ) start [2025-01-22 15:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305905', 'tblTempVendorCDR_20' ) end [2025-01-22 15:27:37] Production.INFO: ProcessCDR(1,14305905,1,1,2) [2025-01-22 15:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:27:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:27:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:27:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305905', 'tblTempUsageDetail_20' ) start [2025-01-22 15:27:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305905', 'tblTempUsageDetail_20' ) end [2025-01-22 15:27:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:27:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:27:42] Production.INFO: ==12551== Releasing lock... [2025-01-22 15:27:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:27:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:28:05 [end_date_ymd] => 2025-01-22 15:28:05 [RateCDR] => 1 ) [2025-01-22 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:28:05' and `end` < '2025-01-22 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:28:23] Production.INFO: count ==5718 [2025-01-22 15:28:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:28:05 - End Time 2025-01-22 15:28:05 [2025-01-22 15:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305910', 'tblTempUsageDetail_20' ) start [2025-01-22 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305910', 'tblTempUsageDetail_20' ) end [2025-01-22 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305910', 'tblTempVendorCDR_20' ) start [2025-01-22 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305910', 'tblTempVendorCDR_20' ) end [2025-01-22 15:28:25] Production.INFO: ProcessCDR(1,14305910,1,1,2) [2025-01-22 15:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305910', 'tblTempUsageDetail_20' ) start [2025-01-22 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305910', 'tblTempUsageDetail_20' ) end [2025-01-22 15:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:28:30] Production.INFO: ==12640== Releasing lock... [2025-01-22 15:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:28:30] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:29:05 [end_date_ymd] => 2025-01-22 15:29:05 [RateCDR] => 1 ) [2025-01-22 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:29:05' and `end` < '2025-01-22 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:29:22] Production.INFO: count ==5731 [2025-01-22 15:29:24] Production.ERROR: pbx CDR StartTime 2025-01-22 12:29:05 - End Time 2025-01-22 15:29:05 [2025-01-22 15:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305915', 'tblTempUsageDetail_20' ) start [2025-01-22 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305915', 'tblTempUsageDetail_20' ) end [2025-01-22 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305915', 'tblTempVendorCDR_20' ) start [2025-01-22 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305915', 'tblTempVendorCDR_20' ) end [2025-01-22 15:29:24] Production.INFO: ProcessCDR(1,14305915,1,1,2) [2025-01-22 15:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305915', 'tblTempUsageDetail_20' ) start [2025-01-22 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305915', 'tblTempUsageDetail_20' ) end [2025-01-22 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:29:29] Production.INFO: ==12724== Releasing lock... [2025-01-22 15:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:29:29] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:30:06 [end_date_ymd] => 2025-01-22 15:30:06 [RateCDR] => 1 ) [2025-01-22 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:30:06' and `end` < '2025-01-22 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:30:25] Production.INFO: count ==5733 [2025-01-22 15:30:27] Production.ERROR: pbx CDR StartTime 2025-01-22 12:30:06 - End Time 2025-01-22 15:30:06 [2025-01-22 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305921', 'tblTempUsageDetail_20' ) start [2025-01-22 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305921', 'tblTempUsageDetail_20' ) end [2025-01-22 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305921', 'tblTempVendorCDR_20' ) start [2025-01-22 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305921', 'tblTempVendorCDR_20' ) end [2025-01-22 15:30:27] Production.INFO: ProcessCDR(1,14305921,1,1,2) [2025-01-22 15:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305921', 'tblTempUsageDetail_20' ) start [2025-01-22 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305921', 'tblTempUsageDetail_20' ) end [2025-01-22 15:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:30:32] Production.INFO: ==12816== Releasing lock... [2025-01-22 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:30:32] Production.INFO: 71 MB #Memory Used# [2025-01-22 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:31:06 [end_date_ymd] => 2025-01-22 15:31:06 [RateCDR] => 1 ) [2025-01-22 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:31:06' and `end` < '2025-01-22 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:31:22] Production.INFO: count ==5777 [2025-01-22 15:31:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:31:06 - End Time 2025-01-22 15:31:06 [2025-01-22 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305926', 'tblTempUsageDetail_20' ) start [2025-01-22 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305926', 'tblTempUsageDetail_20' ) end [2025-01-22 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305926', 'tblTempVendorCDR_20' ) start [2025-01-22 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305926', 'tblTempVendorCDR_20' ) end [2025-01-22 15:31:25] Production.INFO: ProcessCDR(1,14305926,1,1,2) [2025-01-22 15:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305926', 'tblTempUsageDetail_20' ) start [2025-01-22 15:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305926', 'tblTempUsageDetail_20' ) end [2025-01-22 15:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:31:30] Production.INFO: ==12906== Releasing lock... [2025-01-22 15:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:31:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:32:05 [end_date_ymd] => 2025-01-22 15:32:05 [RateCDR] => 1 ) [2025-01-22 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:32:05' and `end` < '2025-01-22 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:32:19] Production.INFO: count ==5767 [2025-01-22 15:32:21] Production.ERROR: pbx CDR StartTime 2025-01-22 12:32:05 - End Time 2025-01-22 15:32:05 [2025-01-22 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305931', 'tblTempUsageDetail_20' ) start [2025-01-22 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305931', 'tblTempUsageDetail_20' ) end [2025-01-22 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305931', 'tblTempVendorCDR_20' ) start [2025-01-22 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305931', 'tblTempVendorCDR_20' ) end [2025-01-22 15:32:21] Production.INFO: ProcessCDR(1,14305931,1,1,2) [2025-01-22 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305931', 'tblTempUsageDetail_20' ) start [2025-01-22 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305931', 'tblTempUsageDetail_20' ) end [2025-01-22 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:32:26] Production.INFO: ==12980== Releasing lock... [2025-01-22 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:32:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:33:05 [end_date_ymd] => 2025-01-22 15:33:05 [RateCDR] => 1 ) [2025-01-22 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:33:05' and `end` < '2025-01-22 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:33:20] Production.INFO: count ==5762 [2025-01-22 15:33:22] Production.ERROR: pbx CDR StartTime 2025-01-22 12:33:05 - End Time 2025-01-22 15:33:05 [2025-01-22 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305936', 'tblTempUsageDetail_20' ) start [2025-01-22 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305936', 'tblTempUsageDetail_20' ) end [2025-01-22 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305936', 'tblTempVendorCDR_20' ) start [2025-01-22 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305936', 'tblTempVendorCDR_20' ) end [2025-01-22 15:33:23] Production.INFO: ProcessCDR(1,14305936,1,1,2) [2025-01-22 15:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305936', 'tblTempUsageDetail_20' ) start [2025-01-22 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305936', 'tblTempUsageDetail_20' ) end [2025-01-22 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:33:27] Production.INFO: ==13059== Releasing lock... [2025-01-22 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:33:27] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:34:05 [end_date_ymd] => 2025-01-22 15:34:05 [RateCDR] => 1 ) [2025-01-22 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:34:05' and `end` < '2025-01-22 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:34:37] Production.INFO: count ==5765 [2025-01-22 15:34:39] Production.ERROR: pbx CDR StartTime 2025-01-22 12:34:05 - End Time 2025-01-22 15:34:05 [2025-01-22 15:34:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:34:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305941', 'tblTempUsageDetail_20' ) start [2025-01-22 15:34:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305941', 'tblTempUsageDetail_20' ) end [2025-01-22 15:34:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305941', 'tblTempVendorCDR_20' ) start [2025-01-22 15:34:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305941', 'tblTempVendorCDR_20' ) end [2025-01-22 15:34:40] Production.INFO: ProcessCDR(1,14305941,1,1,2) [2025-01-22 15:34:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:34:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:34:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:34:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:34:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305941', 'tblTempUsageDetail_20' ) start [2025-01-22 15:34:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305941', 'tblTempUsageDetail_20' ) end [2025-01-22 15:34:45] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:34:45] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:34:45] Production.INFO: ==13132== Releasing lock... [2025-01-22 15:34:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:34:45] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:35:05 [end_date_ymd] => 2025-01-22 15:35:05 [RateCDR] => 1 ) [2025-01-22 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:35:05' and `end` < '2025-01-22 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:35:30] Production.INFO: count ==5796 [2025-01-22 15:35:32] Production.ERROR: pbx CDR StartTime 2025-01-22 12:35:05 - End Time 2025-01-22 15:35:05 [2025-01-22 15:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305946', 'tblTempUsageDetail_20' ) start [2025-01-22 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305946', 'tblTempUsageDetail_20' ) end [2025-01-22 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305946', 'tblTempVendorCDR_20' ) start [2025-01-22 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305946', 'tblTempVendorCDR_20' ) end [2025-01-22 15:35:33] Production.INFO: ProcessCDR(1,14305946,1,1,2) [2025-01-22 15:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305946', 'tblTempUsageDetail_20' ) start [2025-01-22 15:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305946', 'tblTempUsageDetail_20' ) end [2025-01-22 15:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:35:37] Production.INFO: ==13217== Releasing lock... [2025-01-22 15:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:35:37] Production.INFO: 71.5 MB #Memory Used# [2025-01-22 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:36:06 [end_date_ymd] => 2025-01-22 15:36:06 [RateCDR] => 1 ) [2025-01-22 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:36:06' and `end` < '2025-01-22 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:36:24] Production.INFO: count ==5795 [2025-01-22 15:36:26] Production.ERROR: pbx CDR StartTime 2025-01-22 12:36:06 - End Time 2025-01-22 15:36:06 [2025-01-22 15:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305951', 'tblTempUsageDetail_20' ) start [2025-01-22 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305951', 'tblTempUsageDetail_20' ) end [2025-01-22 15:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305951', 'tblTempVendorCDR_20' ) start [2025-01-22 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305951', 'tblTempVendorCDR_20' ) end [2025-01-22 15:36:27] Production.INFO: ProcessCDR(1,14305951,1,1,2) [2025-01-22 15:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305951', 'tblTempUsageDetail_20' ) start [2025-01-22 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305951', 'tblTempUsageDetail_20' ) end [2025-01-22 15:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:36:31] Production.INFO: ==13290== Releasing lock... [2025-01-22 15:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:36:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-22 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:37:06 [end_date_ymd] => 2025-01-22 15:37:06 [RateCDR] => 1 ) [2025-01-22 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:37:06' and `end` < '2025-01-22 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:37:28] Production.INFO: count ==5787 [2025-01-22 15:37:30] Production.ERROR: pbx CDR StartTime 2025-01-22 12:37:06 - End Time 2025-01-22 15:37:06 [2025-01-22 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305956', 'tblTempUsageDetail_20' ) start [2025-01-22 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305956', 'tblTempUsageDetail_20' ) end [2025-01-22 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305956', 'tblTempVendorCDR_20' ) start [2025-01-22 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305956', 'tblTempVendorCDR_20' ) end [2025-01-22 15:37:30] Production.INFO: ProcessCDR(1,14305956,1,1,2) [2025-01-22 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305956', 'tblTempUsageDetail_20' ) start [2025-01-22 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305956', 'tblTempUsageDetail_20' ) end [2025-01-22 15:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:37:35] Production.INFO: ==13368== Releasing lock... [2025-01-22 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:37:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-22 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:38:05 [end_date_ymd] => 2025-01-22 15:38:05 [RateCDR] => 1 ) [2025-01-22 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:38:05' and `end` < '2025-01-22 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:38:31] Production.INFO: count ==5773 [2025-01-22 15:38:34] Production.ERROR: pbx CDR StartTime 2025-01-22 12:38:05 - End Time 2025-01-22 15:38:05 [2025-01-22 15:38:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305959', 'tblTempUsageDetail_20' ) start [2025-01-22 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305959', 'tblTempUsageDetail_20' ) end [2025-01-22 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305959', 'tblTempVendorCDR_20' ) start [2025-01-22 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305959', 'tblTempVendorCDR_20' ) end [2025-01-22 15:38:34] Production.INFO: ProcessCDR(1,14305959,1,1,2) [2025-01-22 15:38:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:38:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:38:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:38:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305959', 'tblTempUsageDetail_20' ) start [2025-01-22 15:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305959', 'tblTempUsageDetail_20' ) end [2025-01-22 15:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:38:39] Production.INFO: ==13442== Releasing lock... [2025-01-22 15:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:38:39] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:39:05 [end_date_ymd] => 2025-01-22 15:39:05 [RateCDR] => 1 ) [2025-01-22 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:39:05' and `end` < '2025-01-22 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:39:38] Production.INFO: count ==5778 [2025-01-22 15:39:41] Production.ERROR: pbx CDR StartTime 2025-01-22 12:39:05 - End Time 2025-01-22 15:39:05 [2025-01-22 15:39:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:39:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305966', 'tblTempUsageDetail_20' ) start [2025-01-22 15:39:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305966', 'tblTempUsageDetail_20' ) end [2025-01-22 15:39:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305966', 'tblTempVendorCDR_20' ) start [2025-01-22 15:39:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305966', 'tblTempVendorCDR_20' ) end [2025-01-22 15:39:41] Production.INFO: ProcessCDR(1,14305966,1,1,2) [2025-01-22 15:39:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:39:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:39:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:39:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:39:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305966', 'tblTempUsageDetail_20' ) start [2025-01-22 15:39:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305966', 'tblTempUsageDetail_20' ) end [2025-01-22 15:39:46] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:39:46] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:39:46] Production.INFO: ==13513== Releasing lock... [2025-01-22 15:39:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:39:46] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:40:06 [end_date_ymd] => 2025-01-22 15:40:06 [RateCDR] => 1 ) [2025-01-22 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:40:06' and `end` < '2025-01-22 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:40:34] Production.INFO: count ==5761 [2025-01-22 15:40:37] Production.ERROR: pbx CDR StartTime 2025-01-22 12:40:06 - End Time 2025-01-22 15:40:06 [2025-01-22 15:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305971', 'tblTempUsageDetail_20' ) start [2025-01-22 15:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305971', 'tblTempUsageDetail_20' ) end [2025-01-22 15:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305971', 'tblTempVendorCDR_20' ) start [2025-01-22 15:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305971', 'tblTempVendorCDR_20' ) end [2025-01-22 15:40:37] Production.INFO: ProcessCDR(1,14305971,1,1,2) [2025-01-22 15:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305971', 'tblTempUsageDetail_20' ) start [2025-01-22 15:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305971', 'tblTempUsageDetail_20' ) end [2025-01-22 15:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:40:41] Production.INFO: ==13627== Releasing lock... [2025-01-22 15:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:40:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:41:05 [end_date_ymd] => 2025-01-22 15:41:05 [RateCDR] => 1 ) [2025-01-22 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:41:05' and `end` < '2025-01-22 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:41:31] Production.INFO: count ==5823 [2025-01-22 15:41:33] Production.ERROR: pbx CDR StartTime 2025-01-22 12:41:05 - End Time 2025-01-22 15:41:05 [2025-01-22 15:41:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305977', 'tblTempUsageDetail_20' ) start [2025-01-22 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305977', 'tblTempUsageDetail_20' ) end [2025-01-22 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305977', 'tblTempVendorCDR_20' ) start [2025-01-22 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305977', 'tblTempVendorCDR_20' ) end [2025-01-22 15:41:34] Production.INFO: ProcessCDR(1,14305977,1,1,2) [2025-01-22 15:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:41:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305977', 'tblTempUsageDetail_20' ) start [2025-01-22 15:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305977', 'tblTempUsageDetail_20' ) end [2025-01-22 15:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:41:39] Production.INFO: ==13704== Releasing lock... [2025-01-22 15:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:41:39] Production.INFO: 71.75 MB #Memory Used# [2025-01-22 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:42:06 [end_date_ymd] => 2025-01-22 15:42:06 [RateCDR] => 1 ) [2025-01-22 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:42:06' and `end` < '2025-01-22 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:42:36] Production.INFO: count ==5816 [2025-01-22 15:42:38] Production.ERROR: pbx CDR StartTime 2025-01-22 12:42:06 - End Time 2025-01-22 15:42:06 [2025-01-22 15:42:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305982', 'tblTempUsageDetail_20' ) start [2025-01-22 15:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305982', 'tblTempUsageDetail_20' ) end [2025-01-22 15:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305982', 'tblTempVendorCDR_20' ) start [2025-01-22 15:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305982', 'tblTempVendorCDR_20' ) end [2025-01-22 15:42:39] Production.INFO: ProcessCDR(1,14305982,1,1,2) [2025-01-22 15:42:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:42:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:42:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:42:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:42:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305982', 'tblTempUsageDetail_20' ) start [2025-01-22 15:42:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305982', 'tblTempUsageDetail_20' ) end [2025-01-22 15:42:43] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:42:43] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:42:43] Production.INFO: ==13775== Releasing lock... [2025-01-22 15:42:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:42:43] Production.INFO: 71.75 MB #Memory Used# [2025-01-22 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:43:05 [end_date_ymd] => 2025-01-22 15:43:05 [RateCDR] => 1 ) [2025-01-22 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:43:05' and `end` < '2025-01-22 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:43:25] Production.INFO: count ==5832 [2025-01-22 15:43:27] Production.ERROR: pbx CDR StartTime 2025-01-22 12:43:05 - End Time 2025-01-22 15:43:05 [2025-01-22 15:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305987', 'tblTempUsageDetail_20' ) start [2025-01-22 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305987', 'tblTempUsageDetail_20' ) end [2025-01-22 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305987', 'tblTempVendorCDR_20' ) start [2025-01-22 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305987', 'tblTempVendorCDR_20' ) end [2025-01-22 15:43:27] Production.INFO: ProcessCDR(1,14305987,1,1,2) [2025-01-22 15:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305987', 'tblTempUsageDetail_20' ) start [2025-01-22 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305987', 'tblTempUsageDetail_20' ) end [2025-01-22 15:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:43:32] Production.INFO: ==13850== Releasing lock... [2025-01-22 15:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:43:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-22 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:44:05 [end_date_ymd] => 2025-01-22 15:44:05 [RateCDR] => 1 ) [2025-01-22 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:44:05' and `end` < '2025-01-22 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:44:26] Production.INFO: count ==5865 [2025-01-22 15:44:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:44:05 - End Time 2025-01-22 15:44:05 [2025-01-22 15:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305992', 'tblTempUsageDetail_20' ) start [2025-01-22 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305992', 'tblTempUsageDetail_20' ) end [2025-01-22 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305992', 'tblTempVendorCDR_20' ) start [2025-01-22 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305992', 'tblTempVendorCDR_20' ) end [2025-01-22 15:44:28] Production.INFO: ProcessCDR(1,14305992,1,1,2) [2025-01-22 15:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305992', 'tblTempUsageDetail_20' ) start [2025-01-22 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305992', 'tblTempUsageDetail_20' ) end [2025-01-22 15:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:44:34] Production.INFO: ==13921== Releasing lock... [2025-01-22 15:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:44:34] Production.INFO: 72 MB #Memory Used# [2025-01-22 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:45:05 [end_date_ymd] => 2025-01-22 15:45:05 [RateCDR] => 1 ) [2025-01-22 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:45:05' and `end` < '2025-01-22 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:45:31] Production.INFO: count ==5861 [2025-01-22 15:45:34] Production.ERROR: pbx CDR StartTime 2025-01-22 12:45:05 - End Time 2025-01-22 15:45:05 [2025-01-22 15:45:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305997', 'tblTempUsageDetail_20' ) start [2025-01-22 15:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14305997', 'tblTempUsageDetail_20' ) end [2025-01-22 15:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305997', 'tblTempVendorCDR_20' ) start [2025-01-22 15:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14305997', 'tblTempVendorCDR_20' ) end [2025-01-22 15:45:34] Production.INFO: ProcessCDR(1,14305997,1,1,2) [2025-01-22 15:45:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14305997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14305997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14305997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14305997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305997', 'tblTempUsageDetail_20' ) start [2025-01-22 15:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14305997', 'tblTempUsageDetail_20' ) end [2025-01-22 15:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:45:38] Production.INFO: ==13997== Releasing lock... [2025-01-22 15:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:45:38] Production.INFO: 72 MB #Memory Used# [2025-01-22 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:46:06 [end_date_ymd] => 2025-01-22 15:46:06 [RateCDR] => 1 ) [2025-01-22 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:46:06' and `end` < '2025-01-22 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:46:31] Production.INFO: count ==5874 [2025-01-22 15:46:33] Production.ERROR: pbx CDR StartTime 2025-01-22 12:46:06 - End Time 2025-01-22 15:46:06 [2025-01-22 15:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306002', 'tblTempUsageDetail_20' ) start [2025-01-22 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306002', 'tblTempUsageDetail_20' ) end [2025-01-22 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306002', 'tblTempVendorCDR_20' ) start [2025-01-22 15:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306002', 'tblTempVendorCDR_20' ) end [2025-01-22 15:46:33] Production.INFO: ProcessCDR(1,14306002,1,1,2) [2025-01-22 15:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:46:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:46:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306002', 'tblTempUsageDetail_20' ) start [2025-01-22 15:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306002', 'tblTempUsageDetail_20' ) end [2025-01-22 15:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:46:38] Production.INFO: ==14070== Releasing lock... [2025-01-22 15:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:46:38] Production.INFO: 72 MB #Memory Used# [2025-01-22 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:47:05 [end_date_ymd] => 2025-01-22 15:47:05 [RateCDR] => 1 ) [2025-01-22 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:47:05' and `end` < '2025-01-22 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:47:26] Production.INFO: count ==5884 [2025-01-22 15:47:29] Production.ERROR: pbx CDR StartTime 2025-01-22 12:47:05 - End Time 2025-01-22 15:47:05 [2025-01-22 15:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306007', 'tblTempUsageDetail_20' ) start [2025-01-22 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306007', 'tblTempUsageDetail_20' ) end [2025-01-22 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306007', 'tblTempVendorCDR_20' ) start [2025-01-22 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306007', 'tblTempVendorCDR_20' ) end [2025-01-22 15:47:29] Production.INFO: ProcessCDR(1,14306007,1,1,2) [2025-01-22 15:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306007', 'tblTempUsageDetail_20' ) start [2025-01-22 15:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306007', 'tblTempUsageDetail_20' ) end [2025-01-22 15:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:47:34] Production.INFO: ==14142== Releasing lock... [2025-01-22 15:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:47:34] Production.INFO: 72.25 MB #Memory Used# [2025-01-22 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:48:05 [end_date_ymd] => 2025-01-22 15:48:05 [RateCDR] => 1 ) [2025-01-22 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:48:05' and `end` < '2025-01-22 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:48:23] Production.INFO: count ==5872 [2025-01-22 15:48:25] Production.ERROR: pbx CDR StartTime 2025-01-22 12:48:05 - End Time 2025-01-22 15:48:05 [2025-01-22 15:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306012', 'tblTempUsageDetail_20' ) start [2025-01-22 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306012', 'tblTempUsageDetail_20' ) end [2025-01-22 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306012', 'tblTempVendorCDR_20' ) start [2025-01-22 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306012', 'tblTempVendorCDR_20' ) end [2025-01-22 15:48:25] Production.INFO: ProcessCDR(1,14306012,1,1,2) [2025-01-22 15:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306012', 'tblTempUsageDetail_20' ) start [2025-01-22 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306012', 'tblTempUsageDetail_20' ) end [2025-01-22 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:48:30] Production.INFO: ==14213== Releasing lock... [2025-01-22 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:48:30] Production.INFO: 72 MB #Memory Used# [2025-01-22 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:49:05 [end_date_ymd] => 2025-01-22 15:49:05 [RateCDR] => 1 ) [2025-01-22 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:49:05' and `end` < '2025-01-22 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:49:34] Production.INFO: count ==5865 [2025-01-22 15:49:36] Production.ERROR: pbx CDR StartTime 2025-01-22 12:49:05 - End Time 2025-01-22 15:49:05 [2025-01-22 15:49:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306017', 'tblTempUsageDetail_20' ) start [2025-01-22 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306017', 'tblTempUsageDetail_20' ) end [2025-01-22 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306017', 'tblTempVendorCDR_20' ) start [2025-01-22 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306017', 'tblTempVendorCDR_20' ) end [2025-01-22 15:49:36] Production.INFO: ProcessCDR(1,14306017,1,1,2) [2025-01-22 15:49:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:49:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:49:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:49:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306017', 'tblTempUsageDetail_20' ) start [2025-01-22 15:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306017', 'tblTempUsageDetail_20' ) end [2025-01-22 15:49:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:49:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:49:41] Production.INFO: ==14290== Releasing lock... [2025-01-22 15:49:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:49:41] Production.INFO: 72 MB #Memory Used# [2025-01-22 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:50:06 [end_date_ymd] => 2025-01-22 15:50:06 [RateCDR] => 1 ) [2025-01-22 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:50:06' and `end` < '2025-01-22 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:50:29] Production.INFO: count ==5884 [2025-01-22 15:50:31] Production.ERROR: pbx CDR StartTime 2025-01-22 12:50:06 - End Time 2025-01-22 15:50:06 [2025-01-22 15:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306023', 'tblTempUsageDetail_20' ) start [2025-01-22 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306023', 'tblTempUsageDetail_20' ) end [2025-01-22 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306023', 'tblTempVendorCDR_20' ) start [2025-01-22 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306023', 'tblTempVendorCDR_20' ) end [2025-01-22 15:50:31] Production.INFO: ProcessCDR(1,14306023,1,1,2) [2025-01-22 15:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306023', 'tblTempUsageDetail_20' ) start [2025-01-22 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306023', 'tblTempUsageDetail_20' ) end [2025-01-22 15:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:50:36] Production.INFO: ==14367== Releasing lock... [2025-01-22 15:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:50:36] Production.INFO: 72.25 MB #Memory Used# [2025-01-22 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:51:05 [end_date_ymd] => 2025-01-22 15:51:05 [RateCDR] => 1 ) [2025-01-22 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:51:05' and `end` < '2025-01-22 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:51:25] Production.INFO: count ==5947 [2025-01-22 15:51:27] Production.ERROR: pbx CDR StartTime 2025-01-22 12:51:05 - End Time 2025-01-22 15:51:05 [2025-01-22 15:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306028', 'tblTempUsageDetail_20' ) start [2025-01-22 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306028', 'tblTempUsageDetail_20' ) end [2025-01-22 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306028', 'tblTempVendorCDR_20' ) start [2025-01-22 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306028', 'tblTempVendorCDR_20' ) end [2025-01-22 15:51:28] Production.INFO: ProcessCDR(1,14306028,1,1,2) [2025-01-22 15:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306028', 'tblTempUsageDetail_20' ) start [2025-01-22 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306028', 'tblTempUsageDetail_20' ) end [2025-01-22 15:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:51:32] Production.INFO: ==14445== Releasing lock... [2025-01-22 15:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:51:32] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:52:04 [end_date_ymd] => 2025-01-22 15:52:04 [RateCDR] => 1 ) [2025-01-22 15:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:52:04' and `end` < '2025-01-22 15:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:52:25] Production.INFO: count ==5967 [2025-01-22 15:52:28] Production.ERROR: pbx CDR StartTime 2025-01-22 12:52:04 - End Time 2025-01-22 15:52:04 [2025-01-22 15:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306033', 'tblTempUsageDetail_20' ) start [2025-01-22 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306033', 'tblTempUsageDetail_20' ) end [2025-01-22 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306033', 'tblTempVendorCDR_20' ) start [2025-01-22 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306033', 'tblTempVendorCDR_20' ) end [2025-01-22 15:52:28] Production.INFO: ProcessCDR(1,14306033,1,1,2) [2025-01-22 15:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306033', 'tblTempUsageDetail_20' ) start [2025-01-22 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306033', 'tblTempUsageDetail_20' ) end [2025-01-22 15:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:52:32] Production.INFO: ==14516== Releasing lock... [2025-01-22 15:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:52:32] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:53:05 [end_date_ymd] => 2025-01-22 15:53:05 [RateCDR] => 1 ) [2025-01-22 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:53:05' and `end` < '2025-01-22 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:53:31] Production.INFO: count ==5979 [2025-01-22 15:53:33] Production.ERROR: pbx CDR StartTime 2025-01-22 12:53:05 - End Time 2025-01-22 15:53:05 [2025-01-22 15:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306038', 'tblTempUsageDetail_20' ) start [2025-01-22 15:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306038', 'tblTempUsageDetail_20' ) end [2025-01-22 15:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306038', 'tblTempVendorCDR_20' ) start [2025-01-22 15:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306038', 'tblTempVendorCDR_20' ) end [2025-01-22 15:53:33] Production.INFO: ProcessCDR(1,14306038,1,1,2) [2025-01-22 15:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:53:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:53:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:53:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306038', 'tblTempUsageDetail_20' ) start [2025-01-22 15:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306038', 'tblTempUsageDetail_20' ) end [2025-01-22 15:53:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:53:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:53:38] Production.INFO: ==14588== Releasing lock... [2025-01-22 15:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:53:38] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:54:05 [end_date_ymd] => 2025-01-22 15:54:05 [RateCDR] => 1 ) [2025-01-22 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:54:05' and `end` < '2025-01-22 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:54:25] Production.INFO: count ==5969 [2025-01-22 15:54:27] Production.ERROR: pbx CDR StartTime 2025-01-22 12:54:05 - End Time 2025-01-22 15:54:05 [2025-01-22 15:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306043', 'tblTempUsageDetail_20' ) start [2025-01-22 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306043', 'tblTempUsageDetail_20' ) end [2025-01-22 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306043', 'tblTempVendorCDR_20' ) start [2025-01-22 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306043', 'tblTempVendorCDR_20' ) end [2025-01-22 15:54:27] Production.INFO: ProcessCDR(1,14306043,1,1,2) [2025-01-22 15:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306043', 'tblTempUsageDetail_20' ) start [2025-01-22 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306043', 'tblTempUsageDetail_20' ) end [2025-01-22 15:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:54:32] Production.INFO: ==14658== Releasing lock... [2025-01-22 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:54:32] Production.INFO: 73 MB #Memory Used# [2025-01-22 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:55:05 [end_date_ymd] => 2025-01-22 15:55:05 [RateCDR] => 1 ) [2025-01-22 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:55:05' and `end` < '2025-01-22 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:55:24] Production.INFO: count ==5967 [2025-01-22 15:55:26] Production.ERROR: pbx CDR StartTime 2025-01-22 12:55:05 - End Time 2025-01-22 15:55:05 [2025-01-22 15:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306048', 'tblTempUsageDetail_20' ) start [2025-01-22 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306048', 'tblTempUsageDetail_20' ) end [2025-01-22 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306048', 'tblTempVendorCDR_20' ) start [2025-01-22 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306048', 'tblTempVendorCDR_20' ) end [2025-01-22 15:55:26] Production.INFO: ProcessCDR(1,14306048,1,1,2) [2025-01-22 15:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306048', 'tblTempUsageDetail_20' ) start [2025-01-22 15:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306048', 'tblTempUsageDetail_20' ) end [2025-01-22 15:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:55:31] Production.INFO: ==14771== Releasing lock... [2025-01-22 15:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:55:31] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:56:05 [end_date_ymd] => 2025-01-22 15:56:05 [RateCDR] => 1 ) [2025-01-22 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:56:05' and `end` < '2025-01-22 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:56:29] Production.INFO: count ==5971 [2025-01-22 15:56:32] Production.ERROR: pbx CDR StartTime 2025-01-22 12:56:05 - End Time 2025-01-22 15:56:05 [2025-01-22 15:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306053', 'tblTempUsageDetail_20' ) start [2025-01-22 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306053', 'tblTempUsageDetail_20' ) end [2025-01-22 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306053', 'tblTempVendorCDR_20' ) start [2025-01-22 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306053', 'tblTempVendorCDR_20' ) end [2025-01-22 15:56:32] Production.INFO: ProcessCDR(1,14306053,1,1,2) [2025-01-22 15:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306053', 'tblTempUsageDetail_20' ) start [2025-01-22 15:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306053', 'tblTempUsageDetail_20' ) end [2025-01-22 15:56:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:56:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:56:37] Production.INFO: ==14844== Releasing lock... [2025-01-22 15:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:56:37] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:57:05 [end_date_ymd] => 2025-01-22 15:57:05 [RateCDR] => 1 ) [2025-01-22 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:57:05' and `end` < '2025-01-22 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:57:29] Production.INFO: count ==5976 [2025-01-22 15:57:31] Production.ERROR: pbx CDR StartTime 2025-01-22 12:57:05 - End Time 2025-01-22 15:57:05 [2025-01-22 15:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306058', 'tblTempUsageDetail_20' ) start [2025-01-22 15:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306058', 'tblTempUsageDetail_20' ) end [2025-01-22 15:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306058', 'tblTempVendorCDR_20' ) start [2025-01-22 15:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306058', 'tblTempVendorCDR_20' ) end [2025-01-22 15:57:31] Production.INFO: ProcessCDR(1,14306058,1,1,2) [2025-01-22 15:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306058', 'tblTempUsageDetail_20' ) start [2025-01-22 15:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306058', 'tblTempUsageDetail_20' ) end [2025-01-22 15:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:57:36] Production.INFO: ==14917== Releasing lock... [2025-01-22 15:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:57:36] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:58:06 [end_date_ymd] => 2025-01-22 15:58:06 [RateCDR] => 1 ) [2025-01-22 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:58:06' and `end` < '2025-01-22 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:58:30] Production.INFO: count ==5988 [2025-01-22 15:58:32] Production.ERROR: pbx CDR StartTime 2025-01-22 12:58:06 - End Time 2025-01-22 15:58:06 [2025-01-22 15:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306063', 'tblTempUsageDetail_20' ) start [2025-01-22 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306063', 'tblTempUsageDetail_20' ) end [2025-01-22 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306063', 'tblTempVendorCDR_20' ) start [2025-01-22 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306063', 'tblTempVendorCDR_20' ) end [2025-01-22 15:58:32] Production.INFO: ProcessCDR(1,14306063,1,1,2) [2025-01-22 15:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306063', 'tblTempUsageDetail_20' ) start [2025-01-22 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306063', 'tblTempUsageDetail_20' ) end [2025-01-22 15:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:58:37] Production.INFO: ==14991== Releasing lock... [2025-01-22 15:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:58:37] Production.INFO: 73 MB #Memory Used# [2025-01-22 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 12:59:05 [end_date_ymd] => 2025-01-22 15:59:05 [RateCDR] => 1 ) [2025-01-22 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 12:59:05' and `end` < '2025-01-22 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 15:59:27] Production.INFO: count ==5992 [2025-01-22 15:59:29] Production.ERROR: pbx CDR StartTime 2025-01-22 12:59:05 - End Time 2025-01-22 15:59:05 [2025-01-22 15:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306068', 'tblTempUsageDetail_20' ) start [2025-01-22 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306068', 'tblTempUsageDetail_20' ) end [2025-01-22 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306068', 'tblTempVendorCDR_20' ) start [2025-01-22 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306068', 'tblTempVendorCDR_20' ) end [2025-01-22 15:59:29] Production.INFO: ProcessCDR(1,14306068,1,1,2) [2025-01-22 15:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 15:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 15:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306068', 'tblTempUsageDetail_20' ) start [2025-01-22 15:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306068', 'tblTempUsageDetail_20' ) end [2025-01-22 15:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 15:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 15:59:34] Production.INFO: ==15061== Releasing lock... [2025-01-22 15:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 15:59:34] Production.INFO: 73 MB #Memory Used# [2025-01-22 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:00:06 [end_date_ymd] => 2025-01-22 16:00:06 [RateCDR] => 1 ) [2025-01-22 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:00:06' and `end` < '2025-01-22 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:00:29] Production.INFO: count ==6002 [2025-01-22 16:00:32] Production.ERROR: pbx CDR StartTime 2025-01-22 13:00:06 - End Time 2025-01-22 16:00:06 [2025-01-22 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306074', 'tblTempUsageDetail_20' ) start [2025-01-22 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306074', 'tblTempUsageDetail_20' ) end [2025-01-22 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306074', 'tblTempVendorCDR_20' ) start [2025-01-22 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306074', 'tblTempVendorCDR_20' ) end [2025-01-22 16:00:32] Production.INFO: ProcessCDR(1,14306074,1,1,2) [2025-01-22 16:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306074', 'tblTempUsageDetail_20' ) start [2025-01-22 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306074', 'tblTempUsageDetail_20' ) end [2025-01-22 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:00:37] Production.INFO: ==15133== Releasing lock... [2025-01-22 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:00:37] Production.INFO: 73 MB #Memory Used# [2025-01-22 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:01:05 [end_date_ymd] => 2025-01-22 16:01:05 [RateCDR] => 1 ) [2025-01-22 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:01:05' and `end` < '2025-01-22 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:01:30] Production.INFO: count ==6019 [2025-01-22 16:01:32] Production.ERROR: pbx CDR StartTime 2025-01-22 13:01:05 - End Time 2025-01-22 16:01:05 [2025-01-22 16:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306079', 'tblTempUsageDetail_20' ) start [2025-01-22 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306079', 'tblTempUsageDetail_20' ) end [2025-01-22 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306079', 'tblTempVendorCDR_20' ) start [2025-01-22 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306079', 'tblTempVendorCDR_20' ) end [2025-01-22 16:01:33] Production.INFO: ProcessCDR(1,14306079,1,1,2) [2025-01-22 16:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306079', 'tblTempUsageDetail_20' ) start [2025-01-22 16:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306079', 'tblTempUsageDetail_20' ) end [2025-01-22 16:01:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:01:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:01:37] Production.INFO: ==15221== Releasing lock... [2025-01-22 16:01:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:01:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:02:06 [end_date_ymd] => 2025-01-22 16:02:06 [RateCDR] => 1 ) [2025-01-22 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:02:06' and `end` < '2025-01-22 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:02:34] Production.INFO: count ==6036 [2025-01-22 16:02:36] Production.ERROR: pbx CDR StartTime 2025-01-22 13:02:06 - End Time 2025-01-22 16:02:06 [2025-01-22 16:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306084', 'tblTempUsageDetail_20' ) start [2025-01-22 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306084', 'tblTempUsageDetail_20' ) end [2025-01-22 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306084', 'tblTempVendorCDR_20' ) start [2025-01-22 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306084', 'tblTempVendorCDR_20' ) end [2025-01-22 16:02:37] Production.INFO: ProcessCDR(1,14306084,1,1,2) [2025-01-22 16:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306084', 'tblTempUsageDetail_20' ) start [2025-01-22 16:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306084', 'tblTempUsageDetail_20' ) end [2025-01-22 16:02:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:02:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:02:42] Production.INFO: ==15293== Releasing lock... [2025-01-22 16:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:02:42] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:03:05 [end_date_ymd] => 2025-01-22 16:03:05 [RateCDR] => 1 ) [2025-01-22 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:03:05' and `end` < '2025-01-22 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:03:32] Production.INFO: count ==6057 [2025-01-22 16:03:35] Production.ERROR: pbx CDR StartTime 2025-01-22 13:03:05 - End Time 2025-01-22 16:03:05 [2025-01-22 16:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306089', 'tblTempUsageDetail_20' ) start [2025-01-22 16:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306089', 'tblTempUsageDetail_20' ) end [2025-01-22 16:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306089', 'tblTempVendorCDR_20' ) start [2025-01-22 16:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306089', 'tblTempVendorCDR_20' ) end [2025-01-22 16:03:35] Production.INFO: ProcessCDR(1,14306089,1,1,2) [2025-01-22 16:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306089', 'tblTempUsageDetail_20' ) start [2025-01-22 16:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306089', 'tblTempUsageDetail_20' ) end [2025-01-22 16:03:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:03:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:03:40] Production.INFO: ==15364== Releasing lock... [2025-01-22 16:03:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:03:40] Production.INFO: 73.5 MB #Memory Used# [2025-01-22 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:04:06 [end_date_ymd] => 2025-01-22 16:04:06 [RateCDR] => 1 ) [2025-01-22 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:04:06' and `end` < '2025-01-22 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:04:27] Production.INFO: count ==6083 [2025-01-22 16:04:29] Production.ERROR: pbx CDR StartTime 2025-01-22 13:04:06 - End Time 2025-01-22 16:04:06 [2025-01-22 16:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306094', 'tblTempUsageDetail_20' ) start [2025-01-22 16:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306094', 'tblTempUsageDetail_20' ) end [2025-01-22 16:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306094', 'tblTempVendorCDR_20' ) start [2025-01-22 16:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306094', 'tblTempVendorCDR_20' ) end [2025-01-22 16:04:29] Production.INFO: ProcessCDR(1,14306094,1,1,2) [2025-01-22 16:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306094', 'tblTempUsageDetail_20' ) start [2025-01-22 16:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306094', 'tblTempUsageDetail_20' ) end [2025-01-22 16:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:04:34] Production.INFO: ==15437== Releasing lock... [2025-01-22 16:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:04:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:05:05 [end_date_ymd] => 2025-01-22 16:05:05 [RateCDR] => 1 ) [2025-01-22 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:05:05' and `end` < '2025-01-22 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:05:30] Production.INFO: count ==6101 [2025-01-22 16:05:32] Production.ERROR: pbx CDR StartTime 2025-01-22 13:05:05 - End Time 2025-01-22 16:05:05 [2025-01-22 16:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306099', 'tblTempUsageDetail_20' ) start [2025-01-22 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306099', 'tblTempUsageDetail_20' ) end [2025-01-22 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306099', 'tblTempVendorCDR_20' ) start [2025-01-22 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306099', 'tblTempVendorCDR_20' ) end [2025-01-22 16:05:32] Production.INFO: ProcessCDR(1,14306099,1,1,2) [2025-01-22 16:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306099', 'tblTempUsageDetail_20' ) start [2025-01-22 16:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306099', 'tblTempUsageDetail_20' ) end [2025-01-22 16:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:05:37] Production.INFO: ==15510== Releasing lock... [2025-01-22 16:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:05:37] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:06:05 [end_date_ymd] => 2025-01-22 16:06:05 [RateCDR] => 1 ) [2025-01-22 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:06:05' and `end` < '2025-01-22 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:06:24] Production.INFO: count ==6113 [2025-01-22 16:06:27] Production.ERROR: pbx CDR StartTime 2025-01-22 13:06:05 - End Time 2025-01-22 16:06:05 [2025-01-22 16:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306104', 'tblTempUsageDetail_20' ) start [2025-01-22 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306104', 'tblTempUsageDetail_20' ) end [2025-01-22 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306104', 'tblTempVendorCDR_20' ) start [2025-01-22 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306104', 'tblTempVendorCDR_20' ) end [2025-01-22 16:06:27] Production.INFO: ProcessCDR(1,14306104,1,1,2) [2025-01-22 16:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306104', 'tblTempUsageDetail_20' ) start [2025-01-22 16:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306104', 'tblTempUsageDetail_20' ) end [2025-01-22 16:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:06:32] Production.INFO: ==15587== Releasing lock... [2025-01-22 16:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:06:32] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:07:05 [end_date_ymd] => 2025-01-22 16:07:05 [RateCDR] => 1 ) [2025-01-22 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:07:05' and `end` < '2025-01-22 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:07:27] Production.INFO: count ==6120 [2025-01-22 16:07:30] Production.ERROR: pbx CDR StartTime 2025-01-22 13:07:05 - End Time 2025-01-22 16:07:05 [2025-01-22 16:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306109', 'tblTempUsageDetail_20' ) start [2025-01-22 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306109', 'tblTempUsageDetail_20' ) end [2025-01-22 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306109', 'tblTempVendorCDR_20' ) start [2025-01-22 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306109', 'tblTempVendorCDR_20' ) end [2025-01-22 16:07:30] Production.INFO: ProcessCDR(1,14306109,1,1,2) [2025-01-22 16:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306109', 'tblTempUsageDetail_20' ) start [2025-01-22 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306109', 'tblTempUsageDetail_20' ) end [2025-01-22 16:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:07:35] Production.INFO: ==15661== Releasing lock... [2025-01-22 16:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:07:35] Production.INFO: 74 MB #Memory Used# [2025-01-22 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:08:05 [end_date_ymd] => 2025-01-22 16:08:05 [RateCDR] => 1 ) [2025-01-22 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:08:05' and `end` < '2025-01-22 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:08:33] Production.INFO: count ==6124 [2025-01-22 16:08:35] Production.ERROR: pbx CDR StartTime 2025-01-22 13:08:05 - End Time 2025-01-22 16:08:05 [2025-01-22 16:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306114', 'tblTempUsageDetail_20' ) start [2025-01-22 16:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306114', 'tblTempUsageDetail_20' ) end [2025-01-22 16:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306114', 'tblTempVendorCDR_20' ) start [2025-01-22 16:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306114', 'tblTempVendorCDR_20' ) end [2025-01-22 16:08:35] Production.INFO: ProcessCDR(1,14306114,1,1,2) [2025-01-22 16:08:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:08:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306114', 'tblTempUsageDetail_20' ) start [2025-01-22 16:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306114', 'tblTempUsageDetail_20' ) end [2025-01-22 16:08:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:08:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:08:40] Production.INFO: ==15731== Releasing lock... [2025-01-22 16:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:08:40] Production.INFO: 74 MB #Memory Used# [2025-01-22 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:09:05 [end_date_ymd] => 2025-01-22 16:09:05 [RateCDR] => 1 ) [2025-01-22 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:09:05' and `end` < '2025-01-22 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:09:26] Production.INFO: count ==6129 [2025-01-22 16:09:29] Production.ERROR: pbx CDR StartTime 2025-01-22 13:09:05 - End Time 2025-01-22 16:09:05 [2025-01-22 16:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306119', 'tblTempUsageDetail_20' ) start [2025-01-22 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306119', 'tblTempUsageDetail_20' ) end [2025-01-22 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306119', 'tblTempVendorCDR_20' ) start [2025-01-22 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306119', 'tblTempVendorCDR_20' ) end [2025-01-22 16:09:29] Production.INFO: ProcessCDR(1,14306119,1,1,2) [2025-01-22 16:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306119', 'tblTempUsageDetail_20' ) start [2025-01-22 16:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306119', 'tblTempUsageDetail_20' ) end [2025-01-22 16:09:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:09:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:09:33] Production.INFO: ==15802== Releasing lock... [2025-01-22 16:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:09:33] Production.INFO: 74 MB #Memory Used# [2025-01-22 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:10:06 [end_date_ymd] => 2025-01-22 16:10:06 [RateCDR] => 1 ) [2025-01-22 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:10:06' and `end` < '2025-01-22 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:10:36] Production.INFO: count ==6111 [2025-01-22 16:10:39] Production.ERROR: pbx CDR StartTime 2025-01-22 13:10:06 - End Time 2025-01-22 16:10:06 [2025-01-22 16:10:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306125', 'tblTempUsageDetail_20' ) start [2025-01-22 16:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306125', 'tblTempUsageDetail_20' ) end [2025-01-22 16:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306125', 'tblTempVendorCDR_20' ) start [2025-01-22 16:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306125', 'tblTempVendorCDR_20' ) end [2025-01-22 16:10:39] Production.INFO: ProcessCDR(1,14306125,1,1,2) [2025-01-22 16:10:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306125', 'tblTempUsageDetail_20' ) start [2025-01-22 16:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306125', 'tblTempUsageDetail_20' ) end [2025-01-22 16:10:44] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:10:44] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:10:44] Production.INFO: ==15877== Releasing lock... [2025-01-22 16:10:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:10:44] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:11:05 [end_date_ymd] => 2025-01-22 16:11:05 [RateCDR] => 1 ) [2025-01-22 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:11:05' and `end` < '2025-01-22 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:11:23] Production.INFO: count ==6140 [2025-01-22 16:11:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:11:05 - End Time 2025-01-22 16:11:05 [2025-01-22 16:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306130', 'tblTempUsageDetail_20' ) start [2025-01-22 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306130', 'tblTempUsageDetail_20' ) end [2025-01-22 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306130', 'tblTempVendorCDR_20' ) start [2025-01-22 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306130', 'tblTempVendorCDR_20' ) end [2025-01-22 16:11:26] Production.INFO: ProcessCDR(1,14306130,1,1,2) [2025-01-22 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306130', 'tblTempUsageDetail_20' ) start [2025-01-22 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306130', 'tblTempUsageDetail_20' ) end [2025-01-22 16:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:11:31] Production.INFO: ==15989== Releasing lock... [2025-01-22 16:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:11:31] Production.INFO: 74 MB #Memory Used# [2025-01-22 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:12:05 [end_date_ymd] => 2025-01-22 16:12:05 [RateCDR] => 1 ) [2025-01-22 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:12:05' and `end` < '2025-01-22 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:12:23] Production.INFO: count ==6146 [2025-01-22 16:12:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:12:05 - End Time 2025-01-22 16:12:05 [2025-01-22 16:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306135', 'tblTempUsageDetail_20' ) start [2025-01-22 16:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306135', 'tblTempUsageDetail_20' ) end [2025-01-22 16:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306135', 'tblTempVendorCDR_20' ) start [2025-01-22 16:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306135', 'tblTempVendorCDR_20' ) end [2025-01-22 16:12:26] Production.INFO: ProcessCDR(1,14306135,1,1,2) [2025-01-22 16:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306135', 'tblTempUsageDetail_20' ) start [2025-01-22 16:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306135', 'tblTempUsageDetail_20' ) end [2025-01-22 16:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:12:31] Production.INFO: ==16059== Releasing lock... [2025-01-22 16:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:12:31] Production.INFO: 74 MB #Memory Used# [2025-01-22 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:13:05 [end_date_ymd] => 2025-01-22 16:13:05 [RateCDR] => 1 ) [2025-01-22 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:13:05' and `end` < '2025-01-22 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:13:23] Production.INFO: count ==6164 [2025-01-22 16:13:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:13:05 - End Time 2025-01-22 16:13:05 [2025-01-22 16:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306140', 'tblTempUsageDetail_20' ) start [2025-01-22 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306140', 'tblTempUsageDetail_20' ) end [2025-01-22 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306140', 'tblTempVendorCDR_20' ) start [2025-01-22 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306140', 'tblTempVendorCDR_20' ) end [2025-01-22 16:13:26] Production.INFO: ProcessCDR(1,14306140,1,1,2) [2025-01-22 16:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306140', 'tblTempUsageDetail_20' ) start [2025-01-22 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306140', 'tblTempUsageDetail_20' ) end [2025-01-22 16:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:13:31] Production.INFO: ==16134== Releasing lock... [2025-01-22 16:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:13:31] Production.INFO: 74.25 MB #Memory Used# [2025-01-22 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:14:05 [end_date_ymd] => 2025-01-22 16:14:05 [RateCDR] => 1 ) [2025-01-22 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:14:05' and `end` < '2025-01-22 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:14:22] Production.INFO: count ==6154 [2025-01-22 16:14:24] Production.ERROR: pbx CDR StartTime 2025-01-22 13:14:05 - End Time 2025-01-22 16:14:05 [2025-01-22 16:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306145', 'tblTempUsageDetail_20' ) start [2025-01-22 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306145', 'tblTempUsageDetail_20' ) end [2025-01-22 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306145', 'tblTempVendorCDR_20' ) start [2025-01-22 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306145', 'tblTempVendorCDR_20' ) end [2025-01-22 16:14:24] Production.INFO: ProcessCDR(1,14306145,1,1,2) [2025-01-22 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306145', 'tblTempUsageDetail_20' ) start [2025-01-22 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306145', 'tblTempUsageDetail_20' ) end [2025-01-22 16:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:14:29] Production.INFO: ==16205== Releasing lock... [2025-01-22 16:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:14:29] Production.INFO: 74.25 MB #Memory Used# [2025-01-22 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:15:06 [end_date_ymd] => 2025-01-22 16:15:06 [RateCDR] => 1 ) [2025-01-22 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:15:06' and `end` < '2025-01-22 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:15:37] Production.INFO: count ==6186 [2025-01-22 16:15:39] Production.ERROR: pbx CDR StartTime 2025-01-22 13:15:06 - End Time 2025-01-22 16:15:06 [2025-01-22 16:15:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:15:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306150', 'tblTempUsageDetail_20' ) start [2025-01-22 16:15:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306150', 'tblTempUsageDetail_20' ) end [2025-01-22 16:15:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306150', 'tblTempVendorCDR_20' ) start [2025-01-22 16:15:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306150', 'tblTempVendorCDR_20' ) end [2025-01-22 16:15:40] Production.INFO: ProcessCDR(1,14306150,1,1,2) [2025-01-22 16:15:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:15:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:15:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:15:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:15:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306150', 'tblTempUsageDetail_20' ) start [2025-01-22 16:15:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306150', 'tblTempUsageDetail_20' ) end [2025-01-22 16:15:45] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:15:45] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:15:45] Production.INFO: ==16278== Releasing lock... [2025-01-22 16:15:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:15:45] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:16:05 [end_date_ymd] => 2025-01-22 16:16:05 [RateCDR] => 1 ) [2025-01-22 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:16:05' and `end` < '2025-01-22 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:16:34] Production.INFO: count ==6187 [2025-01-22 16:16:36] Production.ERROR: pbx CDR StartTime 2025-01-22 13:16:05 - End Time 2025-01-22 16:16:05 [2025-01-22 16:16:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306155', 'tblTempUsageDetail_20' ) start [2025-01-22 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306155', 'tblTempUsageDetail_20' ) end [2025-01-22 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306155', 'tblTempVendorCDR_20' ) start [2025-01-22 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306155', 'tblTempVendorCDR_20' ) end [2025-01-22 16:16:36] Production.INFO: ProcessCDR(1,14306155,1,1,2) [2025-01-22 16:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:16:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:16:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:16:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306155', 'tblTempUsageDetail_20' ) start [2025-01-22 16:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306155', 'tblTempUsageDetail_20' ) end [2025-01-22 16:16:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:16:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:16:41] Production.INFO: ==16348== Releasing lock... [2025-01-22 16:16:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:16:41] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:17:06 [end_date_ymd] => 2025-01-22 16:17:06 [RateCDR] => 1 ) [2025-01-22 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:17:06' and `end` < '2025-01-22 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:17:29] Production.INFO: count ==6198 [2025-01-22 16:17:31] Production.ERROR: pbx CDR StartTime 2025-01-22 13:17:06 - End Time 2025-01-22 16:17:06 [2025-01-22 16:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306160', 'tblTempUsageDetail_20' ) start [2025-01-22 16:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306160', 'tblTempUsageDetail_20' ) end [2025-01-22 16:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306160', 'tblTempVendorCDR_20' ) start [2025-01-22 16:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306160', 'tblTempVendorCDR_20' ) end [2025-01-22 16:17:32] Production.INFO: ProcessCDR(1,14306160,1,1,2) [2025-01-22 16:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306160', 'tblTempUsageDetail_20' ) start [2025-01-22 16:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306160', 'tblTempUsageDetail_20' ) end [2025-01-22 16:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:17:37] Production.INFO: ==16420== Releasing lock... [2025-01-22 16:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:17:37] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:18:05 [end_date_ymd] => 2025-01-22 16:18:05 [RateCDR] => 1 ) [2025-01-22 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:18:05' and `end` < '2025-01-22 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:18:26] Production.INFO: count ==6208 [2025-01-22 16:18:28] Production.ERROR: pbx CDR StartTime 2025-01-22 13:18:05 - End Time 2025-01-22 16:18:05 [2025-01-22 16:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306165', 'tblTempUsageDetail_20' ) start [2025-01-22 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306165', 'tblTempUsageDetail_20' ) end [2025-01-22 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306165', 'tblTempVendorCDR_20' ) start [2025-01-22 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306165', 'tblTempVendorCDR_20' ) end [2025-01-22 16:18:29] Production.INFO: ProcessCDR(1,14306165,1,1,2) [2025-01-22 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306165', 'tblTempUsageDetail_20' ) start [2025-01-22 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306165', 'tblTempUsageDetail_20' ) end [2025-01-22 16:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:18:33] Production.INFO: ==16502== Releasing lock... [2025-01-22 16:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:18:33] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:19:05 [end_date_ymd] => 2025-01-22 16:19:05 [RateCDR] => 1 ) [2025-01-22 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:19:05' and `end` < '2025-01-22 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:19:28] Production.INFO: count ==6213 [2025-01-22 16:19:31] Production.ERROR: pbx CDR StartTime 2025-01-22 13:19:05 - End Time 2025-01-22 16:19:05 [2025-01-22 16:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306170', 'tblTempUsageDetail_20' ) start [2025-01-22 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306170', 'tblTempUsageDetail_20' ) end [2025-01-22 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306170', 'tblTempVendorCDR_20' ) start [2025-01-22 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306170', 'tblTempVendorCDR_20' ) end [2025-01-22 16:19:31] Production.INFO: ProcessCDR(1,14306170,1,1,2) [2025-01-22 16:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306170', 'tblTempUsageDetail_20' ) start [2025-01-22 16:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306170', 'tblTempUsageDetail_20' ) end [2025-01-22 16:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:19:36] Production.INFO: ==16577== Releasing lock... [2025-01-22 16:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:19:36] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:20:06 [end_date_ymd] => 2025-01-22 16:20:06 [RateCDR] => 1 ) [2025-01-22 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:20:06' and `end` < '2025-01-22 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:20:32] Production.INFO: count ==6207 [2025-01-22 16:20:34] Production.ERROR: pbx CDR StartTime 2025-01-22 13:20:06 - End Time 2025-01-22 16:20:06 [2025-01-22 16:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306176', 'tblTempUsageDetail_20' ) start [2025-01-22 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306176', 'tblTempUsageDetail_20' ) end [2025-01-22 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306176', 'tblTempVendorCDR_20' ) start [2025-01-22 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306176', 'tblTempVendorCDR_20' ) end [2025-01-22 16:20:35] Production.INFO: ProcessCDR(1,14306176,1,1,2) [2025-01-22 16:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306176', 'tblTempUsageDetail_20' ) start [2025-01-22 16:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306176', 'tblTempUsageDetail_20' ) end [2025-01-22 16:20:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:20:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:20:40] Production.INFO: ==16650== Releasing lock... [2025-01-22 16:20:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:20:40] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:21:06 [end_date_ymd] => 2025-01-22 16:21:06 [RateCDR] => 1 ) [2025-01-22 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:21:06' and `end` < '2025-01-22 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:21:38] Production.INFO: count ==6245 [2025-01-22 16:21:40] Production.ERROR: pbx CDR StartTime 2025-01-22 13:21:06 - End Time 2025-01-22 16:21:06 [2025-01-22 16:21:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306181', 'tblTempUsageDetail_20' ) start [2025-01-22 16:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306181', 'tblTempUsageDetail_20' ) end [2025-01-22 16:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306181', 'tblTempVendorCDR_20' ) start [2025-01-22 16:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306181', 'tblTempVendorCDR_20' ) end [2025-01-22 16:21:40] Production.INFO: ProcessCDR(1,14306181,1,1,2) [2025-01-22 16:21:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:21:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:21:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:21:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:21:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306181', 'tblTempUsageDetail_20' ) start [2025-01-22 16:21:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306181', 'tblTempUsageDetail_20' ) end [2025-01-22 16:21:45] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:21:45] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:21:45] Production.INFO: ==16728== Releasing lock... [2025-01-22 16:21:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:21:45] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:22:04 [end_date_ymd] => 2025-01-22 16:22:04 [RateCDR] => 1 ) [2025-01-22 16:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:22:04' and `end` < '2025-01-22 16:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:22:35] Production.INFO: count ==6259 [2025-01-22 16:22:38] Production.ERROR: pbx CDR StartTime 2025-01-22 13:22:04 - End Time 2025-01-22 16:22:04 [2025-01-22 16:22:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:22:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306186', 'tblTempUsageDetail_20' ) start [2025-01-22 16:22:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306186', 'tblTempUsageDetail_20' ) end [2025-01-22 16:22:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306186', 'tblTempVendorCDR_20' ) start [2025-01-22 16:22:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306186', 'tblTempVendorCDR_20' ) end [2025-01-22 16:22:38] Production.INFO: ProcessCDR(1,14306186,1,1,2) [2025-01-22 16:22:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:22:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:22:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:22:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:22:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306186', 'tblTempUsageDetail_20' ) start [2025-01-22 16:22:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306186', 'tblTempUsageDetail_20' ) end [2025-01-22 16:22:43] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:22:43] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:22:43] Production.INFO: ==16798== Releasing lock... [2025-01-22 16:22:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:22:43] Production.INFO: 75 MB #Memory Used# [2025-01-22 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:23:05 [end_date_ymd] => 2025-01-22 16:23:05 [RateCDR] => 1 ) [2025-01-22 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:23:05' and `end` < '2025-01-22 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:23:32] Production.INFO: count ==6279 [2025-01-22 16:23:34] Production.ERROR: pbx CDR StartTime 2025-01-22 13:23:05 - End Time 2025-01-22 16:23:05 [2025-01-22 16:23:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306191', 'tblTempUsageDetail_20' ) start [2025-01-22 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306191', 'tblTempUsageDetail_20' ) end [2025-01-22 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306191', 'tblTempVendorCDR_20' ) start [2025-01-22 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306191', 'tblTempVendorCDR_20' ) end [2025-01-22 16:23:35] Production.INFO: ProcessCDR(1,14306191,1,1,2) [2025-01-22 16:23:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:23:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:23:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:23:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306191', 'tblTempUsageDetail_20' ) start [2025-01-22 16:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306191', 'tblTempUsageDetail_20' ) end [2025-01-22 16:23:39] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:23:39] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:23:39] Production.INFO: ==16868== Releasing lock... [2025-01-22 16:23:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:23:39] Production.INFO: 75 MB #Memory Used# [2025-01-22 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:24:05 [end_date_ymd] => 2025-01-22 16:24:05 [RateCDR] => 1 ) [2025-01-22 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:24:05' and `end` < '2025-01-22 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:24:33] Production.INFO: count ==6292 [2025-01-22 16:24:35] Production.ERROR: pbx CDR StartTime 2025-01-22 13:24:05 - End Time 2025-01-22 16:24:05 [2025-01-22 16:24:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306196', 'tblTempUsageDetail_20' ) start [2025-01-22 16:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306196', 'tblTempUsageDetail_20' ) end [2025-01-22 16:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306196', 'tblTempVendorCDR_20' ) start [2025-01-22 16:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306196', 'tblTempVendorCDR_20' ) end [2025-01-22 16:24:36] Production.INFO: ProcessCDR(1,14306196,1,1,2) [2025-01-22 16:24:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:24:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:24:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306196', 'tblTempUsageDetail_20' ) start [2025-01-22 16:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306196', 'tblTempUsageDetail_20' ) end [2025-01-22 16:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:24:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:24:41] Production.INFO: ==16941== Releasing lock... [2025-01-22 16:24:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:24:41] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:25:05 [end_date_ymd] => 2025-01-22 16:25:05 [RateCDR] => 1 ) [2025-01-22 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:25:05' and `end` < '2025-01-22 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:25:31] Production.INFO: count ==6291 [2025-01-22 16:25:33] Production.ERROR: pbx CDR StartTime 2025-01-22 13:25:05 - End Time 2025-01-22 16:25:05 [2025-01-22 16:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306201', 'tblTempUsageDetail_20' ) start [2025-01-22 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306201', 'tblTempUsageDetail_20' ) end [2025-01-22 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306201', 'tblTempVendorCDR_20' ) start [2025-01-22 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306201', 'tblTempVendorCDR_20' ) end [2025-01-22 16:25:34] Production.INFO: ProcessCDR(1,14306201,1,1,2) [2025-01-22 16:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306201', 'tblTempUsageDetail_20' ) start [2025-01-22 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306201', 'tblTempUsageDetail_20' ) end [2025-01-22 16:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:25:38] Production.INFO: ==17015== Releasing lock... [2025-01-22 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:25:38] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:26:05 [end_date_ymd] => 2025-01-22 16:26:05 [RateCDR] => 1 ) [2025-01-22 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:26:05' and `end` < '2025-01-22 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:26:24] Production.INFO: count ==6289 [2025-01-22 16:26:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:26:05 - End Time 2025-01-22 16:26:05 [2025-01-22 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306206', 'tblTempUsageDetail_20' ) start [2025-01-22 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306206', 'tblTempUsageDetail_20' ) end [2025-01-22 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306206', 'tblTempVendorCDR_20' ) start [2025-01-22 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306206', 'tblTempVendorCDR_20' ) end [2025-01-22 16:26:27] Production.INFO: ProcessCDR(1,14306206,1,1,2) [2025-01-22 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306206', 'tblTempUsageDetail_20' ) start [2025-01-22 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306206', 'tblTempUsageDetail_20' ) end [2025-01-22 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:26:31] Production.INFO: ==17125== Releasing lock... [2025-01-22 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:26:31] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:27:05 [end_date_ymd] => 2025-01-22 16:27:05 [RateCDR] => 1 ) [2025-01-22 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:27:05' and `end` < '2025-01-22 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:27:26] Production.INFO: count ==6296 [2025-01-22 16:27:28] Production.ERROR: pbx CDR StartTime 2025-01-22 13:27:05 - End Time 2025-01-22 16:27:05 [2025-01-22 16:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306211', 'tblTempUsageDetail_20' ) start [2025-01-22 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306211', 'tblTempUsageDetail_20' ) end [2025-01-22 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306211', 'tblTempVendorCDR_20' ) start [2025-01-22 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306211', 'tblTempVendorCDR_20' ) end [2025-01-22 16:27:29] Production.INFO: ProcessCDR(1,14306211,1,1,2) [2025-01-22 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306211', 'tblTempUsageDetail_20' ) start [2025-01-22 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306211', 'tblTempUsageDetail_20' ) end [2025-01-22 16:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:27:33] Production.INFO: ==17196== Releasing lock... [2025-01-22 16:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:27:33] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:28:05 [end_date_ymd] => 2025-01-22 16:28:05 [RateCDR] => 1 ) [2025-01-22 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:28:05' and `end` < '2025-01-22 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:28:22] Production.INFO: count ==6321 [2025-01-22 16:28:25] Production.ERROR: pbx CDR StartTime 2025-01-22 13:28:05 - End Time 2025-01-22 16:28:05 [2025-01-22 16:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306216', 'tblTempUsageDetail_20' ) start [2025-01-22 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306216', 'tblTempUsageDetail_20' ) end [2025-01-22 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306216', 'tblTempVendorCDR_20' ) start [2025-01-22 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306216', 'tblTempVendorCDR_20' ) end [2025-01-22 16:28:25] Production.INFO: ProcessCDR(1,14306216,1,1,2) [2025-01-22 16:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306216', 'tblTempUsageDetail_20' ) start [2025-01-22 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306216', 'tblTempUsageDetail_20' ) end [2025-01-22 16:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:28:30] Production.INFO: ==17269== Releasing lock... [2025-01-22 16:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:28:30] Production.INFO: 75.5 MB #Memory Used# [2025-01-22 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:29:06 [end_date_ymd] => 2025-01-22 16:29:06 [RateCDR] => 1 ) [2025-01-22 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:29:06' and `end` < '2025-01-22 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:29:24] Production.INFO: count ==6307 [2025-01-22 16:29:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:29:06 - End Time 2025-01-22 16:29:06 [2025-01-22 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306221', 'tblTempUsageDetail_20' ) start [2025-01-22 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306221', 'tblTempUsageDetail_20' ) end [2025-01-22 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306221', 'tblTempVendorCDR_20' ) start [2025-01-22 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306221', 'tblTempVendorCDR_20' ) end [2025-01-22 16:29:26] Production.INFO: ProcessCDR(1,14306221,1,1,2) [2025-01-22 16:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306221', 'tblTempUsageDetail_20' ) start [2025-01-22 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306221', 'tblTempUsageDetail_20' ) end [2025-01-22 16:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:29:31] Production.INFO: ==17341== Releasing lock... [2025-01-22 16:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:29:31] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:30:06 [end_date_ymd] => 2025-01-22 16:30:06 [RateCDR] => 1 ) [2025-01-22 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:30:06' and `end` < '2025-01-22 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:30:34] Production.INFO: count ==6295 [2025-01-22 16:30:36] Production.ERROR: pbx CDR StartTime 2025-01-22 13:30:06 - End Time 2025-01-22 16:30:06 [2025-01-22 16:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306227', 'tblTempUsageDetail_20' ) start [2025-01-22 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306227', 'tblTempUsageDetail_20' ) end [2025-01-22 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306227', 'tblTempVendorCDR_20' ) start [2025-01-22 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306227', 'tblTempVendorCDR_20' ) end [2025-01-22 16:30:36] Production.INFO: ProcessCDR(1,14306227,1,1,2) [2025-01-22 16:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306227', 'tblTempUsageDetail_20' ) start [2025-01-22 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306227', 'tblTempUsageDetail_20' ) end [2025-01-22 16:30:41] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:30:41] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:30:41] Production.INFO: ==17414== Releasing lock... [2025-01-22 16:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:30:41] Production.INFO: 75.25 MB #Memory Used# [2025-01-22 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:31:05 [end_date_ymd] => 2025-01-22 16:31:05 [RateCDR] => 1 ) [2025-01-22 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:31:05' and `end` < '2025-01-22 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:31:27] Production.INFO: count ==6384 [2025-01-22 16:31:29] Production.ERROR: pbx CDR StartTime 2025-01-22 13:31:05 - End Time 2025-01-22 16:31:05 [2025-01-22 16:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306232', 'tblTempUsageDetail_20' ) start [2025-01-22 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306232', 'tblTempUsageDetail_20' ) end [2025-01-22 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306232', 'tblTempVendorCDR_20' ) start [2025-01-22 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306232', 'tblTempVendorCDR_20' ) end [2025-01-22 16:31:29] Production.INFO: ProcessCDR(1,14306232,1,1,2) [2025-01-22 16:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306232', 'tblTempUsageDetail_20' ) start [2025-01-22 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306232', 'tblTempUsageDetail_20' ) end [2025-01-22 16:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:31:34] Production.INFO: ==17490== Releasing lock... [2025-01-22 16:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:31:34] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:32:05 [end_date_ymd] => 2025-01-22 16:32:05 [RateCDR] => 1 ) [2025-01-22 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:32:05' and `end` < '2025-01-22 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:32:28] Production.INFO: count ==6386 [2025-01-22 16:32:30] Production.ERROR: pbx CDR StartTime 2025-01-22 13:32:05 - End Time 2025-01-22 16:32:05 [2025-01-22 16:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306237', 'tblTempUsageDetail_20' ) start [2025-01-22 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306237', 'tblTempUsageDetail_20' ) end [2025-01-22 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306237', 'tblTempVendorCDR_20' ) start [2025-01-22 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306237', 'tblTempVendorCDR_20' ) end [2025-01-22 16:32:31] Production.INFO: ProcessCDR(1,14306237,1,1,2) [2025-01-22 16:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306237', 'tblTempUsageDetail_20' ) start [2025-01-22 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306237', 'tblTempUsageDetail_20' ) end [2025-01-22 16:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:32:36] Production.INFO: ==17560== Releasing lock... [2025-01-22 16:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:32:36] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:33:05 [end_date_ymd] => 2025-01-22 16:33:05 [RateCDR] => 1 ) [2025-01-22 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:33:05' and `end` < '2025-01-22 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:33:24] Production.INFO: count ==6388 [2025-01-22 16:33:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:33:05 - End Time 2025-01-22 16:33:05 [2025-01-22 16:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306242', 'tblTempUsageDetail_20' ) start [2025-01-22 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306242', 'tblTempUsageDetail_20' ) end [2025-01-22 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306242', 'tblTempVendorCDR_20' ) start [2025-01-22 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306242', 'tblTempVendorCDR_20' ) end [2025-01-22 16:33:27] Production.INFO: ProcessCDR(1,14306242,1,1,2) [2025-01-22 16:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306242', 'tblTempUsageDetail_20' ) start [2025-01-22 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306242', 'tblTempUsageDetail_20' ) end [2025-01-22 16:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:33:31] Production.INFO: ==17629== Releasing lock... [2025-01-22 16:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:33:31] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:34:05 [end_date_ymd] => 2025-01-22 16:34:05 [RateCDR] => 1 ) [2025-01-22 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:34:05' and `end` < '2025-01-22 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:34:27] Production.INFO: count ==6379 [2025-01-22 16:34:29] Production.ERROR: pbx CDR StartTime 2025-01-22 13:34:05 - End Time 2025-01-22 16:34:05 [2025-01-22 16:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306247', 'tblTempUsageDetail_20' ) start [2025-01-22 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306247', 'tblTempUsageDetail_20' ) end [2025-01-22 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306247', 'tblTempVendorCDR_20' ) start [2025-01-22 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306247', 'tblTempVendorCDR_20' ) end [2025-01-22 16:34:29] Production.INFO: ProcessCDR(1,14306247,1,1,2) [2025-01-22 16:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306247', 'tblTempUsageDetail_20' ) start [2025-01-22 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306247', 'tblTempUsageDetail_20' ) end [2025-01-22 16:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:34:34] Production.INFO: ==17700== Releasing lock... [2025-01-22 16:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:34:34] Production.INFO: 75.75 MB #Memory Used# [2025-01-22 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:35:04 [end_date_ymd] => 2025-01-22 16:35:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 13:35:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 16:35:22] Production.INFO: count ==6366 [2025-01-22 16:35:25] Production.ERROR: pbx CDR StartTime 2025-01-22 13:35:04 - End Time 2025-01-22 16:35:04 [2025-01-22 16:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306252', 'tblTempUsageDetail_20' ) start [2025-01-22 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306252', 'tblTempUsageDetail_20' ) end [2025-01-22 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306252', 'tblTempVendorCDR_20' ) start [2025-01-22 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306252', 'tblTempVendorCDR_20' ) end [2025-01-22 16:35:25] Production.INFO: ProcessCDR(1,14306252,1,1,2) [2025-01-22 16:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306252', 'tblTempUsageDetail_20' ) start [2025-01-22 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306252', 'tblTempUsageDetail_20' ) end [2025-01-22 16:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:35:29] Production.INFO: ==17770== Releasing lock... [2025-01-22 16:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:35:29] Production.INFO: 75.75 MB #Memory Used# [2025-01-22 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:36:05 [end_date_ymd] => 2025-01-22 16:36:05 [RateCDR] => 1 ) [2025-01-22 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:36:05' and `end` < '2025-01-22 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:36:20] Production.INFO: count ==6381 [2025-01-22 16:36:22] Production.ERROR: pbx CDR StartTime 2025-01-22 13:36:05 - End Time 2025-01-22 16:36:05 [2025-01-22 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306257', 'tblTempUsageDetail_20' ) start [2025-01-22 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306257', 'tblTempUsageDetail_20' ) end [2025-01-22 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306257', 'tblTempVendorCDR_20' ) start [2025-01-22 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306257', 'tblTempVendorCDR_20' ) end [2025-01-22 16:36:22] Production.INFO: ProcessCDR(1,14306257,1,1,2) [2025-01-22 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306257', 'tblTempUsageDetail_20' ) start [2025-01-22 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306257', 'tblTempUsageDetail_20' ) end [2025-01-22 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:36:27] Production.INFO: ==17844== Releasing lock... [2025-01-22 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:36:27] Production.INFO: 75.75 MB #Memory Used# [2025-01-22 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:37:05 [end_date_ymd] => 2025-01-22 16:37:05 [RateCDR] => 1 ) [2025-01-22 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:37:05' and `end` < '2025-01-22 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:37:31] Production.INFO: count ==6384 [2025-01-22 16:37:34] Production.ERROR: pbx CDR StartTime 2025-01-22 13:37:05 - End Time 2025-01-22 16:37:05 [2025-01-22 16:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306262', 'tblTempUsageDetail_20' ) start [2025-01-22 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306262', 'tblTempUsageDetail_20' ) end [2025-01-22 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306262', 'tblTempVendorCDR_20' ) start [2025-01-22 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306262', 'tblTempVendorCDR_20' ) end [2025-01-22 16:37:34] Production.INFO: ProcessCDR(1,14306262,1,1,2) [2025-01-22 16:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306262', 'tblTempUsageDetail_20' ) start [2025-01-22 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306262', 'tblTempUsageDetail_20' ) end [2025-01-22 16:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:37:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:37:38] Production.INFO: ==17915== Releasing lock... [2025-01-22 16:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:37:38] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:38:05 [end_date_ymd] => 2025-01-22 16:38:05 [RateCDR] => 1 ) [2025-01-22 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:38:05' and `end` < '2025-01-22 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:38:28] Production.INFO: count ==6385 [2025-01-22 16:38:30] Production.ERROR: pbx CDR StartTime 2025-01-22 13:38:05 - End Time 2025-01-22 16:38:05 [2025-01-22 16:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306267', 'tblTempUsageDetail_20' ) start [2025-01-22 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306267', 'tblTempUsageDetail_20' ) end [2025-01-22 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306267', 'tblTempVendorCDR_20' ) start [2025-01-22 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306267', 'tblTempVendorCDR_20' ) end [2025-01-22 16:38:31] Production.INFO: ProcessCDR(1,14306267,1,1,2) [2025-01-22 16:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306267', 'tblTempUsageDetail_20' ) start [2025-01-22 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306267', 'tblTempUsageDetail_20' ) end [2025-01-22 16:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:38:35] Production.INFO: ==17989== Releasing lock... [2025-01-22 16:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:38:35] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:39:05 [end_date_ymd] => 2025-01-22 16:39:05 [RateCDR] => 1 ) [2025-01-22 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:39:05' and `end` < '2025-01-22 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:39:32] Production.INFO: count ==6393 [2025-01-22 16:39:34] Production.ERROR: pbx CDR StartTime 2025-01-22 13:39:05 - End Time 2025-01-22 16:39:05 [2025-01-22 16:39:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306272', 'tblTempUsageDetail_20' ) start [2025-01-22 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306272', 'tblTempUsageDetail_20' ) end [2025-01-22 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306272', 'tblTempVendorCDR_20' ) start [2025-01-22 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306272', 'tblTempVendorCDR_20' ) end [2025-01-22 16:39:34] Production.INFO: ProcessCDR(1,14306272,1,1,2) [2025-01-22 16:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306272', 'tblTempUsageDetail_20' ) start [2025-01-22 16:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306272', 'tblTempUsageDetail_20' ) end [2025-01-22 16:39:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:39:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:39:38] Production.INFO: ==18060== Releasing lock... [2025-01-22 16:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:39:38] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:40:06 [end_date_ymd] => 2025-01-22 16:40:06 [RateCDR] => 1 ) [2025-01-22 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:40:06' and `end` < '2025-01-22 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:40:31] Production.INFO: count ==6393 [2025-01-22 16:40:34] Production.ERROR: pbx CDR StartTime 2025-01-22 13:40:06 - End Time 2025-01-22 16:40:06 [2025-01-22 16:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306278', 'tblTempUsageDetail_20' ) start [2025-01-22 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306278', 'tblTempUsageDetail_20' ) end [2025-01-22 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306278', 'tblTempVendorCDR_20' ) start [2025-01-22 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306278', 'tblTempVendorCDR_20' ) end [2025-01-22 16:40:34] Production.INFO: ProcessCDR(1,14306278,1,1,2) [2025-01-22 16:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306278', 'tblTempUsageDetail_20' ) start [2025-01-22 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306278', 'tblTempUsageDetail_20' ) end [2025-01-22 16:40:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:40:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:40:38] Production.INFO: ==18131== Releasing lock... [2025-01-22 16:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:40:38] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:41:05 [end_date_ymd] => 2025-01-22 16:41:05 [RateCDR] => 1 ) [2025-01-22 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:41:05' and `end` < '2025-01-22 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:41:24] Production.INFO: count ==6499 [2025-01-22 16:41:27] Production.ERROR: pbx CDR StartTime 2025-01-22 13:41:05 - End Time 2025-01-22 16:41:05 [2025-01-22 16:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306283', 'tblTempUsageDetail_20' ) start [2025-01-22 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306283', 'tblTempUsageDetail_20' ) end [2025-01-22 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306283', 'tblTempVendorCDR_20' ) start [2025-01-22 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306283', 'tblTempVendorCDR_20' ) end [2025-01-22 16:41:27] Production.INFO: ProcessCDR(1,14306283,1,1,2) [2025-01-22 16:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306283', 'tblTempUsageDetail_20' ) start [2025-01-22 16:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306283', 'tblTempUsageDetail_20' ) end [2025-01-22 16:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:41:32] Production.INFO: ==18227== Releasing lock... [2025-01-22 16:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:41:32] Production.INFO: 76.75 MB #Memory Used# [2025-01-22 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:42:05 [end_date_ymd] => 2025-01-22 16:42:05 [RateCDR] => 1 ) [2025-01-22 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:42:05' and `end` < '2025-01-22 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:42:25] Production.INFO: count ==6491 [2025-01-22 16:42:27] Production.ERROR: pbx CDR StartTime 2025-01-22 13:42:05 - End Time 2025-01-22 16:42:05 [2025-01-22 16:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306288', 'tblTempUsageDetail_20' ) start [2025-01-22 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306288', 'tblTempUsageDetail_20' ) end [2025-01-22 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306288', 'tblTempVendorCDR_20' ) start [2025-01-22 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306288', 'tblTempVendorCDR_20' ) end [2025-01-22 16:42:28] Production.INFO: ProcessCDR(1,14306288,1,1,2) [2025-01-22 16:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306288', 'tblTempUsageDetail_20' ) start [2025-01-22 16:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306288', 'tblTempUsageDetail_20' ) end [2025-01-22 16:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:42:32] Production.INFO: ==18316== Releasing lock... [2025-01-22 16:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:42:32] Production.INFO: 76.75 MB #Memory Used# [2025-01-22 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:43:05 [end_date_ymd] => 2025-01-22 16:43:05 [RateCDR] => 1 ) [2025-01-22 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:43:05' and `end` < '2025-01-22 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:43:22] Production.INFO: count ==6480 [2025-01-22 16:43:24] Production.ERROR: pbx CDR StartTime 2025-01-22 13:43:05 - End Time 2025-01-22 16:43:05 [2025-01-22 16:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306293', 'tblTempUsageDetail_20' ) start [2025-01-22 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306293', 'tblTempUsageDetail_20' ) end [2025-01-22 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306293', 'tblTempVendorCDR_20' ) start [2025-01-22 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306293', 'tblTempVendorCDR_20' ) end [2025-01-22 16:43:24] Production.INFO: ProcessCDR(1,14306293,1,1,2) [2025-01-22 16:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306293', 'tblTempUsageDetail_20' ) start [2025-01-22 16:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306293', 'tblTempUsageDetail_20' ) end [2025-01-22 16:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:43:29] Production.INFO: ==18389== Releasing lock... [2025-01-22 16:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:43:29] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:44:06 [end_date_ymd] => 2025-01-22 16:44:06 [RateCDR] => 1 ) [2025-01-22 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:44:06' and `end` < '2025-01-22 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:44:21] Production.INFO: count ==6474 [2025-01-22 16:44:24] Production.ERROR: pbx CDR StartTime 2025-01-22 13:44:06 - End Time 2025-01-22 16:44:06 [2025-01-22 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306298', 'tblTempUsageDetail_20' ) start [2025-01-22 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306298', 'tblTempUsageDetail_20' ) end [2025-01-22 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306298', 'tblTempVendorCDR_20' ) start [2025-01-22 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306298', 'tblTempVendorCDR_20' ) end [2025-01-22 16:44:24] Production.INFO: ProcessCDR(1,14306298,1,1,2) [2025-01-22 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306298', 'tblTempUsageDetail_20' ) start [2025-01-22 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306298', 'tblTempUsageDetail_20' ) end [2025-01-22 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:44:29] Production.INFO: ==18463== Releasing lock... [2025-01-22 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:44:29] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:45:05 [end_date_ymd] => 2025-01-22 16:45:05 [RateCDR] => 1 ) [2025-01-22 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:45:05' and `end` < '2025-01-22 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:45:23] Production.INFO: count ==6458 [2025-01-22 16:45:25] Production.ERROR: pbx CDR StartTime 2025-01-22 13:45:05 - End Time 2025-01-22 16:45:05 [2025-01-22 16:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306303', 'tblTempUsageDetail_20' ) start [2025-01-22 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306303', 'tblTempUsageDetail_20' ) end [2025-01-22 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306303', 'tblTempVendorCDR_20' ) start [2025-01-22 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306303', 'tblTempVendorCDR_20' ) end [2025-01-22 16:45:25] Production.INFO: ProcessCDR(1,14306303,1,1,2) [2025-01-22 16:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306303', 'tblTempUsageDetail_20' ) start [2025-01-22 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306303', 'tblTempUsageDetail_20' ) end [2025-01-22 16:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:45:30] Production.INFO: ==18534== Releasing lock... [2025-01-22 16:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:45:30] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:46:05 [end_date_ymd] => 2025-01-22 16:46:05 [RateCDR] => 1 ) [2025-01-22 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:46:05' and `end` < '2025-01-22 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:46:26] Production.INFO: count ==6460 [2025-01-22 16:46:28] Production.ERROR: pbx CDR StartTime 2025-01-22 13:46:05 - End Time 2025-01-22 16:46:05 [2025-01-22 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306308', 'tblTempUsageDetail_20' ) start [2025-01-22 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306308', 'tblTempUsageDetail_20' ) end [2025-01-22 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306308', 'tblTempVendorCDR_20' ) start [2025-01-22 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306308', 'tblTempVendorCDR_20' ) end [2025-01-22 16:46:28] Production.INFO: ProcessCDR(1,14306308,1,1,2) [2025-01-22 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306308', 'tblTempUsageDetail_20' ) start [2025-01-22 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306308', 'tblTempUsageDetail_20' ) end [2025-01-22 16:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:46:33] Production.INFO: ==18605== Releasing lock... [2025-01-22 16:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:46:33] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:47:04 [end_date_ymd] => 2025-01-22 16:47:04 [RateCDR] => 1 ) [2025-01-22 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:47:04' and `end` < '2025-01-22 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:47:20] Production.INFO: count ==6462 [2025-01-22 16:47:23] Production.ERROR: pbx CDR StartTime 2025-01-22 13:47:04 - End Time 2025-01-22 16:47:04 [2025-01-22 16:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306313', 'tblTempUsageDetail_20' ) start [2025-01-22 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306313', 'tblTempUsageDetail_20' ) end [2025-01-22 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306313', 'tblTempVendorCDR_20' ) start [2025-01-22 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306313', 'tblTempVendorCDR_20' ) end [2025-01-22 16:47:23] Production.INFO: ProcessCDR(1,14306313,1,1,2) [2025-01-22 16:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306313', 'tblTempUsageDetail_20' ) start [2025-01-22 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306313', 'tblTempUsageDetail_20' ) end [2025-01-22 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:47:28] Production.INFO: ==18676== Releasing lock... [2025-01-22 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:47:28] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:48:05 [end_date_ymd] => 2025-01-22 16:48:05 [RateCDR] => 1 ) [2025-01-22 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:48:05' and `end` < '2025-01-22 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:48:22] Production.INFO: count ==6451 [2025-01-22 16:48:25] Production.ERROR: pbx CDR StartTime 2025-01-22 13:48:05 - End Time 2025-01-22 16:48:05 [2025-01-22 16:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306318', 'tblTempUsageDetail_20' ) start [2025-01-22 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306318', 'tblTempUsageDetail_20' ) end [2025-01-22 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306318', 'tblTempVendorCDR_20' ) start [2025-01-22 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306318', 'tblTempVendorCDR_20' ) end [2025-01-22 16:48:25] Production.INFO: ProcessCDR(1,14306318,1,1,2) [2025-01-22 16:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306318', 'tblTempUsageDetail_20' ) start [2025-01-22 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306318', 'tblTempUsageDetail_20' ) end [2025-01-22 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:48:30] Production.INFO: ==18748== Releasing lock... [2025-01-22 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:48:30] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:49:05 [end_date_ymd] => 2025-01-22 16:49:05 [RateCDR] => 1 ) [2025-01-22 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:49:05' and `end` < '2025-01-22 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:49:27] Production.INFO: count ==6457 [2025-01-22 16:49:29] Production.ERROR: pbx CDR StartTime 2025-01-22 13:49:05 - End Time 2025-01-22 16:49:05 [2025-01-22 16:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306323', 'tblTempUsageDetail_20' ) start [2025-01-22 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306323', 'tblTempUsageDetail_20' ) end [2025-01-22 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306323', 'tblTempVendorCDR_20' ) start [2025-01-22 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306323', 'tblTempVendorCDR_20' ) end [2025-01-22 16:49:29] Production.INFO: ProcessCDR(1,14306323,1,1,2) [2025-01-22 16:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306323', 'tblTempUsageDetail_20' ) start [2025-01-22 16:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306323', 'tblTempUsageDetail_20' ) end [2025-01-22 16:49:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:49:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:49:34] Production.INFO: ==18817== Releasing lock... [2025-01-22 16:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:49:34] Production.INFO: 76.5 MB #Memory Used# [2025-01-22 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:50:06 [end_date_ymd] => 2025-01-22 16:50:06 [RateCDR] => 1 ) [2025-01-22 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:50:06' and `end` < '2025-01-22 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:50:32] Production.INFO: count ==6449 [2025-01-22 16:50:35] Production.ERROR: pbx CDR StartTime 2025-01-22 13:50:06 - End Time 2025-01-22 16:50:06 [2025-01-22 16:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306329', 'tblTempUsageDetail_20' ) start [2025-01-22 16:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306329', 'tblTempUsageDetail_20' ) end [2025-01-22 16:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306329', 'tblTempVendorCDR_20' ) start [2025-01-22 16:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306329', 'tblTempVendorCDR_20' ) end [2025-01-22 16:50:35] Production.INFO: ProcessCDR(1,14306329,1,1,2) [2025-01-22 16:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306329', 'tblTempUsageDetail_20' ) start [2025-01-22 16:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306329', 'tblTempUsageDetail_20' ) end [2025-01-22 16:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:50:40] Production.INFO: ==18894== Releasing lock... [2025-01-22 16:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:50:40] Production.INFO: 76.25 MB #Memory Used# [2025-01-22 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:51:04 [end_date_ymd] => 2025-01-22 16:51:04 [RateCDR] => 1 ) [2025-01-22 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:51:04' and `end` < '2025-01-22 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:51:29] Production.INFO: count ==6432 [2025-01-22 16:51:31] Production.ERROR: pbx CDR StartTime 2025-01-22 13:51:04 - End Time 2025-01-22 16:51:04 [2025-01-22 16:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306334', 'tblTempUsageDetail_20' ) start [2025-01-22 16:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306334', 'tblTempUsageDetail_20' ) end [2025-01-22 16:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306334', 'tblTempVendorCDR_20' ) start [2025-01-22 16:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306334', 'tblTempVendorCDR_20' ) end [2025-01-22 16:51:32] Production.INFO: ProcessCDR(1,14306334,1,1,2) [2025-01-22 16:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306334', 'tblTempUsageDetail_20' ) start [2025-01-22 16:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306334', 'tblTempUsageDetail_20' ) end [2025-01-22 16:51:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:51:36] Production.INFO: ==18970== Releasing lock... [2025-01-22 16:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:51:36] Production.INFO: 76.25 MB #Memory Used# [2025-01-22 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:52:05 [end_date_ymd] => 2025-01-22 16:52:05 [RateCDR] => 1 ) [2025-01-22 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:52:05' and `end` < '2025-01-22 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:52:27] Production.INFO: count ==6436 [2025-01-22 16:52:30] Production.ERROR: pbx CDR StartTime 2025-01-22 13:52:05 - End Time 2025-01-22 16:52:05 [2025-01-22 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306339', 'tblTempUsageDetail_20' ) start [2025-01-22 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306339', 'tblTempUsageDetail_20' ) end [2025-01-22 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306339', 'tblTempVendorCDR_20' ) start [2025-01-22 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306339', 'tblTempVendorCDR_20' ) end [2025-01-22 16:52:30] Production.INFO: ProcessCDR(1,14306339,1,1,2) [2025-01-22 16:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306339', 'tblTempUsageDetail_20' ) start [2025-01-22 16:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306339', 'tblTempUsageDetail_20' ) end [2025-01-22 16:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:52:35] Production.INFO: ==19040== Releasing lock... [2025-01-22 16:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:52:35] Production.INFO: 76.25 MB #Memory Used# [2025-01-22 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:53:05 [end_date_ymd] => 2025-01-22 16:53:05 [RateCDR] => 1 ) [2025-01-22 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:53:05' and `end` < '2025-01-22 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:53:29] Production.INFO: count ==6421 [2025-01-22 16:53:32] Production.ERROR: pbx CDR StartTime 2025-01-22 13:53:05 - End Time 2025-01-22 16:53:05 [2025-01-22 16:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306344', 'tblTempUsageDetail_20' ) start [2025-01-22 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306344', 'tblTempUsageDetail_20' ) end [2025-01-22 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306344', 'tblTempVendorCDR_20' ) start [2025-01-22 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306344', 'tblTempVendorCDR_20' ) end [2025-01-22 16:53:32] Production.INFO: ProcessCDR(1,14306344,1,1,2) [2025-01-22 16:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306344', 'tblTempUsageDetail_20' ) start [2025-01-22 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306344', 'tblTempUsageDetail_20' ) end [2025-01-22 16:53:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:53:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:53:36] Production.INFO: ==19110== Releasing lock... [2025-01-22 16:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:53:36] Production.INFO: 76.25 MB #Memory Used# [2025-01-22 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:54:05 [end_date_ymd] => 2025-01-22 16:54:05 [RateCDR] => 1 ) [2025-01-22 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:54:05' and `end` < '2025-01-22 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:54:25] Production.INFO: count ==6408 [2025-01-22 16:54:27] Production.ERROR: pbx CDR StartTime 2025-01-22 13:54:05 - End Time 2025-01-22 16:54:05 [2025-01-22 16:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306349', 'tblTempUsageDetail_20' ) start [2025-01-22 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306349', 'tblTempUsageDetail_20' ) end [2025-01-22 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306349', 'tblTempVendorCDR_20' ) start [2025-01-22 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306349', 'tblTempVendorCDR_20' ) end [2025-01-22 16:54:27] Production.INFO: ProcessCDR(1,14306349,1,1,2) [2025-01-22 16:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306349', 'tblTempUsageDetail_20' ) start [2025-01-22 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306349', 'tblTempUsageDetail_20' ) end [2025-01-22 16:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:54:30] Production.INFO: ==19184== Releasing lock... [2025-01-22 16:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:54:30] Production.INFO: 76.25 MB #Memory Used# [2025-01-22 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:55:06 [end_date_ymd] => 2025-01-22 16:55:06 [RateCDR] => 1 ) [2025-01-22 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:55:06' and `end` < '2025-01-22 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:55:30] Production.INFO: count ==6396 [2025-01-22 16:55:33] Production.ERROR: pbx CDR StartTime 2025-01-22 13:55:06 - End Time 2025-01-22 16:55:06 [2025-01-22 16:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306354', 'tblTempUsageDetail_20' ) start [2025-01-22 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306354', 'tblTempUsageDetail_20' ) end [2025-01-22 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306354', 'tblTempVendorCDR_20' ) start [2025-01-22 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306354', 'tblTempVendorCDR_20' ) end [2025-01-22 16:55:33] Production.INFO: ProcessCDR(1,14306354,1,1,2) [2025-01-22 16:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306354', 'tblTempUsageDetail_20' ) start [2025-01-22 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306354', 'tblTempUsageDetail_20' ) end [2025-01-22 16:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:55:38] Production.INFO: ==19257== Releasing lock... [2025-01-22 16:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:55:38] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:56:05 [end_date_ymd] => 2025-01-22 16:56:05 [RateCDR] => 1 ) [2025-01-22 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:56:05' and `end` < '2025-01-22 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:56:29] Production.INFO: count ==6395 [2025-01-22 16:56:32] Production.ERROR: pbx CDR StartTime 2025-01-22 13:56:05 - End Time 2025-01-22 16:56:05 [2025-01-22 16:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306359', 'tblTempUsageDetail_20' ) start [2025-01-22 16:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306359', 'tblTempUsageDetail_20' ) end [2025-01-22 16:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306359', 'tblTempVendorCDR_20' ) start [2025-01-22 16:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306359', 'tblTempVendorCDR_20' ) end [2025-01-22 16:56:32] Production.INFO: ProcessCDR(1,14306359,1,1,2) [2025-01-22 16:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306359', 'tblTempUsageDetail_20' ) start [2025-01-22 16:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306359', 'tblTempUsageDetail_20' ) end [2025-01-22 16:56:37] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:56:37] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:56:37] Production.INFO: ==19329== Releasing lock... [2025-01-22 16:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:56:37] Production.INFO: 76 MB #Memory Used# [2025-01-22 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:57:06 [end_date_ymd] => 2025-01-22 16:57:06 [RateCDR] => 1 ) [2025-01-22 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:57:06' and `end` < '2025-01-22 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:57:26] Production.INFO: count ==6371 [2025-01-22 16:57:28] Production.ERROR: pbx CDR StartTime 2025-01-22 13:57:06 - End Time 2025-01-22 16:57:06 [2025-01-22 16:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306364', 'tblTempUsageDetail_20' ) start [2025-01-22 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306364', 'tblTempUsageDetail_20' ) end [2025-01-22 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306364', 'tblTempVendorCDR_20' ) start [2025-01-22 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306364', 'tblTempVendorCDR_20' ) end [2025-01-22 16:57:29] Production.INFO: ProcessCDR(1,14306364,1,1,2) [2025-01-22 16:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306364', 'tblTempUsageDetail_20' ) start [2025-01-22 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306364', 'tblTempUsageDetail_20' ) end [2025-01-22 16:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:57:33] Production.INFO: ==19438== Releasing lock... [2025-01-22 16:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:57:33] Production.INFO: 75.75 MB #Memory Used# [2025-01-22 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:58:05 [end_date_ymd] => 2025-01-22 16:58:05 [RateCDR] => 1 ) [2025-01-22 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:58:05' and `end` < '2025-01-22 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:58:24] Production.INFO: count ==6358 [2025-01-22 16:58:26] Production.ERROR: pbx CDR StartTime 2025-01-22 13:58:05 - End Time 2025-01-22 16:58:05 [2025-01-22 16:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306369', 'tblTempUsageDetail_20' ) start [2025-01-22 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306369', 'tblTempUsageDetail_20' ) end [2025-01-22 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306369', 'tblTempVendorCDR_20' ) start [2025-01-22 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306369', 'tblTempVendorCDR_20' ) end [2025-01-22 16:58:26] Production.INFO: ProcessCDR(1,14306369,1,1,2) [2025-01-22 16:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306369', 'tblTempUsageDetail_20' ) start [2025-01-22 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306369', 'tblTempUsageDetail_20' ) end [2025-01-22 16:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:58:31] Production.INFO: ==19512== Releasing lock... [2025-01-22 16:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:58:31] Production.INFO: 75.75 MB #Memory Used# [2025-01-22 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 13:59:05 [end_date_ymd] => 2025-01-22 16:59:05 [RateCDR] => 1 ) [2025-01-22 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 13:59:05' and `end` < '2025-01-22 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 16:59:23] Production.INFO: count ==6333 [2025-01-22 16:59:25] Production.ERROR: pbx CDR StartTime 2025-01-22 13:59:05 - End Time 2025-01-22 16:59:05 [2025-01-22 16:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306374', 'tblTempUsageDetail_20' ) start [2025-01-22 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306374', 'tblTempUsageDetail_20' ) end [2025-01-22 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306374', 'tblTempVendorCDR_20' ) start [2025-01-22 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306374', 'tblTempVendorCDR_20' ) end [2025-01-22 16:59:25] Production.INFO: ProcessCDR(1,14306374,1,1,2) [2025-01-22 16:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 16:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306374', 'tblTempUsageDetail_20' ) start [2025-01-22 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306374', 'tblTempUsageDetail_20' ) end [2025-01-22 16:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 16:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 16:59:30] Production.INFO: ==19601== Releasing lock... [2025-01-22 16:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 16:59:30] Production.INFO: 75.5 MB #Memory Used# [2025-01-22 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:00:06 [end_date_ymd] => 2025-01-22 17:00:06 [RateCDR] => 1 ) [2025-01-22 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:00:06' and `end` < '2025-01-22 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:00:29] Production.INFO: count ==6328 [2025-01-22 17:00:31] Production.ERROR: pbx CDR StartTime 2025-01-22 14:00:06 - End Time 2025-01-22 17:00:06 [2025-01-22 17:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306380', 'tblTempUsageDetail_20' ) start [2025-01-22 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306380', 'tblTempUsageDetail_20' ) end [2025-01-22 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306380', 'tblTempVendorCDR_20' ) start [2025-01-22 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306380', 'tblTempVendorCDR_20' ) end [2025-01-22 17:00:32] Production.INFO: ProcessCDR(1,14306380,1,1,2) [2025-01-22 17:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306380', 'tblTempUsageDetail_20' ) start [2025-01-22 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306380', 'tblTempUsageDetail_20' ) end [2025-01-22 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:00:36] Production.INFO: ==19684== Releasing lock... [2025-01-22 17:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:00:36] Production.INFO: 75.5 MB #Memory Used# [2025-01-22 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:01:06 [end_date_ymd] => 2025-01-22 17:01:06 [RateCDR] => 1 ) [2025-01-22 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:01:06' and `end` < '2025-01-22 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:01:21] Production.INFO: count ==6222 [2025-01-22 17:01:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:01:06 - End Time 2025-01-22 17:01:06 [2025-01-22 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306385', 'tblTempUsageDetail_20' ) start [2025-01-22 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306385', 'tblTempUsageDetail_20' ) end [2025-01-22 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306385', 'tblTempVendorCDR_20' ) start [2025-01-22 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306385', 'tblTempVendorCDR_20' ) end [2025-01-22 17:01:23] Production.INFO: ProcessCDR(1,14306385,1,1,2) [2025-01-22 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306385', 'tblTempUsageDetail_20' ) start [2025-01-22 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306385', 'tblTempUsageDetail_20' ) end [2025-01-22 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:01:27] Production.INFO: ==19785== Releasing lock... [2025-01-22 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:01:27] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:02:05 [end_date_ymd] => 2025-01-22 17:02:05 [RateCDR] => 1 ) [2025-01-22 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:02:05' and `end` < '2025-01-22 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:02:21] Production.INFO: count ==6233 [2025-01-22 17:02:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:02:05 - End Time 2025-01-22 17:02:05 [2025-01-22 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306390', 'tblTempUsageDetail_20' ) start [2025-01-22 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306390', 'tblTempUsageDetail_20' ) end [2025-01-22 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306390', 'tblTempVendorCDR_20' ) start [2025-01-22 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306390', 'tblTempVendorCDR_20' ) end [2025-01-22 17:02:24] Production.INFO: ProcessCDR(1,14306390,1,1,2) [2025-01-22 17:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306390', 'tblTempUsageDetail_20' ) start [2025-01-22 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306390', 'tblTempUsageDetail_20' ) end [2025-01-22 17:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:02:29] Production.INFO: ==19869== Releasing lock... [2025-01-22 17:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:02:29] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:03:04 [end_date_ymd] => 2025-01-22 17:03:04 [RateCDR] => 1 ) [2025-01-22 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:03:04' and `end` < '2025-01-22 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:03:19] Production.INFO: count ==6222 [2025-01-22 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:03:04 - End Time 2025-01-22 17:03:04 [2025-01-22 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306395', 'tblTempUsageDetail_20' ) start [2025-01-22 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306395', 'tblTempUsageDetail_20' ) end [2025-01-22 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306395', 'tblTempVendorCDR_20' ) start [2025-01-22 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306395', 'tblTempVendorCDR_20' ) end [2025-01-22 17:03:21] Production.INFO: ProcessCDR(1,14306395,1,1,2) [2025-01-22 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306395', 'tblTempUsageDetail_20' ) start [2025-01-22 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306395', 'tblTempUsageDetail_20' ) end [2025-01-22 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:03:24] Production.INFO: ==19955== Releasing lock... [2025-01-22 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:03:24] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:04:05 [end_date_ymd] => 2025-01-22 17:04:05 [RateCDR] => 1 ) [2025-01-22 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:04:05' and `end` < '2025-01-22 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:04:19] Production.INFO: count ==6223 [2025-01-22 17:04:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:04:05 - End Time 2025-01-22 17:04:05 [2025-01-22 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306400', 'tblTempUsageDetail_20' ) start [2025-01-22 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306400', 'tblTempUsageDetail_20' ) end [2025-01-22 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306400', 'tblTempVendorCDR_20' ) start [2025-01-22 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306400', 'tblTempVendorCDR_20' ) end [2025-01-22 17:04:22] Production.INFO: ProcessCDR(1,14306400,1,1,2) [2025-01-22 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306400', 'tblTempUsageDetail_20' ) start [2025-01-22 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306400', 'tblTempUsageDetail_20' ) end [2025-01-22 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:04:27] Production.INFO: ==20041== Releasing lock... [2025-01-22 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:04:27] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:05:06 [end_date_ymd] => 2025-01-22 17:05:06 [RateCDR] => 1 ) [2025-01-22 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:05:06' and `end` < '2025-01-22 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:05:21] Production.INFO: count ==6222 [2025-01-22 17:05:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:05:06 - End Time 2025-01-22 17:05:06 [2025-01-22 17:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306405', 'tblTempUsageDetail_20' ) start [2025-01-22 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306405', 'tblTempUsageDetail_20' ) end [2025-01-22 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306405', 'tblTempVendorCDR_20' ) start [2025-01-22 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306405', 'tblTempVendorCDR_20' ) end [2025-01-22 17:05:23] Production.INFO: ProcessCDR(1,14306405,1,1,2) [2025-01-22 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306405', 'tblTempUsageDetail_20' ) start [2025-01-22 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306405', 'tblTempUsageDetail_20' ) end [2025-01-22 17:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:05:28] Production.INFO: ==20124== Releasing lock... [2025-01-22 17:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:05:28] Production.INFO: 74.75 MB #Memory Used# [2025-01-22 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:06:05 [end_date_ymd] => 2025-01-22 17:06:05 [RateCDR] => 1 ) [2025-01-22 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:06:05' and `end` < '2025-01-22 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:06:21] Production.INFO: count ==6213 [2025-01-22 17:06:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:06:05 - End Time 2025-01-22 17:06:05 [2025-01-22 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306410', 'tblTempUsageDetail_20' ) start [2025-01-22 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306410', 'tblTempUsageDetail_20' ) end [2025-01-22 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306410', 'tblTempVendorCDR_20' ) start [2025-01-22 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306410', 'tblTempVendorCDR_20' ) end [2025-01-22 17:06:24] Production.INFO: ProcessCDR(1,14306410,1,1,2) [2025-01-22 17:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306410', 'tblTempUsageDetail_20' ) start [2025-01-22 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306410', 'tblTempUsageDetail_20' ) end [2025-01-22 17:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:06:29] Production.INFO: ==20215== Releasing lock... [2025-01-22 17:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:06:29] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:07:05 [end_date_ymd] => 2025-01-22 17:07:05 [RateCDR] => 1 ) [2025-01-22 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:07:05' and `end` < '2025-01-22 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:07:21] Production.INFO: count ==6205 [2025-01-22 17:07:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:07:05 - End Time 2025-01-22 17:07:05 [2025-01-22 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306415', 'tblTempUsageDetail_20' ) start [2025-01-22 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306415', 'tblTempUsageDetail_20' ) end [2025-01-22 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306415', 'tblTempVendorCDR_20' ) start [2025-01-22 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306415', 'tblTempVendorCDR_20' ) end [2025-01-22 17:07:24] Production.INFO: ProcessCDR(1,14306415,1,1,2) [2025-01-22 17:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306415', 'tblTempUsageDetail_20' ) start [2025-01-22 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306415', 'tblTempUsageDetail_20' ) end [2025-01-22 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:07:28] Production.INFO: ==20298== Releasing lock... [2025-01-22 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:07:28] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:08:05 [end_date_ymd] => 2025-01-22 17:08:05 [RateCDR] => 1 ) [2025-01-22 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:08:05' and `end` < '2025-01-22 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:08:21] Production.INFO: count ==6207 [2025-01-22 17:08:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:08:05 - End Time 2025-01-22 17:08:05 [2025-01-22 17:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306420', 'tblTempUsageDetail_20' ) start [2025-01-22 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306420', 'tblTempUsageDetail_20' ) end [2025-01-22 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306420', 'tblTempVendorCDR_20' ) start [2025-01-22 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306420', 'tblTempVendorCDR_20' ) end [2025-01-22 17:08:24] Production.INFO: ProcessCDR(1,14306420,1,1,2) [2025-01-22 17:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306420', 'tblTempUsageDetail_20' ) start [2025-01-22 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306420', 'tblTempUsageDetail_20' ) end [2025-01-22 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:08:28] Production.INFO: ==20390== Releasing lock... [2025-01-22 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:08:28] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:09:05 [end_date_ymd] => 2025-01-22 17:09:05 [RateCDR] => 1 ) [2025-01-22 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:09:05' and `end` < '2025-01-22 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:09:19] Production.INFO: count ==6209 [2025-01-22 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:09:05 - End Time 2025-01-22 17:09:05 [2025-01-22 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306425', 'tblTempUsageDetail_20' ) start [2025-01-22 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306425', 'tblTempUsageDetail_20' ) end [2025-01-22 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306425', 'tblTempVendorCDR_20' ) start [2025-01-22 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306425', 'tblTempVendorCDR_20' ) end [2025-01-22 17:09:21] Production.INFO: ProcessCDR(1,14306425,1,1,2) [2025-01-22 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306425', 'tblTempUsageDetail_20' ) start [2025-01-22 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306425', 'tblTempUsageDetail_20' ) end [2025-01-22 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:09:26] Production.INFO: ==20478== Releasing lock... [2025-01-22 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:09:26] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:10:06 [end_date_ymd] => 2025-01-22 17:10:06 [RateCDR] => 1 ) [2025-01-22 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:10:06' and `end` < '2025-01-22 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:10:34] Production.INFO: count ==6196 [2025-01-22 17:10:37] Production.ERROR: pbx CDR StartTime 2025-01-22 14:10:06 - End Time 2025-01-22 17:10:06 [2025-01-22 17:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306431', 'tblTempUsageDetail_20' ) start [2025-01-22 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306431', 'tblTempUsageDetail_20' ) end [2025-01-22 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306431', 'tblTempVendorCDR_20' ) start [2025-01-22 17:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306431', 'tblTempVendorCDR_20' ) end [2025-01-22 17:10:37] Production.INFO: ProcessCDR(1,14306431,1,1,2) [2025-01-22 17:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306431', 'tblTempUsageDetail_20' ) start [2025-01-22 17:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306431', 'tblTempUsageDetail_20' ) end [2025-01-22 17:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:10:42] Production.INFO: ==20570== Releasing lock... [2025-01-22 17:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:10:42] Production.INFO: 74.5 MB #Memory Used# [2025-01-22 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:11:05 [end_date_ymd] => 2025-01-22 17:11:05 [RateCDR] => 1 ) [2025-01-22 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:11:05' and `end` < '2025-01-22 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:11:23] Production.INFO: count ==6151 [2025-01-22 17:11:25] Production.ERROR: pbx CDR StartTime 2025-01-22 14:11:05 - End Time 2025-01-22 17:11:05 [2025-01-22 17:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306436', 'tblTempUsageDetail_20' ) start [2025-01-22 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306436', 'tblTempUsageDetail_20' ) end [2025-01-22 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306436', 'tblTempVendorCDR_20' ) start [2025-01-22 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306436', 'tblTempVendorCDR_20' ) end [2025-01-22 17:11:26] Production.INFO: ProcessCDR(1,14306436,1,1,2) [2025-01-22 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306436', 'tblTempUsageDetail_20' ) start [2025-01-22 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306436', 'tblTempUsageDetail_20' ) end [2025-01-22 17:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:11:30] Production.INFO: ==20657== Releasing lock... [2025-01-22 17:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:11:30] Production.INFO: 74.25 MB #Memory Used# [2025-01-22 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:12:05 [end_date_ymd] => 2025-01-22 17:12:05 [RateCDR] => 1 ) [2025-01-22 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:12:05' and `end` < '2025-01-22 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:12:23] Production.INFO: count ==6149 [2025-01-22 17:12:25] Production.ERROR: pbx CDR StartTime 2025-01-22 14:12:05 - End Time 2025-01-22 17:12:05 [2025-01-22 17:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306441', 'tblTempUsageDetail_20' ) start [2025-01-22 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306441', 'tblTempUsageDetail_20' ) end [2025-01-22 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306441', 'tblTempVendorCDR_20' ) start [2025-01-22 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306441', 'tblTempVendorCDR_20' ) end [2025-01-22 17:12:25] Production.INFO: ProcessCDR(1,14306441,1,1,2) [2025-01-22 17:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306441', 'tblTempUsageDetail_20' ) start [2025-01-22 17:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306441', 'tblTempUsageDetail_20' ) end [2025-01-22 17:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:12:30] Production.INFO: ==20780== Releasing lock... [2025-01-22 17:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:12:30] Production.INFO: 74.25 MB #Memory Used# [2025-01-22 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:13:05 [end_date_ymd] => 2025-01-22 17:13:05 [RateCDR] => 1 ) [2025-01-22 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:13:05' and `end` < '2025-01-22 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:13:23] Production.INFO: count ==6140 [2025-01-22 17:13:26] Production.ERROR: pbx CDR StartTime 2025-01-22 14:13:05 - End Time 2025-01-22 17:13:05 [2025-01-22 17:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306446', 'tblTempUsageDetail_20' ) start [2025-01-22 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306446', 'tblTempUsageDetail_20' ) end [2025-01-22 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306446', 'tblTempVendorCDR_20' ) start [2025-01-22 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306446', 'tblTempVendorCDR_20' ) end [2025-01-22 17:13:26] Production.INFO: ProcessCDR(1,14306446,1,1,2) [2025-01-22 17:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306446', 'tblTempUsageDetail_20' ) start [2025-01-22 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306446', 'tblTempUsageDetail_20' ) end [2025-01-22 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:13:30] Production.INFO: ==20868== Releasing lock... [2025-01-22 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:13:30] Production.INFO: 74 MB #Memory Used# [2025-01-22 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:14:05 [end_date_ymd] => 2025-01-22 17:14:05 [RateCDR] => 1 ) [2025-01-22 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:14:05' and `end` < '2025-01-22 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:14:22] Production.INFO: count ==6125 [2025-01-22 17:14:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:14:05 - End Time 2025-01-22 17:14:05 [2025-01-22 17:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306451', 'tblTempUsageDetail_20' ) start [2025-01-22 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306451', 'tblTempUsageDetail_20' ) end [2025-01-22 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306451', 'tblTempVendorCDR_20' ) start [2025-01-22 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306451', 'tblTempVendorCDR_20' ) end [2025-01-22 17:14:24] Production.INFO: ProcessCDR(1,14306451,1,1,2) [2025-01-22 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306451', 'tblTempUsageDetail_20' ) start [2025-01-22 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306451', 'tblTempUsageDetail_20' ) end [2025-01-22 17:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:14:29] Production.INFO: ==20947== Releasing lock... [2025-01-22 17:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:14:29] Production.INFO: 74 MB #Memory Used# [2025-01-22 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:15:05 [end_date_ymd] => 2025-01-22 17:15:05 [RateCDR] => 1 ) [2025-01-22 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:15:05' and `end` < '2025-01-22 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:15:20] Production.INFO: count ==6114 [2025-01-22 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:15:05 - End Time 2025-01-22 17:15:05 [2025-01-22 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306456', 'tblTempUsageDetail_20' ) start [2025-01-22 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306456', 'tblTempUsageDetail_20' ) end [2025-01-22 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306456', 'tblTempVendorCDR_20' ) start [2025-01-22 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306456', 'tblTempVendorCDR_20' ) end [2025-01-22 17:15:23] Production.INFO: ProcessCDR(1,14306456,1,1,2) [2025-01-22 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306456', 'tblTempUsageDetail_20' ) start [2025-01-22 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306456', 'tblTempUsageDetail_20' ) end [2025-01-22 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:15:27] Production.INFO: ==21035== Releasing lock... [2025-01-22 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:15:27] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:16:05 [end_date_ymd] => 2025-01-22 17:16:05 [RateCDR] => 1 ) [2025-01-22 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:16:05' and `end` < '2025-01-22 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:16:22] Production.INFO: count ==6100 [2025-01-22 17:16:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:16:05 - End Time 2025-01-22 17:16:05 [2025-01-22 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306461', 'tblTempUsageDetail_20' ) start [2025-01-22 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306461', 'tblTempUsageDetail_20' ) end [2025-01-22 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306461', 'tblTempVendorCDR_20' ) start [2025-01-22 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306461', 'tblTempVendorCDR_20' ) end [2025-01-22 17:16:25] Production.INFO: ProcessCDR(1,14306461,1,1,2) [2025-01-22 17:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306461', 'tblTempUsageDetail_20' ) start [2025-01-22 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306461', 'tblTempUsageDetail_20' ) end [2025-01-22 17:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:16:28] Production.INFO: ==21121== Releasing lock... [2025-01-22 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:16:28] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:17:05 [end_date_ymd] => 2025-01-22 17:17:05 [RateCDR] => 1 ) [2025-01-22 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:17:05' and `end` < '2025-01-22 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:17:27] Production.INFO: count ==6097 [2025-01-22 17:17:29] Production.ERROR: pbx CDR StartTime 2025-01-22 14:17:05 - End Time 2025-01-22 17:17:05 [2025-01-22 17:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306466', 'tblTempUsageDetail_20' ) start [2025-01-22 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306466', 'tblTempUsageDetail_20' ) end [2025-01-22 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306466', 'tblTempVendorCDR_20' ) start [2025-01-22 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306466', 'tblTempVendorCDR_20' ) end [2025-01-22 17:17:29] Production.INFO: ProcessCDR(1,14306466,1,1,2) [2025-01-22 17:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306466', 'tblTempUsageDetail_20' ) start [2025-01-22 17:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306466', 'tblTempUsageDetail_20' ) end [2025-01-22 17:17:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:17:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:17:34] Production.INFO: ==21209== Releasing lock... [2025-01-22 17:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:17:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-22 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:18:04 [end_date_ymd] => 2025-01-22 17:18:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 14:18:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 17:18:27] Production.INFO: count ==6072 [2025-01-22 17:18:29] Production.ERROR: pbx CDR StartTime 2025-01-22 14:18:04 - End Time 2025-01-22 17:18:04 [2025-01-22 17:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306471', 'tblTempUsageDetail_20' ) start [2025-01-22 17:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306471', 'tblTempUsageDetail_20' ) end [2025-01-22 17:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306471', 'tblTempVendorCDR_20' ) start [2025-01-22 17:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306471', 'tblTempVendorCDR_20' ) end [2025-01-22 17:18:29] Production.INFO: ProcessCDR(1,14306471,1,1,2) [2025-01-22 17:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306471', 'tblTempUsageDetail_20' ) start [2025-01-22 17:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306471', 'tblTempUsageDetail_20' ) end [2025-01-22 17:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:18:34] Production.INFO: ==21296== Releasing lock... [2025-01-22 17:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:18:34] Production.INFO: 73.5 MB #Memory Used# [2025-01-22 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:19:05 [end_date_ymd] => 2025-01-22 17:19:05 [RateCDR] => 1 ) [2025-01-22 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:19:05' and `end` < '2025-01-22 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:19:21] Production.INFO: count ==6062 [2025-01-22 17:19:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:19:05 - End Time 2025-01-22 17:19:05 [2025-01-22 17:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306476', 'tblTempUsageDetail_20' ) start [2025-01-22 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306476', 'tblTempUsageDetail_20' ) end [2025-01-22 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306476', 'tblTempVendorCDR_20' ) start [2025-01-22 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306476', 'tblTempVendorCDR_20' ) end [2025-01-22 17:19:23] Production.INFO: ProcessCDR(1,14306476,1,1,2) [2025-01-22 17:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306476', 'tblTempUsageDetail_20' ) start [2025-01-22 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306476', 'tblTempUsageDetail_20' ) end [2025-01-22 17:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:19:28] Production.INFO: ==21389== Releasing lock... [2025-01-22 17:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:19:28] Production.INFO: 73.5 MB #Memory Used# [2025-01-22 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:20:06 [end_date_ymd] => 2025-01-22 17:20:06 [RateCDR] => 1 ) [2025-01-22 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:20:06' and `end` < '2025-01-22 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:20:22] Production.INFO: count ==6042 [2025-01-22 17:20:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:20:06 - End Time 2025-01-22 17:20:06 [2025-01-22 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306481', 'tblTempUsageDetail_20' ) start [2025-01-22 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306481', 'tblTempUsageDetail_20' ) end [2025-01-22 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306481', 'tblTempVendorCDR_20' ) start [2025-01-22 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306481', 'tblTempVendorCDR_20' ) end [2025-01-22 17:20:25] Production.INFO: ProcessCDR(1,14306481,1,1,2) [2025-01-22 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306481', 'tblTempUsageDetail_20' ) start [2025-01-22 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306481', 'tblTempUsageDetail_20' ) end [2025-01-22 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:20:28] Production.INFO: ==21480== Releasing lock... [2025-01-22 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:20:28] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:21:05 [end_date_ymd] => 2025-01-22 17:21:05 [RateCDR] => 1 ) [2025-01-22 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:21:05' and `end` < '2025-01-22 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:21:20] Production.INFO: count ==6049 [2025-01-22 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:21:05 - End Time 2025-01-22 17:21:05 [2025-01-22 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306487', 'tblTempUsageDetail_20' ) start [2025-01-22 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306487', 'tblTempUsageDetail_20' ) end [2025-01-22 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306487', 'tblTempVendorCDR_20' ) start [2025-01-22 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306487', 'tblTempVendorCDR_20' ) end [2025-01-22 17:21:23] Production.INFO: ProcessCDR(1,14306487,1,1,2) [2025-01-22 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306487', 'tblTempUsageDetail_20' ) start [2025-01-22 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306487', 'tblTempUsageDetail_20' ) end [2025-01-22 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:21:27] Production.INFO: ==21573== Releasing lock... [2025-01-22 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:21:27] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:22:05 [end_date_ymd] => 2025-01-22 17:22:05 [RateCDR] => 1 ) [2025-01-22 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:22:05' and `end` < '2025-01-22 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:22:19] Production.INFO: count ==6036 [2025-01-22 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:22:05 - End Time 2025-01-22 17:22:05 [2025-01-22 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306492', 'tblTempUsageDetail_20' ) start [2025-01-22 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306492', 'tblTempUsageDetail_20' ) end [2025-01-22 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306492', 'tblTempVendorCDR_20' ) start [2025-01-22 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306492', 'tblTempVendorCDR_20' ) end [2025-01-22 17:22:22] Production.INFO: ProcessCDR(1,14306492,1,1,2) [2025-01-22 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306492', 'tblTempUsageDetail_20' ) start [2025-01-22 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306492', 'tblTempUsageDetail_20' ) end [2025-01-22 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:22:25] Production.INFO: ==21664== Releasing lock... [2025-01-22 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:22:25] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:23:05 [end_date_ymd] => 2025-01-22 17:23:05 [RateCDR] => 1 ) [2025-01-22 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:23:05' and `end` < '2025-01-22 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:23:21] Production.INFO: count ==6018 [2025-01-22 17:23:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:23:05 - End Time 2025-01-22 17:23:05 [2025-01-22 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306497', 'tblTempUsageDetail_20' ) start [2025-01-22 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306497', 'tblTempUsageDetail_20' ) end [2025-01-22 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306497', 'tblTempVendorCDR_20' ) start [2025-01-22 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306497', 'tblTempVendorCDR_20' ) end [2025-01-22 17:23:24] Production.INFO: ProcessCDR(1,14306497,1,1,2) [2025-01-22 17:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306497', 'tblTempUsageDetail_20' ) start [2025-01-22 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306497', 'tblTempUsageDetail_20' ) end [2025-01-22 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:23:27] Production.INFO: ==21752== Releasing lock... [2025-01-22 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:23:27] Production.INFO: 73.25 MB #Memory Used# [2025-01-22 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:24:05 [end_date_ymd] => 2025-01-22 17:24:05 [RateCDR] => 1 ) [2025-01-22 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:24:05' and `end` < '2025-01-22 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:24:21] Production.INFO: count ==5990 [2025-01-22 17:24:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:24:05 - End Time 2025-01-22 17:24:05 [2025-01-22 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306502', 'tblTempUsageDetail_20' ) start [2025-01-22 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306502', 'tblTempUsageDetail_20' ) end [2025-01-22 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306502', 'tblTempVendorCDR_20' ) start [2025-01-22 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306502', 'tblTempVendorCDR_20' ) end [2025-01-22 17:24:24] Production.INFO: ProcessCDR(1,14306502,1,1,2) [2025-01-22 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306502', 'tblTempUsageDetail_20' ) start [2025-01-22 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306502', 'tblTempUsageDetail_20' ) end [2025-01-22 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:24:28] Production.INFO: ==21830== Releasing lock... [2025-01-22 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:24:28] Production.INFO: 73 MB #Memory Used# [2025-01-22 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:25:05 [end_date_ymd] => 2025-01-22 17:25:05 [RateCDR] => 1 ) [2025-01-22 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:25:05' and `end` < '2025-01-22 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:25:23] Production.INFO: count ==5982 [2025-01-22 17:25:26] Production.ERROR: pbx CDR StartTime 2025-01-22 14:25:05 - End Time 2025-01-22 17:25:05 [2025-01-22 17:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306507', 'tblTempUsageDetail_20' ) start [2025-01-22 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306507', 'tblTempUsageDetail_20' ) end [2025-01-22 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306507', 'tblTempVendorCDR_20' ) start [2025-01-22 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306507', 'tblTempVendorCDR_20' ) end [2025-01-22 17:25:26] Production.INFO: ProcessCDR(1,14306507,1,1,2) [2025-01-22 17:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306507', 'tblTempUsageDetail_20' ) start [2025-01-22 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306507', 'tblTempUsageDetail_20' ) end [2025-01-22 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:25:30] Production.INFO: ==21902== Releasing lock... [2025-01-22 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:25:30] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 17:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:26:22 [end_date_ymd] => 2025-01-22 17:26:22 [RateCDR] => 1 ) [2025-01-22 17:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:26:22' and `end` < '2025-01-22 17:26:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:26:39] Production.INFO: count ==5962 [2025-01-22 17:27:46] Production.ERROR: pbx CDR StartTime 2025-01-22 14:26:22 - End Time 2025-01-22 17:26:22 [2025-01-22 17:27:46] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306512', 'tblTempUsageDetail_20' ) start [2025-01-22 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306512', 'tblTempUsageDetail_20' ) end [2025-01-22 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306512', 'tblTempVendorCDR_20' ) start [2025-01-22 17:27:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306512', 'tblTempVendorCDR_20' ) end [2025-01-22 17:27:51] Production.INFO: ProcessCDR(1,14306512,1,1,2) [2025-01-22 17:27:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:28:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:28:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306512', 'tblTempUsageDetail_20' ) start [2025-01-22 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306512', 'tblTempUsageDetail_20' ) end [2025-01-22 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:28:29] Production.INFO: ==21974== Releasing lock... [2025-01-22 17:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:28:29] Production.INFO: 72.75 MB #Memory Used# [2025-01-22 17:29:13] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:29:13 [end_date_ymd] => 2025-01-22 17:29:13 [RateCDR] => 1 ) [2025-01-22 17:29:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:29:13' and `end` < '2025-01-22 17:29:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:29:38] Production.INFO: count ==5941 [2025-01-22 17:30:33] Production.ERROR: pbx CDR StartTime 2025-01-22 14:29:13 - End Time 2025-01-22 17:29:13 [2025-01-22 17:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306523', 'tblTempUsageDetail_20' ) start [2025-01-22 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306523', 'tblTempUsageDetail_20' ) end [2025-01-22 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306523', 'tblTempVendorCDR_20' ) start [2025-01-22 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306523', 'tblTempVendorCDR_20' ) end [2025-01-22 17:30:35] Production.INFO: ProcessCDR(1,14306523,1,1,2) [2025-01-22 17:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:30:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:30:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306523', 'tblTempUsageDetail_20' ) start [2025-01-22 17:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306523', 'tblTempUsageDetail_20' ) end [2025-01-22 17:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:31:36] Production.INFO: ==22212== Releasing lock... [2025-01-22 17:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:31:36] Production.INFO: 72.5 MB #Memory Used# [2025-01-22 17:32:28] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:32:28 [end_date_ymd] => 2025-01-22 17:32:28 [RateCDR] => 1 ) [2025-01-22 17:32:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:32:28' and `end` < '2025-01-22 17:32:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:32:41] Production.INFO: count ==5909 [2025-01-22 17:33:34] Production.ERROR: pbx CDR StartTime 2025-01-22 14:32:28 - End Time 2025-01-22 17:32:28 [2025-01-22 17:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306535', 'tblTempUsageDetail_20' ) start [2025-01-22 17:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306535', 'tblTempUsageDetail_20' ) end [2025-01-22 17:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306535', 'tblTempVendorCDR_20' ) start [2025-01-22 17:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306535', 'tblTempVendorCDR_20' ) end [2025-01-22 17:33:34] Production.INFO: ProcessCDR(1,14306535,1,1,2) [2025-01-22 17:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:33:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:33:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:33:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:33:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306535', 'tblTempUsageDetail_20' ) start [2025-01-22 17:33:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306535', 'tblTempUsageDetail_20' ) end [2025-01-22 17:33:42] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:33:42] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:33:42] Production.INFO: ==22452== Releasing lock... [2025-01-22 17:33:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:33:42] Production.INFO: 72.25 MB #Memory Used# [2025-01-22 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:34:06 [end_date_ymd] => 2025-01-22 17:34:06 [RateCDR] => 1 ) [2025-01-22 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:34:06' and `end` < '2025-01-22 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:34:20] Production.INFO: count ==5891 [2025-01-22 17:34:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:34:06 - End Time 2025-01-22 17:34:06 [2025-01-22 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306543', 'tblTempUsageDetail_20' ) start [2025-01-22 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306543', 'tblTempUsageDetail_20' ) end [2025-01-22 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306543', 'tblTempVendorCDR_20' ) start [2025-01-22 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306543', 'tblTempVendorCDR_20' ) end [2025-01-22 17:34:23] Production.INFO: ProcessCDR(1,14306543,1,1,2) [2025-01-22 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306543', 'tblTempUsageDetail_20' ) start [2025-01-22 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306543', 'tblTempUsageDetail_20' ) end [2025-01-22 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:34:27] Production.INFO: ==22628== Releasing lock... [2025-01-22 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:34:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-22 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:35:05 [end_date_ymd] => 2025-01-22 17:35:05 [RateCDR] => 1 ) [2025-01-22 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:35:05' and `end` < '2025-01-22 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:35:23] Production.INFO: count ==5887 [2025-01-22 17:35:25] Production.ERROR: pbx CDR StartTime 2025-01-22 14:35:05 - End Time 2025-01-22 17:35:05 [2025-01-22 17:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306548', 'tblTempUsageDetail_20' ) start [2025-01-22 17:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306548', 'tblTempUsageDetail_20' ) end [2025-01-22 17:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306548', 'tblTempVendorCDR_20' ) start [2025-01-22 17:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306548', 'tblTempVendorCDR_20' ) end [2025-01-22 17:35:25] Production.INFO: ProcessCDR(1,14306548,1,1,2) [2025-01-22 17:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306548', 'tblTempUsageDetail_20' ) start [2025-01-22 17:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306548', 'tblTempUsageDetail_20' ) end [2025-01-22 17:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:35:30] Production.INFO: ==22729== Releasing lock... [2025-01-22 17:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:35:30] Production.INFO: 72.25 MB #Memory Used# [2025-01-22 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:36:06 [end_date_ymd] => 2025-01-22 17:36:06 [RateCDR] => 1 ) [2025-01-22 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:36:06' and `end` < '2025-01-22 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:36:24] Production.INFO: count ==5879 [2025-01-22 17:36:26] Production.ERROR: pbx CDR StartTime 2025-01-22 14:36:06 - End Time 2025-01-22 17:36:06 [2025-01-22 17:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306553', 'tblTempUsageDetail_20' ) start [2025-01-22 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306553', 'tblTempUsageDetail_20' ) end [2025-01-22 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306553', 'tblTempVendorCDR_20' ) start [2025-01-22 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306553', 'tblTempVendorCDR_20' ) end [2025-01-22 17:36:26] Production.INFO: ProcessCDR(1,14306553,1,1,2) [2025-01-22 17:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306553', 'tblTempUsageDetail_20' ) start [2025-01-22 17:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306553', 'tblTempUsageDetail_20' ) end [2025-01-22 17:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:36:31] Production.INFO: ==22806== Releasing lock... [2025-01-22 17:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:36:31] Production.INFO: 72 MB #Memory Used# [2025-01-22 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:37:04 [end_date_ymd] => 2025-01-22 17:37:04 [RateCDR] => 1 ) [2025-01-22 17:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:37:04' and `end` < '2025-01-22 17:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:37:20] Production.INFO: count ==5865 [2025-01-22 17:37:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:37:04 - End Time 2025-01-22 17:37:04 [2025-01-22 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306558', 'tblTempUsageDetail_20' ) start [2025-01-22 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306558', 'tblTempUsageDetail_20' ) end [2025-01-22 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306558', 'tblTempVendorCDR_20' ) start [2025-01-22 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306558', 'tblTempVendorCDR_20' ) end [2025-01-22 17:37:22] Production.INFO: ProcessCDR(1,14306558,1,1,2) [2025-01-22 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306558', 'tblTempUsageDetail_20' ) start [2025-01-22 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306558', 'tblTempUsageDetail_20' ) end [2025-01-22 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:37:25] Production.INFO: ==22907== Releasing lock... [2025-01-22 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:37:25] Production.INFO: 72 MB #Memory Used# [2025-01-22 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:38:05 [end_date_ymd] => 2025-01-22 17:38:05 [RateCDR] => 1 ) [2025-01-22 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:38:05' and `end` < '2025-01-22 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:38:20] Production.INFO: count ==5842 [2025-01-22 17:38:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:38:05 - End Time 2025-01-22 17:38:05 [2025-01-22 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306563', 'tblTempUsageDetail_20' ) start [2025-01-22 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306563', 'tblTempUsageDetail_20' ) end [2025-01-22 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306563', 'tblTempVendorCDR_20' ) start [2025-01-22 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306563', 'tblTempVendorCDR_20' ) end [2025-01-22 17:38:22] Production.INFO: ProcessCDR(1,14306563,1,1,2) [2025-01-22 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306563', 'tblTempUsageDetail_20' ) start [2025-01-22 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306563', 'tblTempUsageDetail_20' ) end [2025-01-22 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:38:27] Production.INFO: ==22989== Releasing lock... [2025-01-22 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:38:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-22 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:39:05 [end_date_ymd] => 2025-01-22 17:39:05 [RateCDR] => 1 ) [2025-01-22 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:39:05' and `end` < '2025-01-22 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:39:20] Production.INFO: count ==5828 [2025-01-22 17:39:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:39:05 - End Time 2025-01-22 17:39:05 [2025-01-22 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306568', 'tblTempUsageDetail_20' ) start [2025-01-22 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306568', 'tblTempUsageDetail_20' ) end [2025-01-22 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306568', 'tblTempVendorCDR_20' ) start [2025-01-22 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306568', 'tblTempVendorCDR_20' ) end [2025-01-22 17:39:23] Production.INFO: ProcessCDR(1,14306568,1,1,2) [2025-01-22 17:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306568', 'tblTempUsageDetail_20' ) start [2025-01-22 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306568', 'tblTempUsageDetail_20' ) end [2025-01-22 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:39:27] Production.INFO: ==23079== Releasing lock... [2025-01-22 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:39:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-22 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:40:06 [end_date_ymd] => 2025-01-22 17:40:06 [RateCDR] => 1 ) [2025-01-22 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:40:06' and `end` < '2025-01-22 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:40:24] Production.INFO: count ==5813 [2025-01-22 17:40:26] Production.ERROR: pbx CDR StartTime 2025-01-22 14:40:06 - End Time 2025-01-22 17:40:06 [2025-01-22 17:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306574', 'tblTempUsageDetail_20' ) start [2025-01-22 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306574', 'tblTempUsageDetail_20' ) end [2025-01-22 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306574', 'tblTempVendorCDR_20' ) start [2025-01-22 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306574', 'tblTempVendorCDR_20' ) end [2025-01-22 17:40:26] Production.INFO: ProcessCDR(1,14306574,1,1,2) [2025-01-22 17:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306574', 'tblTempUsageDetail_20' ) start [2025-01-22 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306574', 'tblTempUsageDetail_20' ) end [2025-01-22 17:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:40:30] Production.INFO: ==23180== Releasing lock... [2025-01-22 17:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:40:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-22 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:41:05 [end_date_ymd] => 2025-01-22 17:41:05 [RateCDR] => 1 ) [2025-01-22 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:41:05' and `end` < '2025-01-22 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:41:21] Production.INFO: count ==5794 [2025-01-22 17:41:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:41:05 - End Time 2025-01-22 17:41:05 [2025-01-22 17:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306579', 'tblTempUsageDetail_20' ) start [2025-01-22 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306579', 'tblTempUsageDetail_20' ) end [2025-01-22 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306579', 'tblTempVendorCDR_20' ) start [2025-01-22 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306579', 'tblTempVendorCDR_20' ) end [2025-01-22 17:41:23] Production.INFO: ProcessCDR(1,14306579,1,1,2) [2025-01-22 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306579', 'tblTempUsageDetail_20' ) start [2025-01-22 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306579', 'tblTempUsageDetail_20' ) end [2025-01-22 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:41:28] Production.INFO: ==23270== Releasing lock... [2025-01-22 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:41:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-22 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:42:05 [end_date_ymd] => 2025-01-22 17:42:05 [RateCDR] => 1 ) [2025-01-22 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:42:05' and `end` < '2025-01-22 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:42:20] Production.INFO: count ==5782 [2025-01-22 17:42:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:42:05 - End Time 2025-01-22 17:42:05 [2025-01-22 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306584', 'tblTempUsageDetail_20' ) start [2025-01-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306584', 'tblTempUsageDetail_20' ) end [2025-01-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306584', 'tblTempVendorCDR_20' ) start [2025-01-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306584', 'tblTempVendorCDR_20' ) end [2025-01-22 17:42:22] Production.INFO: ProcessCDR(1,14306584,1,1,2) [2025-01-22 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306584', 'tblTempUsageDetail_20' ) start [2025-01-22 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306584', 'tblTempUsageDetail_20' ) end [2025-01-22 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:42:26] Production.INFO: ==23355== Releasing lock... [2025-01-22 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:42:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:43:05 [end_date_ymd] => 2025-01-22 17:43:05 [RateCDR] => 1 ) [2025-01-22 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:43:05' and `end` < '2025-01-22 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:43:20] Production.INFO: count ==5758 [2025-01-22 17:43:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:43:05 - End Time 2025-01-22 17:43:05 [2025-01-22 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306589', 'tblTempUsageDetail_20' ) start [2025-01-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306589', 'tblTempUsageDetail_20' ) end [2025-01-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306589', 'tblTempVendorCDR_20' ) start [2025-01-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306589', 'tblTempVendorCDR_20' ) end [2025-01-22 17:43:22] Production.INFO: ProcessCDR(1,14306589,1,1,2) [2025-01-22 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306589', 'tblTempUsageDetail_20' ) start [2025-01-22 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306589', 'tblTempUsageDetail_20' ) end [2025-01-22 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:43:27] Production.INFO: ==23487== Releasing lock... [2025-01-22 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:43:27] Production.INFO: 71.25 MB #Memory Used# [2025-01-22 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:44:05 [end_date_ymd] => 2025-01-22 17:44:05 [RateCDR] => 1 ) [2025-01-22 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:44:05' and `end` < '2025-01-22 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:44:20] Production.INFO: count ==5746 [2025-01-22 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:44:05 - End Time 2025-01-22 17:44:05 [2025-01-22 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306594', 'tblTempUsageDetail_20' ) start [2025-01-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306594', 'tblTempUsageDetail_20' ) end [2025-01-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306594', 'tblTempVendorCDR_20' ) start [2025-01-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306594', 'tblTempVendorCDR_20' ) end [2025-01-22 17:44:22] Production.INFO: ProcessCDR(1,14306594,1,1,2) [2025-01-22 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306594', 'tblTempUsageDetail_20' ) start [2025-01-22 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306594', 'tblTempUsageDetail_20' ) end [2025-01-22 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:44:25] Production.INFO: ==23576== Releasing lock... [2025-01-22 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:44:25] Production.INFO: 71 MB #Memory Used# [2025-01-22 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:45:06 [end_date_ymd] => 2025-01-22 17:45:06 [RateCDR] => 1 ) [2025-01-22 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:45:06' and `end` < '2025-01-22 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:45:23] Production.INFO: count ==5736 [2025-01-22 17:45:25] Production.ERROR: pbx CDR StartTime 2025-01-22 14:45:06 - End Time 2025-01-22 17:45:06 [2025-01-22 17:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306599', 'tblTempUsageDetail_20' ) start [2025-01-22 17:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306599', 'tblTempUsageDetail_20' ) end [2025-01-22 17:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306599', 'tblTempVendorCDR_20' ) start [2025-01-22 17:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306599', 'tblTempVendorCDR_20' ) end [2025-01-22 17:45:25] Production.INFO: ProcessCDR(1,14306599,1,1,2) [2025-01-22 17:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306599', 'tblTempUsageDetail_20' ) start [2025-01-22 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306599', 'tblTempUsageDetail_20' ) end [2025-01-22 17:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:45:30] Production.INFO: ==23662== Releasing lock... [2025-01-22 17:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:45:30] Production.INFO: 71 MB #Memory Used# [2025-01-22 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:46:05 [end_date_ymd] => 2025-01-22 17:46:05 [RateCDR] => 1 ) [2025-01-22 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:46:05' and `end` < '2025-01-22 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:46:23] Production.INFO: count ==5735 [2025-01-22 17:46:25] Production.ERROR: pbx CDR StartTime 2025-01-22 14:46:05 - End Time 2025-01-22 17:46:05 [2025-01-22 17:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306604', 'tblTempUsageDetail_20' ) start [2025-01-22 17:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306604', 'tblTempUsageDetail_20' ) end [2025-01-22 17:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306604', 'tblTempVendorCDR_20' ) start [2025-01-22 17:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306604', 'tblTempVendorCDR_20' ) end [2025-01-22 17:46:26] Production.INFO: ProcessCDR(1,14306604,1,1,2) [2025-01-22 17:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306604', 'tblTempUsageDetail_20' ) start [2025-01-22 17:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306604', 'tblTempUsageDetail_20' ) end [2025-01-22 17:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:46:30] Production.INFO: ==23749== Releasing lock... [2025-01-22 17:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:46:30] Production.INFO: 71 MB #Memory Used# [2025-01-22 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:47:05 [end_date_ymd] => 2025-01-22 17:47:05 [RateCDR] => 1 ) [2025-01-22 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:47:05' and `end` < '2025-01-22 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:47:19] Production.INFO: count ==5727 [2025-01-22 17:47:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:47:05 - End Time 2025-01-22 17:47:05 [2025-01-22 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306609', 'tblTempUsageDetail_20' ) start [2025-01-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306609', 'tblTempUsageDetail_20' ) end [2025-01-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306609', 'tblTempVendorCDR_20' ) start [2025-01-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306609', 'tblTempVendorCDR_20' ) end [2025-01-22 17:47:21] Production.INFO: ProcessCDR(1,14306609,1,1,2) [2025-01-22 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306609', 'tblTempUsageDetail_20' ) start [2025-01-22 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306609', 'tblTempUsageDetail_20' ) end [2025-01-22 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:47:26] Production.INFO: ==23837== Releasing lock... [2025-01-22 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:47:26] Production.INFO: 71 MB #Memory Used# [2025-01-22 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:48:05 [end_date_ymd] => 2025-01-22 17:48:05 [RateCDR] => 1 ) [2025-01-22 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:48:05' and `end` < '2025-01-22 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:48:18] Production.INFO: count ==5711 [2025-01-22 17:48:20] Production.ERROR: pbx CDR StartTime 2025-01-22 14:48:05 - End Time 2025-01-22 17:48:05 [2025-01-22 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306614', 'tblTempUsageDetail_20' ) start [2025-01-22 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306614', 'tblTempUsageDetail_20' ) end [2025-01-22 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306614', 'tblTempVendorCDR_20' ) start [2025-01-22 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306614', 'tblTempVendorCDR_20' ) end [2025-01-22 17:48:20] Production.INFO: ProcessCDR(1,14306614,1,1,2) [2025-01-22 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306614', 'tblTempUsageDetail_20' ) start [2025-01-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306614', 'tblTempUsageDetail_20' ) end [2025-01-22 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:48:23] Production.INFO: ==23931== Releasing lock... [2025-01-22 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:48:23] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:49:05 [end_date_ymd] => 2025-01-22 17:49:05 [RateCDR] => 1 ) [2025-01-22 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:49:05' and `end` < '2025-01-22 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:49:25] Production.INFO: count ==5697 [2025-01-22 17:49:27] Production.ERROR: pbx CDR StartTime 2025-01-22 14:49:05 - End Time 2025-01-22 17:49:05 [2025-01-22 17:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306619', 'tblTempUsageDetail_20' ) start [2025-01-22 17:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306619', 'tblTempUsageDetail_20' ) end [2025-01-22 17:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306619', 'tblTempVendorCDR_20' ) start [2025-01-22 17:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306619', 'tblTempVendorCDR_20' ) end [2025-01-22 17:49:27] Production.INFO: ProcessCDR(1,14306619,1,1,2) [2025-01-22 17:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306619', 'tblTempUsageDetail_20' ) start [2025-01-22 17:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306619', 'tblTempUsageDetail_20' ) end [2025-01-22 17:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:49:31] Production.INFO: ==24016== Releasing lock... [2025-01-22 17:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:49:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:50:06 [end_date_ymd] => 2025-01-22 17:50:06 [RateCDR] => 1 ) [2025-01-22 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:50:06' and `end` < '2025-01-22 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:50:30] Production.INFO: count ==5688 [2025-01-22 17:50:32] Production.ERROR: pbx CDR StartTime 2025-01-22 14:50:06 - End Time 2025-01-22 17:50:06 [2025-01-22 17:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306625', 'tblTempUsageDetail_20' ) start [2025-01-22 17:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306625', 'tblTempUsageDetail_20' ) end [2025-01-22 17:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306625', 'tblTempVendorCDR_20' ) start [2025-01-22 17:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306625', 'tblTempVendorCDR_20' ) end [2025-01-22 17:50:33] Production.INFO: ProcessCDR(1,14306625,1,1,2) [2025-01-22 17:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306625', 'tblTempUsageDetail_20' ) start [2025-01-22 17:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306625', 'tblTempUsageDetail_20' ) end [2025-01-22 17:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:50:38] Production.INFO: ==24111== Releasing lock... [2025-01-22 17:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:50:38] Production.INFO: 70.75 MB #Memory Used# [2025-01-22 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:51:05 [end_date_ymd] => 2025-01-22 17:51:05 [RateCDR] => 1 ) [2025-01-22 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:51:05' and `end` < '2025-01-22 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:51:22] Production.INFO: count ==5639 [2025-01-22 17:51:24] Production.ERROR: pbx CDR StartTime 2025-01-22 14:51:05 - End Time 2025-01-22 17:51:05 [2025-01-22 17:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306630', 'tblTempUsageDetail_20' ) start [2025-01-22 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306630', 'tblTempUsageDetail_20' ) end [2025-01-22 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306630', 'tblTempVendorCDR_20' ) start [2025-01-22 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306630', 'tblTempVendorCDR_20' ) end [2025-01-22 17:51:24] Production.INFO: ProcessCDR(1,14306630,1,1,2) [2025-01-22 17:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306630', 'tblTempUsageDetail_20' ) start [2025-01-22 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306630', 'tblTempUsageDetail_20' ) end [2025-01-22 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:51:27] Production.INFO: ==24188== Releasing lock... [2025-01-22 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:51:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:52:05 [end_date_ymd] => 2025-01-22 17:52:05 [RateCDR] => 1 ) [2025-01-22 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:52:05' and `end` < '2025-01-22 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:52:19] Production.INFO: count ==5619 [2025-01-22 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:52:05 - End Time 2025-01-22 17:52:05 [2025-01-22 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306635', 'tblTempUsageDetail_20' ) start [2025-01-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306635', 'tblTempUsageDetail_20' ) end [2025-01-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306635', 'tblTempVendorCDR_20' ) start [2025-01-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306635', 'tblTempVendorCDR_20' ) end [2025-01-22 17:52:21] Production.INFO: ProcessCDR(1,14306635,1,1,2) [2025-01-22 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306635', 'tblTempUsageDetail_20' ) start [2025-01-22 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306635', 'tblTempUsageDetail_20' ) end [2025-01-22 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:52:24] Production.INFO: ==24268== Releasing lock... [2025-01-22 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:52:24] Production.INFO: 70 MB #Memory Used# [2025-01-22 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:53:05 [end_date_ymd] => 2025-01-22 17:53:05 [RateCDR] => 1 ) [2025-01-22 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:53:05' and `end` < '2025-01-22 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:53:18] Production.INFO: count ==5614 [2025-01-22 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-22 14:53:05 - End Time 2025-01-22 17:53:05 [2025-01-22 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306640', 'tblTempUsageDetail_20' ) start [2025-01-22 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306640', 'tblTempUsageDetail_20' ) end [2025-01-22 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306640', 'tblTempVendorCDR_20' ) start [2025-01-22 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306640', 'tblTempVendorCDR_20' ) end [2025-01-22 17:53:20] Production.INFO: ProcessCDR(1,14306640,1,1,2) [2025-01-22 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306640', 'tblTempUsageDetail_20' ) start [2025-01-22 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306640', 'tblTempUsageDetail_20' ) end [2025-01-22 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:53:24] Production.INFO: ==24339== Releasing lock... [2025-01-22 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:53:24] Production.INFO: 70 MB #Memory Used# [2025-01-22 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:54:05 [end_date_ymd] => 2025-01-22 17:54:05 [RateCDR] => 1 ) [2025-01-22 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:54:05' and `end` < '2025-01-22 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:54:18] Production.INFO: count ==5594 [2025-01-22 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-22 14:54:05 - End Time 2025-01-22 17:54:05 [2025-01-22 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306645', 'tblTempUsageDetail_20' ) start [2025-01-22 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306645', 'tblTempUsageDetail_20' ) end [2025-01-22 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306645', 'tblTempVendorCDR_20' ) start [2025-01-22 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306645', 'tblTempVendorCDR_20' ) end [2025-01-22 17:54:20] Production.INFO: ProcessCDR(1,14306645,1,1,2) [2025-01-22 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306645', 'tblTempUsageDetail_20' ) start [2025-01-22 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306645', 'tblTempUsageDetail_20' ) end [2025-01-22 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:54:24] Production.INFO: ==24409== Releasing lock... [2025-01-22 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:54:24] Production.INFO: 70.25 MB #Memory Used# [2025-01-22 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:55:05 [end_date_ymd] => 2025-01-22 17:55:05 [RateCDR] => 1 ) [2025-01-22 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:55:05' and `end` < '2025-01-22 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:55:19] Production.INFO: count ==5585 [2025-01-22 17:55:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:55:05 - End Time 2025-01-22 17:55:05 [2025-01-22 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306650', 'tblTempUsageDetail_20' ) start [2025-01-22 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306650', 'tblTempUsageDetail_20' ) end [2025-01-22 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306650', 'tblTempVendorCDR_20' ) start [2025-01-22 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306650', 'tblTempVendorCDR_20' ) end [2025-01-22 17:55:21] Production.INFO: ProcessCDR(1,14306650,1,1,2) [2025-01-22 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306650', 'tblTempUsageDetail_20' ) start [2025-01-22 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306650', 'tblTempUsageDetail_20' ) end [2025-01-22 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:55:24] Production.INFO: ==24479== Releasing lock... [2025-01-22 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:55:24] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:56:05 [end_date_ymd] => 2025-01-22 17:56:05 [RateCDR] => 1 ) [2025-01-22 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:56:05' and `end` < '2025-01-22 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:56:19] Production.INFO: count ==5558 [2025-01-22 17:56:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:56:05 - End Time 2025-01-22 17:56:05 [2025-01-22 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306655', 'tblTempUsageDetail_20' ) start [2025-01-22 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306655', 'tblTempUsageDetail_20' ) end [2025-01-22 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306655', 'tblTempVendorCDR_20' ) start [2025-01-22 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306655', 'tblTempVendorCDR_20' ) end [2025-01-22 17:56:22] Production.INFO: ProcessCDR(1,14306655,1,1,2) [2025-01-22 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306655', 'tblTempUsageDetail_20' ) start [2025-01-22 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306655', 'tblTempUsageDetail_20' ) end [2025-01-22 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:56:25] Production.INFO: ==24550== Releasing lock... [2025-01-22 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:56:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-22 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:57:05 [end_date_ymd] => 2025-01-22 17:57:05 [RateCDR] => 1 ) [2025-01-22 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:57:05' and `end` < '2025-01-22 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:57:19] Production.INFO: count ==5538 [2025-01-22 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-22 14:57:05 - End Time 2025-01-22 17:57:05 [2025-01-22 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306660', 'tblTempUsageDetail_20' ) start [2025-01-22 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306660', 'tblTempUsageDetail_20' ) end [2025-01-22 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306660', 'tblTempVendorCDR_20' ) start [2025-01-22 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306660', 'tblTempVendorCDR_20' ) end [2025-01-22 17:57:21] Production.INFO: ProcessCDR(1,14306660,1,1,2) [2025-01-22 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306660', 'tblTempUsageDetail_20' ) start [2025-01-22 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306660', 'tblTempUsageDetail_20' ) end [2025-01-22 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:57:25] Production.INFO: ==24621== Releasing lock... [2025-01-22 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:57:25] Production.INFO: 69.5 MB #Memory Used# [2025-01-22 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:58:05 [end_date_ymd] => 2025-01-22 17:58:05 [RateCDR] => 1 ) [2025-01-22 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:58:05' and `end` < '2025-01-22 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:58:21] Production.INFO: count ==5507 [2025-01-22 17:58:23] Production.ERROR: pbx CDR StartTime 2025-01-22 14:58:05 - End Time 2025-01-22 17:58:05 [2025-01-22 17:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306665', 'tblTempUsageDetail_20' ) start [2025-01-22 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306665', 'tblTempUsageDetail_20' ) end [2025-01-22 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306665', 'tblTempVendorCDR_20' ) start [2025-01-22 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306665', 'tblTempVendorCDR_20' ) end [2025-01-22 17:58:23] Production.INFO: ProcessCDR(1,14306665,1,1,2) [2025-01-22 17:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306665', 'tblTempUsageDetail_20' ) start [2025-01-22 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306665', 'tblTempUsageDetail_20' ) end [2025-01-22 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:58:27] Production.INFO: ==24693== Releasing lock... [2025-01-22 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:58:27] Production.INFO: 69.25 MB #Memory Used# [2025-01-22 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 14:59:05 [end_date_ymd] => 2025-01-22 17:59:05 [RateCDR] => 1 ) [2025-01-22 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 14:59:05' and `end` < '2025-01-22 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 17:59:20] Production.INFO: count ==5477 [2025-01-22 17:59:22] Production.ERROR: pbx CDR StartTime 2025-01-22 14:59:05 - End Time 2025-01-22 17:59:05 [2025-01-22 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306670', 'tblTempUsageDetail_20' ) start [2025-01-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306670', 'tblTempUsageDetail_20' ) end [2025-01-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306670', 'tblTempVendorCDR_20' ) start [2025-01-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306670', 'tblTempVendorCDR_20' ) end [2025-01-22 17:59:22] Production.INFO: ProcessCDR(1,14306670,1,1,2) [2025-01-22 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306670', 'tblTempUsageDetail_20' ) start [2025-01-22 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306670', 'tblTempUsageDetail_20' ) end [2025-01-22 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 17:59:27] Production.INFO: ==24805== Releasing lock... [2025-01-22 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 17:59:27] Production.INFO: 69 MB #Memory Used# [2025-01-22 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:00:06 [end_date_ymd] => 2025-01-22 18:00:06 [RateCDR] => 1 ) [2025-01-22 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:00:06' and `end` < '2025-01-22 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:00:20] Production.INFO: count ==5435 [2025-01-22 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:00:06 - End Time 2025-01-22 18:00:06 [2025-01-22 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306676', 'tblTempUsageDetail_20' ) start [2025-01-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306676', 'tblTempUsageDetail_20' ) end [2025-01-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306676', 'tblTempVendorCDR_20' ) start [2025-01-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306676', 'tblTempVendorCDR_20' ) end [2025-01-22 18:00:22] Production.INFO: ProcessCDR(1,14306676,1,1,2) [2025-01-22 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306676', 'tblTempUsageDetail_20' ) start [2025-01-22 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306676', 'tblTempUsageDetail_20' ) end [2025-01-22 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:00:27] Production.INFO: ==24879== Releasing lock... [2025-01-22 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:00:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-22 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:01:05 [end_date_ymd] => 2025-01-22 18:01:05 [RateCDR] => 1 ) [2025-01-22 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:01:05' and `end` < '2025-01-22 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:01:18] Production.INFO: count ==5364 [2025-01-22 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:01:05 - End Time 2025-01-22 18:01:05 [2025-01-22 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306681', 'tblTempUsageDetail_20' ) start [2025-01-22 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306681', 'tblTempUsageDetail_20' ) end [2025-01-22 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306681', 'tblTempVendorCDR_20' ) start [2025-01-22 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306681', 'tblTempVendorCDR_20' ) end [2025-01-22 18:01:20] Production.INFO: ProcessCDR(1,14306681,1,1,2) [2025-01-22 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306681', 'tblTempUsageDetail_20' ) start [2025-01-22 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306681', 'tblTempUsageDetail_20' ) end [2025-01-22 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:01:23] Production.INFO: ==24963== Releasing lock... [2025-01-22 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:01:23] Production.INFO: 68.25 MB #Memory Used# [2025-01-22 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:02:05 [end_date_ymd] => 2025-01-22 18:02:05 [RateCDR] => 1 ) [2025-01-22 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:02:05' and `end` < '2025-01-22 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:02:19] Production.INFO: count ==5345 [2025-01-22 18:02:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:02:05 - End Time 2025-01-22 18:02:05 [2025-01-22 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306686', 'tblTempUsageDetail_20' ) start [2025-01-22 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306686', 'tblTempUsageDetail_20' ) end [2025-01-22 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306686', 'tblTempVendorCDR_20' ) start [2025-01-22 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306686', 'tblTempVendorCDR_20' ) end [2025-01-22 18:02:21] Production.INFO: ProcessCDR(1,14306686,1,1,2) [2025-01-22 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306686', 'tblTempUsageDetail_20' ) start [2025-01-22 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306686', 'tblTempUsageDetail_20' ) end [2025-01-22 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:02:25] Production.INFO: ==25032== Releasing lock... [2025-01-22 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:02:25] Production.INFO: 68 MB #Memory Used# [2025-01-22 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:03:05 [end_date_ymd] => 2025-01-22 18:03:05 [RateCDR] => 1 ) [2025-01-22 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:03:05' and `end` < '2025-01-22 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:03:25] Production.INFO: count ==5322 [2025-01-22 18:03:27] Production.ERROR: pbx CDR StartTime 2025-01-22 15:03:05 - End Time 2025-01-22 18:03:05 [2025-01-22 18:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306691', 'tblTempUsageDetail_20' ) start [2025-01-22 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306691', 'tblTempUsageDetail_20' ) end [2025-01-22 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306691', 'tblTempVendorCDR_20' ) start [2025-01-22 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306691', 'tblTempVendorCDR_20' ) end [2025-01-22 18:03:27] Production.INFO: ProcessCDR(1,14306691,1,1,2) [2025-01-22 18:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306691', 'tblTempUsageDetail_20' ) start [2025-01-22 18:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306691', 'tblTempUsageDetail_20' ) end [2025-01-22 18:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:03:30] Production.INFO: ==25105== Releasing lock... [2025-01-22 18:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:03:30] Production.INFO: 68 MB #Memory Used# [2025-01-22 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:04:06 [end_date_ymd] => 2025-01-22 18:04:06 [RateCDR] => 1 ) [2025-01-22 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:04:06' and `end` < '2025-01-22 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:04:25] Production.INFO: count ==5296 [2025-01-22 18:04:27] Production.ERROR: pbx CDR StartTime 2025-01-22 15:04:06 - End Time 2025-01-22 18:04:06 [2025-01-22 18:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306696', 'tblTempUsageDetail_20' ) start [2025-01-22 18:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306696', 'tblTempUsageDetail_20' ) end [2025-01-22 18:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306696', 'tblTempVendorCDR_20' ) start [2025-01-22 18:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306696', 'tblTempVendorCDR_20' ) end [2025-01-22 18:04:27] Production.INFO: ProcessCDR(1,14306696,1,1,2) [2025-01-22 18:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306696', 'tblTempUsageDetail_20' ) start [2025-01-22 18:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306696', 'tblTempUsageDetail_20' ) end [2025-01-22 18:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:04:30] Production.INFO: ==25181== Releasing lock... [2025-01-22 18:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:04:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-22 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:05:05 [end_date_ymd] => 2025-01-22 18:05:05 [RateCDR] => 1 ) [2025-01-22 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:05:05' and `end` < '2025-01-22 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:05:28] Production.INFO: count ==5260 [2025-01-22 18:05:29] Production.ERROR: pbx CDR StartTime 2025-01-22 15:05:05 - End Time 2025-01-22 18:05:05 [2025-01-22 18:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306701', 'tblTempUsageDetail_20' ) start [2025-01-22 18:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306701', 'tblTempUsageDetail_20' ) end [2025-01-22 18:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306701', 'tblTempVendorCDR_20' ) start [2025-01-22 18:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306701', 'tblTempVendorCDR_20' ) end [2025-01-22 18:05:30] Production.INFO: ProcessCDR(1,14306701,1,1,2) [2025-01-22 18:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306701', 'tblTempUsageDetail_20' ) start [2025-01-22 18:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306701', 'tblTempUsageDetail_20' ) end [2025-01-22 18:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:05:34] Production.INFO: ==25251== Releasing lock... [2025-01-22 18:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:05:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-22 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:06:05 [end_date_ymd] => 2025-01-22 18:06:05 [RateCDR] => 1 ) [2025-01-22 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:06:05' and `end` < '2025-01-22 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:06:21] Production.INFO: count ==5227 [2025-01-22 18:06:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:06:05 - End Time 2025-01-22 18:06:05 [2025-01-22 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306706', 'tblTempUsageDetail_20' ) start [2025-01-22 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306706', 'tblTempUsageDetail_20' ) end [2025-01-22 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306706', 'tblTempVendorCDR_20' ) start [2025-01-22 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306706', 'tblTempVendorCDR_20' ) end [2025-01-22 18:06:22] Production.INFO: ProcessCDR(1,14306706,1,1,2) [2025-01-22 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306706', 'tblTempUsageDetail_20' ) start [2025-01-22 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306706', 'tblTempUsageDetail_20' ) end [2025-01-22 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:06:27] Production.INFO: ==25322== Releasing lock... [2025-01-22 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:06:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-22 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:07:04 [end_date_ymd] => 2025-01-22 18:07:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 15:07:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 18:07:18] Production.INFO: count ==5184 [2025-01-22 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:07:04 - End Time 2025-01-22 18:07:04 [2025-01-22 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306709', 'tblTempUsageDetail_20' ) start [2025-01-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306709', 'tblTempUsageDetail_20' ) end [2025-01-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306709', 'tblTempVendorCDR_20' ) start [2025-01-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306709', 'tblTempVendorCDR_20' ) end [2025-01-22 18:07:20] Production.INFO: ProcessCDR(1,14306709,1,1,2) [2025-01-22 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306709', 'tblTempUsageDetail_20' ) start [2025-01-22 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306709', 'tblTempUsageDetail_20' ) end [2025-01-22 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:07:23] Production.INFO: ==25398== Releasing lock... [2025-01-22 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:07:23] Production.INFO: 66.75 MB #Memory Used# [2025-01-22 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:08:05 [end_date_ymd] => 2025-01-22 18:08:05 [RateCDR] => 1 ) [2025-01-22 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:08:05' and `end` < '2025-01-22 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:08:18] Production.INFO: count ==5157 [2025-01-22 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:08:05 - End Time 2025-01-22 18:08:05 [2025-01-22 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306716', 'tblTempUsageDetail_20' ) start [2025-01-22 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306716', 'tblTempUsageDetail_20' ) end [2025-01-22 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306716', 'tblTempVendorCDR_20' ) start [2025-01-22 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306716', 'tblTempVendorCDR_20' ) end [2025-01-22 18:08:20] Production.INFO: ProcessCDR(1,14306716,1,1,2) [2025-01-22 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306716', 'tblTempUsageDetail_20' ) start [2025-01-22 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306716', 'tblTempUsageDetail_20' ) end [2025-01-22 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:08:24] Production.INFO: ==25470== Releasing lock... [2025-01-22 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:08:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-22 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:09:05 [end_date_ymd] => 2025-01-22 18:09:05 [RateCDR] => 1 ) [2025-01-22 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:09:05' and `end` < '2025-01-22 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:09:22] Production.INFO: count ==5131 [2025-01-22 18:09:24] Production.ERROR: pbx CDR StartTime 2025-01-22 15:09:05 - End Time 2025-01-22 18:09:05 [2025-01-22 18:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306721', 'tblTempUsageDetail_20' ) start [2025-01-22 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306721', 'tblTempUsageDetail_20' ) end [2025-01-22 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306721', 'tblTempVendorCDR_20' ) start [2025-01-22 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306721', 'tblTempVendorCDR_20' ) end [2025-01-22 18:09:24] Production.INFO: ProcessCDR(1,14306721,1,1,2) [2025-01-22 18:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306721', 'tblTempUsageDetail_20' ) start [2025-01-22 18:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306721', 'tblTempUsageDetail_20' ) end [2025-01-22 18:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:09:29] Production.INFO: ==25540== Releasing lock... [2025-01-22 18:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:09:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-22 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:10:06 [end_date_ymd] => 2025-01-22 18:10:06 [RateCDR] => 1 ) [2025-01-22 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:10:06' and `end` < '2025-01-22 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:10:24] Production.INFO: count ==5109 [2025-01-22 18:10:25] Production.ERROR: pbx CDR StartTime 2025-01-22 15:10:06 - End Time 2025-01-22 18:10:06 [2025-01-22 18:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306727', 'tblTempUsageDetail_20' ) start [2025-01-22 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306727', 'tblTempUsageDetail_20' ) end [2025-01-22 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306727', 'tblTempVendorCDR_20' ) start [2025-01-22 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306727', 'tblTempVendorCDR_20' ) end [2025-01-22 18:10:25] Production.INFO: ProcessCDR(1,14306727,1,1,2) [2025-01-22 18:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306727', 'tblTempUsageDetail_20' ) start [2025-01-22 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306727', 'tblTempUsageDetail_20' ) end [2025-01-22 18:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:10:30] Production.INFO: ==25618== Releasing lock... [2025-01-22 18:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:10:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-22 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:11:04 [end_date_ymd] => 2025-01-22 18:11:04 [RateCDR] => 1 ) [2025-01-22 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:11:04' and `end` < '2025-01-22 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:11:18] Production.INFO: count ==4996 [2025-01-22 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:11:04 - End Time 2025-01-22 18:11:04 [2025-01-22 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306732', 'tblTempUsageDetail_20' ) start [2025-01-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306732', 'tblTempUsageDetail_20' ) end [2025-01-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306732', 'tblTempVendorCDR_20' ) start [2025-01-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306732', 'tblTempVendorCDR_20' ) end [2025-01-22 18:11:20] Production.INFO: ProcessCDR(1,14306732,1,1,2) [2025-01-22 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306732', 'tblTempUsageDetail_20' ) start [2025-01-22 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306732', 'tblTempUsageDetail_20' ) end [2025-01-22 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:11:24] Production.INFO: ==25689== Releasing lock... [2025-01-22 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:11:24] Production.INFO: 65.5 MB #Memory Used# [2025-01-22 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:12:05 [end_date_ymd] => 2025-01-22 18:12:05 [RateCDR] => 1 ) [2025-01-22 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:12:05' and `end` < '2025-01-22 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:12:19] Production.INFO: count ==4968 [2025-01-22 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:12:05 - End Time 2025-01-22 18:12:05 [2025-01-22 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306737', 'tblTempUsageDetail_20' ) start [2025-01-22 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306737', 'tblTempUsageDetail_20' ) end [2025-01-22 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306737', 'tblTempVendorCDR_20' ) start [2025-01-22 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306737', 'tblTempVendorCDR_20' ) end [2025-01-22 18:12:20] Production.INFO: ProcessCDR(1,14306737,1,1,2) [2025-01-22 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306737', 'tblTempUsageDetail_20' ) start [2025-01-22 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306737', 'tblTempUsageDetail_20' ) end [2025-01-22 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:12:25] Production.INFO: ==25759== Releasing lock... [2025-01-22 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:12:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-22 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:13:05 [end_date_ymd] => 2025-01-22 18:13:05 [RateCDR] => 1 ) [2025-01-22 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:13:05' and `end` < '2025-01-22 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:13:21] Production.INFO: count ==4957 [2025-01-22 18:13:23] Production.ERROR: pbx CDR StartTime 2025-01-22 15:13:05 - End Time 2025-01-22 18:13:05 [2025-01-22 18:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306742', 'tblTempUsageDetail_20' ) start [2025-01-22 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306742', 'tblTempUsageDetail_20' ) end [2025-01-22 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306742', 'tblTempVendorCDR_20' ) start [2025-01-22 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306742', 'tblTempVendorCDR_20' ) end [2025-01-22 18:13:23] Production.INFO: ProcessCDR(1,14306742,1,1,2) [2025-01-22 18:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306742', 'tblTempUsageDetail_20' ) start [2025-01-22 18:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306742', 'tblTempUsageDetail_20' ) end [2025-01-22 18:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:13:28] Production.INFO: ==25835== Releasing lock... [2025-01-22 18:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:13:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-22 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:14:05 [end_date_ymd] => 2025-01-22 18:14:05 [RateCDR] => 1 ) [2025-01-22 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:14:05' and `end` < '2025-01-22 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:14:19] Production.INFO: count ==4940 [2025-01-22 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:14:05 - End Time 2025-01-22 18:14:05 [2025-01-22 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306745', 'tblTempUsageDetail_20' ) start [2025-01-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306745', 'tblTempUsageDetail_20' ) end [2025-01-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306745', 'tblTempVendorCDR_20' ) start [2025-01-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306745', 'tblTempVendorCDR_20' ) end [2025-01-22 18:14:21] Production.INFO: ProcessCDR(1,14306745,1,1,2) [2025-01-22 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306745', 'tblTempUsageDetail_20' ) start [2025-01-22 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306745', 'tblTempUsageDetail_20' ) end [2025-01-22 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:14:25] Production.INFO: ==25945== Releasing lock... [2025-01-22 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:14:25] Production.INFO: 65 MB #Memory Used# [2025-01-22 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:15:05 [end_date_ymd] => 2025-01-22 18:15:05 [RateCDR] => 1 ) [2025-01-22 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:15:05' and `end` < '2025-01-22 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:15:18] Production.INFO: count ==4914 [2025-01-22 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:15:05 - End Time 2025-01-22 18:15:05 [2025-01-22 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306752', 'tblTempUsageDetail_20' ) start [2025-01-22 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306752', 'tblTempUsageDetail_20' ) end [2025-01-22 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306752', 'tblTempVendorCDR_20' ) start [2025-01-22 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306752', 'tblTempVendorCDR_20' ) end [2025-01-22 18:15:20] Production.INFO: ProcessCDR(1,14306752,1,1,2) [2025-01-22 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306752', 'tblTempUsageDetail_20' ) start [2025-01-22 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306752', 'tblTempUsageDetail_20' ) end [2025-01-22 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:15:23] Production.INFO: ==26027== Releasing lock... [2025-01-22 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:15:23] Production.INFO: 64.75 MB #Memory Used# [2025-01-22 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:16:05 [end_date_ymd] => 2025-01-22 18:16:05 [RateCDR] => 1 ) [2025-01-22 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:16:05' and `end` < '2025-01-22 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:16:18] Production.INFO: count ==4889 [2025-01-22 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:16:05 - End Time 2025-01-22 18:16:05 [2025-01-22 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306757', 'tblTempUsageDetail_20' ) start [2025-01-22 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306757', 'tblTempUsageDetail_20' ) end [2025-01-22 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306757', 'tblTempVendorCDR_20' ) start [2025-01-22 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306757', 'tblTempVendorCDR_20' ) end [2025-01-22 18:16:20] Production.INFO: ProcessCDR(1,14306757,1,1,2) [2025-01-22 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306757', 'tblTempUsageDetail_20' ) start [2025-01-22 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306757', 'tblTempUsageDetail_20' ) end [2025-01-22 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:16:24] Production.INFO: ==26120== Releasing lock... [2025-01-22 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:16:24] Production.INFO: 64.5 MB #Memory Used# [2025-01-22 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:17:05 [end_date_ymd] => 2025-01-22 18:17:05 [RateCDR] => 1 ) [2025-01-22 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:17:05' and `end` < '2025-01-22 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:17:21] Production.INFO: count ==4882 [2025-01-22 18:17:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:17:05 - End Time 2025-01-22 18:17:05 [2025-01-22 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306762', 'tblTempUsageDetail_20' ) start [2025-01-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306762', 'tblTempUsageDetail_20' ) end [2025-01-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306762', 'tblTempVendorCDR_20' ) start [2025-01-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306762', 'tblTempVendorCDR_20' ) end [2025-01-22 18:17:22] Production.INFO: ProcessCDR(1,14306762,1,1,2) [2025-01-22 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306762', 'tblTempUsageDetail_20' ) start [2025-01-22 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306762', 'tblTempUsageDetail_20' ) end [2025-01-22 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:17:27] Production.INFO: ==26196== Releasing lock... [2025-01-22 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:17:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-22 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:18:05 [end_date_ymd] => 2025-01-22 18:18:05 [RateCDR] => 1 ) [2025-01-22 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:18:05' and `end` < '2025-01-22 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:18:21] Production.INFO: count ==4859 [2025-01-22 18:18:23] Production.ERROR: pbx CDR StartTime 2025-01-22 15:18:05 - End Time 2025-01-22 18:18:05 [2025-01-22 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306767', 'tblTempUsageDetail_20' ) start [2025-01-22 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306767', 'tblTempUsageDetail_20' ) end [2025-01-22 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306767', 'tblTempVendorCDR_20' ) start [2025-01-22 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306767', 'tblTempVendorCDR_20' ) end [2025-01-22 18:18:23] Production.INFO: ProcessCDR(1,14306767,1,1,2) [2025-01-22 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306767', 'tblTempUsageDetail_20' ) start [2025-01-22 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306767', 'tblTempUsageDetail_20' ) end [2025-01-22 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:18:26] Production.INFO: ==26298== Releasing lock... [2025-01-22 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:18:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-22 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:19:05 [end_date_ymd] => 2025-01-22 18:19:05 [RateCDR] => 1 ) [2025-01-22 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:19:05' and `end` < '2025-01-22 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:19:18] Production.INFO: count ==4853 [2025-01-22 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:19:05 - End Time 2025-01-22 18:19:05 [2025-01-22 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306772', 'tblTempUsageDetail_20' ) start [2025-01-22 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306772', 'tblTempUsageDetail_20' ) end [2025-01-22 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306772', 'tblTempVendorCDR_20' ) start [2025-01-22 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306772', 'tblTempVendorCDR_20' ) end [2025-01-22 18:19:20] Production.INFO: ProcessCDR(1,14306772,1,1,2) [2025-01-22 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306772', 'tblTempUsageDetail_20' ) start [2025-01-22 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306772', 'tblTempUsageDetail_20' ) end [2025-01-22 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:19:24] Production.INFO: ==26375== Releasing lock... [2025-01-22 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:19:24] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:20:06 [end_date_ymd] => 2025-01-22 18:20:06 [RateCDR] => 1 ) [2025-01-22 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:20:06' and `end` < '2025-01-22 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:20:20] Production.INFO: count ==4849 [2025-01-22 18:20:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:20:06 - End Time 2025-01-22 18:20:06 [2025-01-22 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306778', 'tblTempUsageDetail_20' ) start [2025-01-22 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306778', 'tblTempUsageDetail_20' ) end [2025-01-22 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306778', 'tblTempVendorCDR_20' ) start [2025-01-22 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306778', 'tblTempVendorCDR_20' ) end [2025-01-22 18:20:22] Production.INFO: ProcessCDR(1,14306778,1,1,2) [2025-01-22 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306778', 'tblTempUsageDetail_20' ) start [2025-01-22 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306778', 'tblTempUsageDetail_20' ) end [2025-01-22 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:20:25] Production.INFO: ==26480== Releasing lock... [2025-01-22 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:20:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:21:05 [end_date_ymd] => 2025-01-22 18:21:05 [RateCDR] => 1 ) [2025-01-22 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:21:05' and `end` < '2025-01-22 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:21:19] Production.INFO: count ==4833 [2025-01-22 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:21:05 - End Time 2025-01-22 18:21:05 [2025-01-22 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306783', 'tblTempUsageDetail_20' ) start [2025-01-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306783', 'tblTempUsageDetail_20' ) end [2025-01-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306783', 'tblTempVendorCDR_20' ) start [2025-01-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306783', 'tblTempVendorCDR_20' ) end [2025-01-22 18:21:21] Production.INFO: ProcessCDR(1,14306783,1,1,2) [2025-01-22 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306783', 'tblTempUsageDetail_20' ) start [2025-01-22 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306783', 'tblTempUsageDetail_20' ) end [2025-01-22 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:21:25] Production.INFO: ==26587== Releasing lock... [2025-01-22 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:21:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:22:05 [end_date_ymd] => 2025-01-22 18:22:05 [RateCDR] => 1 ) [2025-01-22 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:22:05' and `end` < '2025-01-22 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:22:18] Production.INFO: count ==4827 [2025-01-22 18:22:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:22:05 - End Time 2025-01-22 18:22:05 [2025-01-22 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306788', 'tblTempUsageDetail_20' ) start [2025-01-22 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306788', 'tblTempUsageDetail_20' ) end [2025-01-22 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306788', 'tblTempVendorCDR_20' ) start [2025-01-22 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306788', 'tblTempVendorCDR_20' ) end [2025-01-22 18:22:20] Production.INFO: ProcessCDR(1,14306788,1,1,2) [2025-01-22 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306788', 'tblTempUsageDetail_20' ) start [2025-01-22 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306788', 'tblTempUsageDetail_20' ) end [2025-01-22 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:22:23] Production.INFO: ==26712== Releasing lock... [2025-01-22 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:22:23] Production.INFO: 64.25 MB #Memory Used# [2025-01-22 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:23:05 [end_date_ymd] => 2025-01-22 18:23:05 [RateCDR] => 1 ) [2025-01-22 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:23:05' and `end` < '2025-01-22 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:23:18] Production.INFO: count ==4809 [2025-01-22 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:23:05 - End Time 2025-01-22 18:23:05 [2025-01-22 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306793', 'tblTempUsageDetail_20' ) start [2025-01-22 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306793', 'tblTempUsageDetail_20' ) end [2025-01-22 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306793', 'tblTempVendorCDR_20' ) start [2025-01-22 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306793', 'tblTempVendorCDR_20' ) end [2025-01-22 18:23:20] Production.INFO: ProcessCDR(1,14306793,1,1,2) [2025-01-22 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306793', 'tblTempUsageDetail_20' ) start [2025-01-22 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306793', 'tblTempUsageDetail_20' ) end [2025-01-22 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:23:23] Production.INFO: ==26822== Releasing lock... [2025-01-22 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:23:23] Production.INFO: 64 MB #Memory Used# [2025-01-22 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:24:06 [end_date_ymd] => 2025-01-22 18:24:06 [RateCDR] => 1 ) [2025-01-22 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:24:06' and `end` < '2025-01-22 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:24:19] Production.INFO: count ==4797 [2025-01-22 18:24:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:24:06 - End Time 2025-01-22 18:24:06 [2025-01-22 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306798', 'tblTempUsageDetail_20' ) start [2025-01-22 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306798', 'tblTempUsageDetail_20' ) end [2025-01-22 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306798', 'tblTempVendorCDR_20' ) start [2025-01-22 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306798', 'tblTempVendorCDR_20' ) end [2025-01-22 18:24:21] Production.INFO: ProcessCDR(1,14306798,1,1,2) [2025-01-22 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306798', 'tblTempUsageDetail_20' ) start [2025-01-22 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306798', 'tblTempUsageDetail_20' ) end [2025-01-22 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:24:24] Production.INFO: ==26952== Releasing lock... [2025-01-22 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:24:24] Production.INFO: 64 MB #Memory Used# [2025-01-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:25:05 [end_date_ymd] => 2025-01-22 18:25:05 [RateCDR] => 1 ) [2025-01-22 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:25:05' and `end` < '2025-01-22 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:25:21] Production.INFO: count ==4779 [2025-01-22 18:25:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:25:05 - End Time 2025-01-22 18:25:05 [2025-01-22 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306803', 'tblTempUsageDetail_20' ) start [2025-01-22 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306803', 'tblTempUsageDetail_20' ) end [2025-01-22 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306803', 'tblTempVendorCDR_20' ) start [2025-01-22 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306803', 'tblTempVendorCDR_20' ) end [2025-01-22 18:25:22] Production.INFO: ProcessCDR(1,14306803,1,1,2) [2025-01-22 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306803', 'tblTempUsageDetail_20' ) start [2025-01-22 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306803', 'tblTempUsageDetail_20' ) end [2025-01-22 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:25:25] Production.INFO: ==27060== Releasing lock... [2025-01-22 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:25:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:26:05 [end_date_ymd] => 2025-01-22 18:26:05 [RateCDR] => 1 ) [2025-01-22 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:26:05' and `end` < '2025-01-22 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:26:26] Production.INFO: count ==4776 [2025-01-22 18:26:27] Production.ERROR: pbx CDR StartTime 2025-01-22 15:26:05 - End Time 2025-01-22 18:26:05 [2025-01-22 18:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306808', 'tblTempUsageDetail_20' ) start [2025-01-22 18:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306808', 'tblTempUsageDetail_20' ) end [2025-01-22 18:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306808', 'tblTempVendorCDR_20' ) start [2025-01-22 18:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306808', 'tblTempVendorCDR_20' ) end [2025-01-22 18:26:27] Production.INFO: ProcessCDR(1,14306808,1,1,2) [2025-01-22 18:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306808', 'tblTempUsageDetail_20' ) start [2025-01-22 18:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306808', 'tblTempUsageDetail_20' ) end [2025-01-22 18:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:26:32] Production.INFO: ==27191== Releasing lock... [2025-01-22 18:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:26:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-22 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:27:05 [end_date_ymd] => 2025-01-22 18:27:05 [RateCDR] => 1 ) [2025-01-22 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:27:05' and `end` < '2025-01-22 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:27:20] Production.INFO: count ==4748 [2025-01-22 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:27:05 - End Time 2025-01-22 18:27:05 [2025-01-22 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306813', 'tblTempUsageDetail_20' ) start [2025-01-22 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306813', 'tblTempUsageDetail_20' ) end [2025-01-22 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306813', 'tblTempVendorCDR_20' ) start [2025-01-22 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306813', 'tblTempVendorCDR_20' ) end [2025-01-22 18:27:22] Production.INFO: ProcessCDR(1,14306813,1,1,2) [2025-01-22 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306813', 'tblTempUsageDetail_20' ) start [2025-01-22 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306813', 'tblTempUsageDetail_20' ) end [2025-01-22 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:27:25] Production.INFO: ==27302== Releasing lock... [2025-01-22 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:27:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-22 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:28:06 [end_date_ymd] => 2025-01-22 18:28:06 [RateCDR] => 1 ) [2025-01-22 18:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:28:06' and `end` < '2025-01-22 18:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:28:21] Production.INFO: count ==4717 [2025-01-22 18:28:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:28:06 - End Time 2025-01-22 18:28:06 [2025-01-22 18:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306818', 'tblTempUsageDetail_20' ) start [2025-01-22 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306818', 'tblTempUsageDetail_20' ) end [2025-01-22 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306818', 'tblTempVendorCDR_20' ) start [2025-01-22 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306818', 'tblTempVendorCDR_20' ) end [2025-01-22 18:28:23] Production.INFO: ProcessCDR(1,14306818,1,1,2) [2025-01-22 18:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306818', 'tblTempUsageDetail_20' ) start [2025-01-22 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306818', 'tblTempUsageDetail_20' ) end [2025-01-22 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:28:25] Production.INFO: ==27434== Releasing lock... [2025-01-22 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:28:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-22 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:29:05 [end_date_ymd] => 2025-01-22 18:29:05 [RateCDR] => 1 ) [2025-01-22 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:29:05' and `end` < '2025-01-22 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:29:18] Production.INFO: count ==4703 [2025-01-22 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:29:05 - End Time 2025-01-22 18:29:05 [2025-01-22 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306823', 'tblTempUsageDetail_20' ) start [2025-01-22 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306823', 'tblTempUsageDetail_20' ) end [2025-01-22 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306823', 'tblTempVendorCDR_20' ) start [2025-01-22 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306823', 'tblTempVendorCDR_20' ) end [2025-01-22 18:29:19] Production.INFO: ProcessCDR(1,14306823,1,1,2) [2025-01-22 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306823', 'tblTempUsageDetail_20' ) start [2025-01-22 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306823', 'tblTempUsageDetail_20' ) end [2025-01-22 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:29:24] Production.INFO: ==27545== Releasing lock... [2025-01-22 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:29:24] Production.INFO: 63.25 MB #Memory Used# [2025-01-22 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:30:06 [end_date_ymd] => 2025-01-22 18:30:06 [RateCDR] => 1 ) [2025-01-22 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:30:06' and `end` < '2025-01-22 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:30:19] Production.INFO: count ==4694 [2025-01-22 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:30:06 - End Time 2025-01-22 18:30:06 [2025-01-22 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306829', 'tblTempUsageDetail_20' ) start [2025-01-22 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306829', 'tblTempUsageDetail_20' ) end [2025-01-22 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306829', 'tblTempVendorCDR_20' ) start [2025-01-22 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306829', 'tblTempVendorCDR_20' ) end [2025-01-22 18:30:21] Production.INFO: ProcessCDR(1,14306829,1,1,2) [2025-01-22 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306829', 'tblTempUsageDetail_20' ) start [2025-01-22 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306829', 'tblTempUsageDetail_20' ) end [2025-01-22 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:30:25] Production.INFO: ==27710== Releasing lock... [2025-01-22 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:30:25] Production.INFO: 63 MB #Memory Used# [2025-01-22 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:31:05 [end_date_ymd] => 2025-01-22 18:31:05 [RateCDR] => 1 ) [2025-01-22 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:31:05' and `end` < '2025-01-22 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:31:18] Production.INFO: count ==4624 [2025-01-22 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:31:05 - End Time 2025-01-22 18:31:05 [2025-01-22 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306834', 'tblTempUsageDetail_20' ) start [2025-01-22 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306834', 'tblTempUsageDetail_20' ) end [2025-01-22 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306834', 'tblTempVendorCDR_20' ) start [2025-01-22 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306834', 'tblTempVendorCDR_20' ) end [2025-01-22 18:31:19] Production.INFO: ProcessCDR(1,14306834,1,1,2) [2025-01-22 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306834', 'tblTempUsageDetail_20' ) start [2025-01-22 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306834', 'tblTempUsageDetail_20' ) end [2025-01-22 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:31:22] Production.INFO: ==27828== Releasing lock... [2025-01-22 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:31:22] Production.INFO: 62.5 MB #Memory Used# [2025-01-22 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:32:06 [end_date_ymd] => 2025-01-22 18:32:06 [RateCDR] => 1 ) [2025-01-22 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:32:06' and `end` < '2025-01-22 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:32:19] Production.INFO: count ==4617 [2025-01-22 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:32:06 - End Time 2025-01-22 18:32:06 [2025-01-22 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306839', 'tblTempUsageDetail_20' ) start [2025-01-22 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306839', 'tblTempUsageDetail_20' ) end [2025-01-22 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306839', 'tblTempVendorCDR_20' ) start [2025-01-22 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306839', 'tblTempVendorCDR_20' ) end [2025-01-22 18:32:20] Production.INFO: ProcessCDR(1,14306839,1,1,2) [2025-01-22 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306839', 'tblTempUsageDetail_20' ) start [2025-01-22 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306839', 'tblTempUsageDetail_20' ) end [2025-01-22 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:32:25] Production.INFO: ==27957== Releasing lock... [2025-01-22 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:32:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-22 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:33:05 [end_date_ymd] => 2025-01-22 18:33:05 [RateCDR] => 1 ) [2025-01-22 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:33:05' and `end` < '2025-01-22 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:33:20] Production.INFO: count ==4603 [2025-01-22 18:33:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:33:05 - End Time 2025-01-22 18:33:05 [2025-01-22 18:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306844', 'tblTempUsageDetail_20' ) start [2025-01-22 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306844', 'tblTempUsageDetail_20' ) end [2025-01-22 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306844', 'tblTempVendorCDR_20' ) start [2025-01-22 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306844', 'tblTempVendorCDR_20' ) end [2025-01-22 18:33:22] Production.INFO: ProcessCDR(1,14306844,1,1,2) [2025-01-22 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306844', 'tblTempUsageDetail_20' ) start [2025-01-22 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306844', 'tblTempUsageDetail_20' ) end [2025-01-22 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:33:26] Production.INFO: ==28078== Releasing lock... [2025-01-22 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:33:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-22 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:34:05 [end_date_ymd] => 2025-01-22 18:34:05 [RateCDR] => 1 ) [2025-01-22 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:34:05' and `end` < '2025-01-22 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:34:21] Production.INFO: count ==4575 [2025-01-22 18:34:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:34:05 - End Time 2025-01-22 18:34:05 [2025-01-22 18:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306849', 'tblTempUsageDetail_20' ) start [2025-01-22 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306849', 'tblTempUsageDetail_20' ) end [2025-01-22 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306849', 'tblTempVendorCDR_20' ) start [2025-01-22 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306849', 'tblTempVendorCDR_20' ) end [2025-01-22 18:34:22] Production.INFO: ProcessCDR(1,14306849,1,1,2) [2025-01-22 18:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306849', 'tblTempUsageDetail_20' ) start [2025-01-22 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306849', 'tblTempUsageDetail_20' ) end [2025-01-22 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:34:26] Production.INFO: ==28177== Releasing lock... [2025-01-22 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:34:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-22 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:35:05 [end_date_ymd] => 2025-01-22 18:35:05 [RateCDR] => 1 ) [2025-01-22 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:35:05' and `end` < '2025-01-22 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:35:25] Production.INFO: count ==4564 [2025-01-22 18:35:27] Production.ERROR: pbx CDR StartTime 2025-01-22 15:35:05 - End Time 2025-01-22 18:35:05 [2025-01-22 18:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306854', 'tblTempUsageDetail_20' ) start [2025-01-22 18:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306854', 'tblTempUsageDetail_20' ) end [2025-01-22 18:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306854', 'tblTempVendorCDR_20' ) start [2025-01-22 18:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306854', 'tblTempVendorCDR_20' ) end [2025-01-22 18:35:27] Production.INFO: ProcessCDR(1,14306854,1,1,2) [2025-01-22 18:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306854', 'tblTempUsageDetail_20' ) start [2025-01-22 18:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306854', 'tblTempUsageDetail_20' ) end [2025-01-22 18:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:35:32] Production.INFO: ==28280== Releasing lock... [2025-01-22 18:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:35:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-22 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:36:05 [end_date_ymd] => 2025-01-22 18:36:05 [RateCDR] => 1 ) [2025-01-22 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:36:05' and `end` < '2025-01-22 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:36:21] Production.INFO: count ==4558 [2025-01-22 18:36:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:36:05 - End Time 2025-01-22 18:36:05 [2025-01-22 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306859', 'tblTempUsageDetail_20' ) start [2025-01-22 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306859', 'tblTempUsageDetail_20' ) end [2025-01-22 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306859', 'tblTempVendorCDR_20' ) start [2025-01-22 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306859', 'tblTempVendorCDR_20' ) end [2025-01-22 18:36:22] Production.INFO: ProcessCDR(1,14306859,1,1,2) [2025-01-22 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306859', 'tblTempUsageDetail_20' ) start [2025-01-22 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306859', 'tblTempUsageDetail_20' ) end [2025-01-22 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:36:26] Production.INFO: ==28383== Releasing lock... [2025-01-22 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:36:26] Production.INFO: 62 MB #Memory Used# [2025-01-22 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:37:05 [end_date_ymd] => 2025-01-22 18:37:05 [RateCDR] => 1 ) [2025-01-22 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:37:05' and `end` < '2025-01-22 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:37:19] Production.INFO: count ==4548 [2025-01-22 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:37:05 - End Time 2025-01-22 18:37:05 [2025-01-22 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306864', 'tblTempUsageDetail_20' ) start [2025-01-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306864', 'tblTempUsageDetail_20' ) end [2025-01-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306864', 'tblTempVendorCDR_20' ) start [2025-01-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306864', 'tblTempVendorCDR_20' ) end [2025-01-22 18:37:20] Production.INFO: ProcessCDR(1,14306864,1,1,2) [2025-01-22 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306864', 'tblTempUsageDetail_20' ) start [2025-01-22 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306864', 'tblTempUsageDetail_20' ) end [2025-01-22 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:37:23] Production.INFO: ==28489== Releasing lock... [2025-01-22 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:37:23] Production.INFO: 62 MB #Memory Used# [2025-01-22 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:38:05 [end_date_ymd] => 2025-01-22 18:38:05 [RateCDR] => 1 ) [2025-01-22 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:38:05' and `end` < '2025-01-22 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:38:22] Production.INFO: count ==4534 [2025-01-22 18:38:23] Production.ERROR: pbx CDR StartTime 2025-01-22 15:38:05 - End Time 2025-01-22 18:38:05 [2025-01-22 18:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306869', 'tblTempUsageDetail_20' ) start [2025-01-22 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306869', 'tblTempUsageDetail_20' ) end [2025-01-22 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306869', 'tblTempVendorCDR_20' ) start [2025-01-22 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306869', 'tblTempVendorCDR_20' ) end [2025-01-22 18:38:23] Production.INFO: ProcessCDR(1,14306869,1,1,2) [2025-01-22 18:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306869', 'tblTempUsageDetail_20' ) start [2025-01-22 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306869', 'tblTempUsageDetail_20' ) end [2025-01-22 18:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:38:28] Production.INFO: ==28599== Releasing lock... [2025-01-22 18:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:38:28] Production.INFO: 62 MB #Memory Used# [2025-01-22 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:39:05 [end_date_ymd] => 2025-01-22 18:39:05 [RateCDR] => 1 ) [2025-01-22 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:39:05' and `end` < '2025-01-22 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:39:23] Production.INFO: count ==4528 [2025-01-22 18:39:24] Production.ERROR: pbx CDR StartTime 2025-01-22 15:39:05 - End Time 2025-01-22 18:39:05 [2025-01-22 18:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306874', 'tblTempUsageDetail_20' ) start [2025-01-22 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306874', 'tblTempUsageDetail_20' ) end [2025-01-22 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306874', 'tblTempVendorCDR_20' ) start [2025-01-22 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306874', 'tblTempVendorCDR_20' ) end [2025-01-22 18:39:24] Production.INFO: ProcessCDR(1,14306874,1,1,2) [2025-01-22 18:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306874', 'tblTempUsageDetail_20' ) start [2025-01-22 18:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306874', 'tblTempUsageDetail_20' ) end [2025-01-22 18:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:39:29] Production.INFO: ==28706== Releasing lock... [2025-01-22 18:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:39:29] Production.INFO: 62 MB #Memory Used# [2025-01-22 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:40:06 [end_date_ymd] => 2025-01-22 18:40:06 [RateCDR] => 1 ) [2025-01-22 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:40:06' and `end` < '2025-01-22 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:40:24] Production.INFO: count ==4509 [2025-01-22 18:40:25] Production.ERROR: pbx CDR StartTime 2025-01-22 15:40:06 - End Time 2025-01-22 18:40:06 [2025-01-22 18:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306880', 'tblTempUsageDetail_20' ) start [2025-01-22 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306880', 'tblTempUsageDetail_20' ) end [2025-01-22 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306880', 'tblTempVendorCDR_20' ) start [2025-01-22 18:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306880', 'tblTempVendorCDR_20' ) end [2025-01-22 18:40:25] Production.INFO: ProcessCDR(1,14306880,1,1,2) [2025-01-22 18:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306880', 'tblTempUsageDetail_20' ) start [2025-01-22 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306880', 'tblTempUsageDetail_20' ) end [2025-01-22 18:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:40:28] Production.INFO: ==28812== Releasing lock... [2025-01-22 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:40:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-22 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:41:05 [end_date_ymd] => 2025-01-22 18:41:05 [RateCDR] => 1 ) [2025-01-22 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:41:05' and `end` < '2025-01-22 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:41:18] Production.INFO: count ==4398 [2025-01-22 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:41:05 - End Time 2025-01-22 18:41:05 [2025-01-22 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306885', 'tblTempUsageDetail_20' ) start [2025-01-22 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306885', 'tblTempUsageDetail_20' ) end [2025-01-22 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306885', 'tblTempVendorCDR_20' ) start [2025-01-22 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306885', 'tblTempVendorCDR_20' ) end [2025-01-22 18:41:20] Production.INFO: ProcessCDR(1,14306885,1,1,2) [2025-01-22 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306885', 'tblTempUsageDetail_20' ) start [2025-01-22 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306885', 'tblTempUsageDetail_20' ) end [2025-01-22 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:41:24] Production.INFO: ==28918== Releasing lock... [2025-01-22 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:41:24] Production.INFO: 61 MB #Memory Used# [2025-01-22 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:42:06 [end_date_ymd] => 2025-01-22 18:42:06 [RateCDR] => 1 ) [2025-01-22 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:42:06' and `end` < '2025-01-22 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:42:19] Production.INFO: count ==4386 [2025-01-22 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:42:06 - End Time 2025-01-22 18:42:06 [2025-01-22 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306890', 'tblTempUsageDetail_20' ) start [2025-01-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306890', 'tblTempUsageDetail_20' ) end [2025-01-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306890', 'tblTempVendorCDR_20' ) start [2025-01-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306890', 'tblTempVendorCDR_20' ) end [2025-01-22 18:42:20] Production.INFO: ProcessCDR(1,14306890,1,1,2) [2025-01-22 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306890', 'tblTempUsageDetail_20' ) start [2025-01-22 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306890', 'tblTempUsageDetail_20' ) end [2025-01-22 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:42:23] Production.INFO: ==29024== Releasing lock... [2025-01-22 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:42:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-22 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:43:05 [end_date_ymd] => 2025-01-22 18:43:05 [RateCDR] => 1 ) [2025-01-22 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:43:05' and `end` < '2025-01-22 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:43:18] Production.INFO: count ==4364 [2025-01-22 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:43:05 - End Time 2025-01-22 18:43:05 [2025-01-22 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306895', 'tblTempUsageDetail_20' ) start [2025-01-22 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306895', 'tblTempUsageDetail_20' ) end [2025-01-22 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306895', 'tblTempVendorCDR_20' ) start [2025-01-22 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306895', 'tblTempVendorCDR_20' ) end [2025-01-22 18:43:19] Production.INFO: ProcessCDR(1,14306895,1,1,2) [2025-01-22 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306895', 'tblTempUsageDetail_20' ) start [2025-01-22 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306895', 'tblTempUsageDetail_20' ) end [2025-01-22 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:43:24] Production.INFO: ==29127== Releasing lock... [2025-01-22 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:43:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-22 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:44:05 [end_date_ymd] => 2025-01-22 18:44:05 [RateCDR] => 1 ) [2025-01-22 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:44:05' and `end` < '2025-01-22 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:44:20] Production.INFO: count ==4334 [2025-01-22 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:44:05 - End Time 2025-01-22 18:44:05 [2025-01-22 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306900', 'tblTempUsageDetail_20' ) start [2025-01-22 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306900', 'tblTempUsageDetail_20' ) end [2025-01-22 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306900', 'tblTempVendorCDR_20' ) start [2025-01-22 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306900', 'tblTempVendorCDR_20' ) end [2025-01-22 18:44:21] Production.INFO: ProcessCDR(1,14306900,1,1,2) [2025-01-22 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306900', 'tblTempUsageDetail_20' ) start [2025-01-22 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306900', 'tblTempUsageDetail_20' ) end [2025-01-22 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:44:26] Production.INFO: ==29231== Releasing lock... [2025-01-22 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:44:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-22 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:45:05 [end_date_ymd] => 2025-01-22 18:45:05 [RateCDR] => 1 ) [2025-01-22 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:45:05' and `end` < '2025-01-22 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:45:18] Production.INFO: count ==4320 [2025-01-22 18:45:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:45:05 - End Time 2025-01-22 18:45:05 [2025-01-22 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306905', 'tblTempUsageDetail_20' ) start [2025-01-22 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306905', 'tblTempUsageDetail_20' ) end [2025-01-22 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306905', 'tblTempVendorCDR_20' ) start [2025-01-22 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306905', 'tblTempVendorCDR_20' ) end [2025-01-22 18:45:20] Production.INFO: ProcessCDR(1,14306905,1,1,2) [2025-01-22 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306905', 'tblTempUsageDetail_20' ) start [2025-01-22 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306905', 'tblTempUsageDetail_20' ) end [2025-01-22 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:45:24] Production.INFO: ==29372== Releasing lock... [2025-01-22 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:45:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:46:05 [end_date_ymd] => 2025-01-22 18:46:05 [RateCDR] => 1 ) [2025-01-22 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:46:05' and `end` < '2025-01-22 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:46:19] Production.INFO: count ==4307 [2025-01-22 18:46:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:46:05 - End Time 2025-01-22 18:46:05 [2025-01-22 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306910', 'tblTempUsageDetail_20' ) start [2025-01-22 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306910', 'tblTempUsageDetail_20' ) end [2025-01-22 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306910', 'tblTempVendorCDR_20' ) start [2025-01-22 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306910', 'tblTempVendorCDR_20' ) end [2025-01-22 18:46:21] Production.INFO: ProcessCDR(1,14306910,1,1,2) [2025-01-22 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306910', 'tblTempUsageDetail_20' ) start [2025-01-22 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306910', 'tblTempUsageDetail_20' ) end [2025-01-22 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:46:25] Production.INFO: ==29476== Releasing lock... [2025-01-22 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:46:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:47:05 [end_date_ymd] => 2025-01-22 18:47:05 [RateCDR] => 1 ) [2025-01-22 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:47:05' and `end` < '2025-01-22 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:47:19] Production.INFO: count ==4297 [2025-01-22 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:47:05 - End Time 2025-01-22 18:47:05 [2025-01-22 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306915', 'tblTempUsageDetail_20' ) start [2025-01-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306915', 'tblTempUsageDetail_20' ) end [2025-01-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306915', 'tblTempVendorCDR_20' ) start [2025-01-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306915', 'tblTempVendorCDR_20' ) end [2025-01-22 18:47:21] Production.INFO: ProcessCDR(1,14306915,1,1,2) [2025-01-22 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306915', 'tblTempUsageDetail_20' ) start [2025-01-22 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306915', 'tblTempUsageDetail_20' ) end [2025-01-22 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:47:25] Production.INFO: ==29549== Releasing lock... [2025-01-22 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-22 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:48:06 [end_date_ymd] => 2025-01-22 18:48:06 [RateCDR] => 1 ) [2025-01-22 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:48:06' and `end` < '2025-01-22 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:48:21] Production.INFO: count ==4290 [2025-01-22 18:48:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:48:06 - End Time 2025-01-22 18:48:06 [2025-01-22 18:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306920', 'tblTempUsageDetail_20' ) start [2025-01-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306920', 'tblTempUsageDetail_20' ) end [2025-01-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306920', 'tblTempVendorCDR_20' ) start [2025-01-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306920', 'tblTempVendorCDR_20' ) end [2025-01-22 18:48:22] Production.INFO: ProcessCDR(1,14306920,1,1,2) [2025-01-22 18:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306920', 'tblTempUsageDetail_20' ) start [2025-01-22 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306920', 'tblTempUsageDetail_20' ) end [2025-01-22 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:48:26] Production.INFO: ==29620== Releasing lock... [2025-01-22 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:48:26] Production.INFO: 60 MB #Memory Used# [2025-01-22 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:49:05 [end_date_ymd] => 2025-01-22 18:49:05 [RateCDR] => 1 ) [2025-01-22 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:49:05' and `end` < '2025-01-22 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:49:21] Production.INFO: count ==4263 [2025-01-22 18:49:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:49:05 - End Time 2025-01-22 18:49:05 [2025-01-22 18:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306925', 'tblTempUsageDetail_20' ) start [2025-01-22 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306925', 'tblTempUsageDetail_20' ) end [2025-01-22 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306925', 'tblTempVendorCDR_20' ) start [2025-01-22 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306925', 'tblTempVendorCDR_20' ) end [2025-01-22 18:49:22] Production.INFO: ProcessCDR(1,14306925,1,1,2) [2025-01-22 18:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306925', 'tblTempUsageDetail_20' ) start [2025-01-22 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306925', 'tblTempUsageDetail_20' ) end [2025-01-22 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:49:25] Production.INFO: ==29692== Releasing lock... [2025-01-22 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:49:25] Production.INFO: 60 MB #Memory Used# [2025-01-22 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:50:06 [end_date_ymd] => 2025-01-22 18:50:06 [RateCDR] => 1 ) [2025-01-22 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:50:06' and `end` < '2025-01-22 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:50:19] Production.INFO: count ==4238 [2025-01-22 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:50:06 - End Time 2025-01-22 18:50:06 [2025-01-22 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306931', 'tblTempUsageDetail_20' ) start [2025-01-22 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306931', 'tblTempUsageDetail_20' ) end [2025-01-22 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306931', 'tblTempVendorCDR_20' ) start [2025-01-22 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306931', 'tblTempVendorCDR_20' ) end [2025-01-22 18:50:20] Production.INFO: ProcessCDR(1,14306931,1,1,2) [2025-01-22 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306931', 'tblTempUsageDetail_20' ) start [2025-01-22 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306931', 'tblTempUsageDetail_20' ) end [2025-01-22 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:50:23] Production.INFO: ==29765== Releasing lock... [2025-01-22 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:50:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-22 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:51:05 [end_date_ymd] => 2025-01-22 18:51:05 [RateCDR] => 1 ) [2025-01-22 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:51:05' and `end` < '2025-01-22 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:51:18] Production.INFO: count ==4144 [2025-01-22 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:51:05 - End Time 2025-01-22 18:51:05 [2025-01-22 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306936', 'tblTempUsageDetail_20' ) start [2025-01-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306936', 'tblTempUsageDetail_20' ) end [2025-01-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306936', 'tblTempVendorCDR_20' ) start [2025-01-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306936', 'tblTempVendorCDR_20' ) end [2025-01-22 18:51:20] Production.INFO: ProcessCDR(1,14306936,1,1,2) [2025-01-22 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306936', 'tblTempUsageDetail_20' ) start [2025-01-22 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306936', 'tblTempUsageDetail_20' ) end [2025-01-22 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:51:23] Production.INFO: ==29837== Releasing lock... [2025-01-22 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:51:23] Production.INFO: 59 MB #Memory Used# [2025-01-22 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:52:05 [end_date_ymd] => 2025-01-22 18:52:05 [RateCDR] => 1 ) [2025-01-22 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:52:05' and `end` < '2025-01-22 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:52:19] Production.INFO: count ==4116 [2025-01-22 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:52:05 - End Time 2025-01-22 18:52:05 [2025-01-22 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306941', 'tblTempUsageDetail_20' ) start [2025-01-22 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306941', 'tblTempUsageDetail_20' ) end [2025-01-22 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306941', 'tblTempVendorCDR_20' ) start [2025-01-22 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306941', 'tblTempVendorCDR_20' ) end [2025-01-22 18:52:20] Production.INFO: ProcessCDR(1,14306941,1,1,2) [2025-01-22 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306941', 'tblTempUsageDetail_20' ) start [2025-01-22 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306941', 'tblTempUsageDetail_20' ) end [2025-01-22 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:52:25] Production.INFO: ==29912== Releasing lock... [2025-01-22 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:52:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-22 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:53:05 [end_date_ymd] => 2025-01-22 18:53:05 [RateCDR] => 1 ) [2025-01-22 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:53:05' and `end` < '2025-01-22 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:53:18] Production.INFO: count ==4086 [2025-01-22 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 15:53:05 - End Time 2025-01-22 18:53:05 [2025-01-22 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306946', 'tblTempUsageDetail_20' ) start [2025-01-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306946', 'tblTempUsageDetail_20' ) end [2025-01-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306946', 'tblTempVendorCDR_20' ) start [2025-01-22 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306946', 'tblTempVendorCDR_20' ) end [2025-01-22 18:53:20] Production.INFO: ProcessCDR(1,14306946,1,1,2) [2025-01-22 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306946', 'tblTempUsageDetail_20' ) start [2025-01-22 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306946', 'tblTempUsageDetail_20' ) end [2025-01-22 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:53:23] Production.INFO: ==29985== Releasing lock... [2025-01-22 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:53:23] Production.INFO: 58.5 MB #Memory Used# [2025-01-22 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:54:06 [end_date_ymd] => 2025-01-22 18:54:06 [RateCDR] => 1 ) [2025-01-22 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:54:06' and `end` < '2025-01-22 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:54:19] Production.INFO: count ==4073 [2025-01-22 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:54:06 - End Time 2025-01-22 18:54:06 [2025-01-22 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306951', 'tblTempUsageDetail_20' ) start [2025-01-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306951', 'tblTempUsageDetail_20' ) end [2025-01-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306951', 'tblTempVendorCDR_20' ) start [2025-01-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306951', 'tblTempVendorCDR_20' ) end [2025-01-22 18:54:21] Production.INFO: ProcessCDR(1,14306951,1,1,2) [2025-01-22 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306951', 'tblTempUsageDetail_20' ) start [2025-01-22 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306951', 'tblTempUsageDetail_20' ) end [2025-01-22 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:54:25] Production.INFO: ==30056== Releasing lock... [2025-01-22 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-22 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:55:06 [end_date_ymd] => 2025-01-22 18:55:06 [RateCDR] => 1 ) [2025-01-22 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:55:06' and `end` < '2025-01-22 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:55:20] Production.INFO: count ==4062 [2025-01-22 18:55:21] Production.ERROR: pbx CDR StartTime 2025-01-22 15:55:06 - End Time 2025-01-22 18:55:06 [2025-01-22 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306956', 'tblTempUsageDetail_20' ) start [2025-01-22 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306956', 'tblTempUsageDetail_20' ) end [2025-01-22 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306956', 'tblTempVendorCDR_20' ) start [2025-01-22 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306956', 'tblTempVendorCDR_20' ) end [2025-01-22 18:55:21] Production.INFO: ProcessCDR(1,14306956,1,1,2) [2025-01-22 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306956', 'tblTempUsageDetail_20' ) start [2025-01-22 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306956', 'tblTempUsageDetail_20' ) end [2025-01-22 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:55:25] Production.INFO: ==30129== Releasing lock... [2025-01-22 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:55:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-22 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:56:05 [end_date_ymd] => 2025-01-22 18:56:05 [RateCDR] => 1 ) [2025-01-22 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:56:05' and `end` < '2025-01-22 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:56:18] Production.INFO: count ==4052 [2025-01-22 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-22 15:56:05 - End Time 2025-01-22 18:56:05 [2025-01-22 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306961', 'tblTempUsageDetail_20' ) start [2025-01-22 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306961', 'tblTempUsageDetail_20' ) end [2025-01-22 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306961', 'tblTempVendorCDR_20' ) start [2025-01-22 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306961', 'tblTempVendorCDR_20' ) end [2025-01-22 18:56:20] Production.INFO: ProcessCDR(1,14306961,1,1,2) [2025-01-22 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306961', 'tblTempUsageDetail_20' ) start [2025-01-22 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306961', 'tblTempUsageDetail_20' ) end [2025-01-22 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:56:23] Production.INFO: ==30201== Releasing lock... [2025-01-22 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:56:23] Production.INFO: 58.25 MB #Memory Used# [2025-01-22 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:57:05 [end_date_ymd] => 2025-01-22 18:57:05 [RateCDR] => 1 ) [2025-01-22 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:57:05' and `end` < '2025-01-22 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:57:21] Production.INFO: count ==4035 [2025-01-22 18:57:22] Production.ERROR: pbx CDR StartTime 2025-01-22 15:57:05 - End Time 2025-01-22 18:57:05 [2025-01-22 18:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306966', 'tblTempUsageDetail_20' ) start [2025-01-22 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306966', 'tblTempUsageDetail_20' ) end [2025-01-22 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306966', 'tblTempVendorCDR_20' ) start [2025-01-22 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306966', 'tblTempVendorCDR_20' ) end [2025-01-22 18:57:22] Production.INFO: ProcessCDR(1,14306966,1,1,2) [2025-01-22 18:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306966', 'tblTempUsageDetail_20' ) start [2025-01-22 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306966', 'tblTempUsageDetail_20' ) end [2025-01-22 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:57:26] Production.INFO: ==30272== Releasing lock... [2025-01-22 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:57:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-22 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:58:05 [end_date_ymd] => 2025-01-22 18:58:05 [RateCDR] => 1 ) [2025-01-22 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:58:05' and `end` < '2025-01-22 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:58:22] Production.INFO: count ==4021 [2025-01-22 18:58:23] Production.ERROR: pbx CDR StartTime 2025-01-22 15:58:05 - End Time 2025-01-22 18:58:05 [2025-01-22 18:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306971', 'tblTempUsageDetail_20' ) start [2025-01-22 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306971', 'tblTempUsageDetail_20' ) end [2025-01-22 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306971', 'tblTempVendorCDR_20' ) start [2025-01-22 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306971', 'tblTempVendorCDR_20' ) end [2025-01-22 18:58:24] Production.INFO: ProcessCDR(1,14306971,1,1,2) [2025-01-22 18:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306971', 'tblTempUsageDetail_20' ) start [2025-01-22 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306971', 'tblTempUsageDetail_20' ) end [2025-01-22 18:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:58:27] Production.INFO: ==30340== Releasing lock... [2025-01-22 18:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:58:27] Production.INFO: 58 MB #Memory Used# [2025-01-22 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 15:59:05 [end_date_ymd] => 2025-01-22 18:59:05 [RateCDR] => 1 ) [2025-01-22 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 15:59:05' and `end` < '2025-01-22 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 18:59:23] Production.INFO: count ==3997 [2025-01-22 18:59:24] Production.ERROR: pbx CDR StartTime 2025-01-22 15:59:05 - End Time 2025-01-22 18:59:05 [2025-01-22 18:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306976', 'tblTempUsageDetail_20' ) start [2025-01-22 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306976', 'tblTempUsageDetail_20' ) end [2025-01-22 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306976', 'tblTempVendorCDR_20' ) start [2025-01-22 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306976', 'tblTempVendorCDR_20' ) end [2025-01-22 18:59:24] Production.INFO: ProcessCDR(1,14306976,1,1,2) [2025-01-22 18:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 18:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 18:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306976', 'tblTempUsageDetail_20' ) start [2025-01-22 18:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306976', 'tblTempUsageDetail_20' ) end [2025-01-22 18:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 18:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 18:59:27] Production.INFO: ==30411== Releasing lock... [2025-01-22 18:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 18:59:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-22 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:00:05 [end_date_ymd] => 2025-01-22 19:00:05 [RateCDR] => 1 ) [2025-01-22 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:00:05' and `end` < '2025-01-22 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:00:19] Production.INFO: count ==3993 [2025-01-22 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:00:05 - End Time 2025-01-22 19:00:05 [2025-01-22 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306981', 'tblTempUsageDetail_20' ) start [2025-01-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306981', 'tblTempUsageDetail_20' ) end [2025-01-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306981', 'tblTempVendorCDR_20' ) start [2025-01-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306981', 'tblTempVendorCDR_20' ) end [2025-01-22 19:00:21] Production.INFO: ProcessCDR(1,14306981,1,1,2) [2025-01-22 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306981', 'tblTempUsageDetail_20' ) start [2025-01-22 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306981', 'tblTempUsageDetail_20' ) end [2025-01-22 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:00:24] Production.INFO: ==30482== Releasing lock... [2025-01-22 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:00:24] Production.INFO: 58 MB #Memory Used# [2025-01-22 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:01:06 [end_date_ymd] => 2025-01-22 19:01:06 [RateCDR] => 1 ) [2025-01-22 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:01:06' and `end` < '2025-01-22 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:01:19] Production.INFO: count ==3952 [2025-01-22 19:01:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:01:06 - End Time 2025-01-22 19:01:06 [2025-01-22 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306987', 'tblTempUsageDetail_20' ) start [2025-01-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306987', 'tblTempUsageDetail_20' ) end [2025-01-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306987', 'tblTempVendorCDR_20' ) start [2025-01-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306987', 'tblTempVendorCDR_20' ) end [2025-01-22 19:01:20] Production.INFO: ProcessCDR(1,14306987,1,1,2) [2025-01-22 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306987', 'tblTempUsageDetail_20' ) start [2025-01-22 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306987', 'tblTempUsageDetail_20' ) end [2025-01-22 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:01:25] Production.INFO: ==30605== Releasing lock... [2025-01-22 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:01:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-22 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:02:05 [end_date_ymd] => 2025-01-22 19:02:05 [RateCDR] => 1 ) [2025-01-22 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:02:05' and `end` < '2025-01-22 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:02:22] Production.INFO: count ==3932 [2025-01-22 19:02:23] Production.ERROR: pbx CDR StartTime 2025-01-22 16:02:05 - End Time 2025-01-22 19:02:05 [2025-01-22 19:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306992', 'tblTempUsageDetail_20' ) start [2025-01-22 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306992', 'tblTempUsageDetail_20' ) end [2025-01-22 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306992', 'tblTempVendorCDR_20' ) start [2025-01-22 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306992', 'tblTempVendorCDR_20' ) end [2025-01-22 19:02:23] Production.INFO: ProcessCDR(1,14306992,1,1,2) [2025-01-22 19:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306992', 'tblTempUsageDetail_20' ) start [2025-01-22 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306992', 'tblTempUsageDetail_20' ) end [2025-01-22 19:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:02:27] Production.INFO: ==30756== Releasing lock... [2025-01-22 19:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:02:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-22 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:03:05 [end_date_ymd] => 2025-01-22 19:03:05 [RateCDR] => 1 ) [2025-01-22 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:03:05' and `end` < '2025-01-22 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:03:22] Production.INFO: count ==3900 [2025-01-22 19:03:23] Production.ERROR: pbx CDR StartTime 2025-01-22 16:03:05 - End Time 2025-01-22 19:03:05 [2025-01-22 19:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306997', 'tblTempUsageDetail_20' ) start [2025-01-22 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14306997', 'tblTempUsageDetail_20' ) end [2025-01-22 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306997', 'tblTempVendorCDR_20' ) start [2025-01-22 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14306997', 'tblTempVendorCDR_20' ) end [2025-01-22 19:03:23] Production.INFO: ProcessCDR(1,14306997,1,1,2) [2025-01-22 19:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14306997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14306997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14306997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14306997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306997', 'tblTempUsageDetail_20' ) start [2025-01-22 19:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14306997', 'tblTempUsageDetail_20' ) end [2025-01-22 19:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:03:28] Production.INFO: ==30828== Releasing lock... [2025-01-22 19:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:03:28] Production.INFO: 57 MB #Memory Used# [2025-01-22 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:04:05 [end_date_ymd] => 2025-01-22 19:04:05 [RateCDR] => 1 ) [2025-01-22 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:04:05' and `end` < '2025-01-22 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:04:18] Production.INFO: count ==3867 [2025-01-22 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:04:05 - End Time 2025-01-22 19:04:05 [2025-01-22 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307002', 'tblTempUsageDetail_20' ) start [2025-01-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307002', 'tblTempUsageDetail_20' ) end [2025-01-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307002', 'tblTempVendorCDR_20' ) start [2025-01-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307002', 'tblTempVendorCDR_20' ) end [2025-01-22 19:04:19] Production.INFO: ProcessCDR(1,14307002,1,1,2) [2025-01-22 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307002', 'tblTempUsageDetail_20' ) start [2025-01-22 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307002', 'tblTempUsageDetail_20' ) end [2025-01-22 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:04:23] Production.INFO: ==30898== Releasing lock... [2025-01-22 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:04:23] Production.INFO: 57 MB #Memory Used# [2025-01-22 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:05:05 [end_date_ymd] => 2025-01-22 19:05:05 [RateCDR] => 1 ) [2025-01-22 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:05:05' and `end` < '2025-01-22 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:05:20] Production.INFO: count ==3842 [2025-01-22 19:05:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:05:05 - End Time 2025-01-22 19:05:05 [2025-01-22 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307007', 'tblTempUsageDetail_20' ) start [2025-01-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307007', 'tblTempUsageDetail_20' ) end [2025-01-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307007', 'tblTempVendorCDR_20' ) start [2025-01-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307007', 'tblTempVendorCDR_20' ) end [2025-01-22 19:05:21] Production.INFO: ProcessCDR(1,14307007,1,1,2) [2025-01-22 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307007', 'tblTempUsageDetail_20' ) start [2025-01-22 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307007', 'tblTempUsageDetail_20' ) end [2025-01-22 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:05:24] Production.INFO: ==31049== Releasing lock... [2025-01-22 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:05:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-22 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:06:05 [end_date_ymd] => 2025-01-22 19:06:05 [RateCDR] => 1 ) [2025-01-22 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:06:05' and `end` < '2025-01-22 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:06:18] Production.INFO: count ==3817 [2025-01-22 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:06:05 - End Time 2025-01-22 19:06:05 [2025-01-22 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307012', 'tblTempUsageDetail_20' ) start [2025-01-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307012', 'tblTempUsageDetail_20' ) end [2025-01-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307012', 'tblTempVendorCDR_20' ) start [2025-01-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307012', 'tblTempVendorCDR_20' ) end [2025-01-22 19:06:19] Production.INFO: ProcessCDR(1,14307012,1,1,2) [2025-01-22 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307012', 'tblTempUsageDetail_20' ) start [2025-01-22 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307012', 'tblTempUsageDetail_20' ) end [2025-01-22 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:06:22] Production.INFO: ==31119== Releasing lock... [2025-01-22 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:06:22] Production.INFO: 57.25 MB #Memory Used# [2025-01-22 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:07:06 [end_date_ymd] => 2025-01-22 19:07:06 [RateCDR] => 1 ) [2025-01-22 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:07:06' and `end` < '2025-01-22 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:07:19] Production.INFO: count ==3778 [2025-01-22 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:07:06 - End Time 2025-01-22 19:07:06 [2025-01-22 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307017', 'tblTempUsageDetail_20' ) start [2025-01-22 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307017', 'tblTempUsageDetail_20' ) end [2025-01-22 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307017', 'tblTempVendorCDR_20' ) start [2025-01-22 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307017', 'tblTempVendorCDR_20' ) end [2025-01-22 19:07:20] Production.INFO: ProcessCDR(1,14307017,1,1,2) [2025-01-22 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307017', 'tblTempUsageDetail_20' ) start [2025-01-22 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307017', 'tblTempUsageDetail_20' ) end [2025-01-22 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:07:23] Production.INFO: ==31191== Releasing lock... [2025-01-22 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:07:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-22 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:08:05 [end_date_ymd] => 2025-01-22 19:08:05 [RateCDR] => 1 ) [2025-01-22 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:08:05' and `end` < '2025-01-22 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:08:20] Production.INFO: count ==3756 [2025-01-22 19:08:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:08:05 - End Time 2025-01-22 19:08:05 [2025-01-22 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307022', 'tblTempUsageDetail_20' ) start [2025-01-22 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307022', 'tblTempUsageDetail_20' ) end [2025-01-22 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307022', 'tblTempVendorCDR_20' ) start [2025-01-22 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307022', 'tblTempVendorCDR_20' ) end [2025-01-22 19:08:21] Production.INFO: ProcessCDR(1,14307022,1,1,2) [2025-01-22 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307022', 'tblTempUsageDetail_20' ) start [2025-01-22 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307022', 'tblTempUsageDetail_20' ) end [2025-01-22 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:08:26] Production.INFO: ==31302== Releasing lock... [2025-01-22 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:08:26] Production.INFO: 56 MB #Memory Used# [2025-01-22 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:09:05 [end_date_ymd] => 2025-01-22 19:09:05 [RateCDR] => 1 ) [2025-01-22 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:09:05' and `end` < '2025-01-22 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:09:22] Production.INFO: count ==3752 [2025-01-22 19:09:23] Production.ERROR: pbx CDR StartTime 2025-01-22 16:09:05 - End Time 2025-01-22 19:09:05 [2025-01-22 19:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307027', 'tblTempUsageDetail_20' ) start [2025-01-22 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307027', 'tblTempUsageDetail_20' ) end [2025-01-22 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307027', 'tblTempVendorCDR_20' ) start [2025-01-22 19:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307027', 'tblTempVendorCDR_20' ) end [2025-01-22 19:09:23] Production.INFO: ProcessCDR(1,14307027,1,1,2) [2025-01-22 19:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307027', 'tblTempUsageDetail_20' ) start [2025-01-22 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307027', 'tblTempUsageDetail_20' ) end [2025-01-22 19:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:09:27] Production.INFO: ==31411== Releasing lock... [2025-01-22 19:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:09:27] Production.INFO: 56.5 MB #Memory Used# [2025-01-22 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:10:06 [end_date_ymd] => 2025-01-22 19:10:06 [RateCDR] => 1 ) [2025-01-22 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:10:06' and `end` < '2025-01-22 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:10:24] Production.INFO: count ==3729 [2025-01-22 19:10:25] Production.ERROR: pbx CDR StartTime 2025-01-22 16:10:06 - End Time 2025-01-22 19:10:06 [2025-01-22 19:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307033', 'tblTempUsageDetail_20' ) start [2025-01-22 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307033', 'tblTempUsageDetail_20' ) end [2025-01-22 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307033', 'tblTempVendorCDR_20' ) start [2025-01-22 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307033', 'tblTempVendorCDR_20' ) end [2025-01-22 19:10:25] Production.INFO: ProcessCDR(1,14307033,1,1,2) [2025-01-22 19:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307033', 'tblTempUsageDetail_20' ) start [2025-01-22 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307033', 'tblTempUsageDetail_20' ) end [2025-01-22 19:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:10:28] Production.INFO: ==31485== Releasing lock... [2025-01-22 19:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:10:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-22 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:11:05 [end_date_ymd] => 2025-01-22 19:11:05 [RateCDR] => 1 ) [2025-01-22 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:11:05' and `end` < '2025-01-22 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:11:20] Production.INFO: count ==3671 [2025-01-22 19:11:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:11:05 - End Time 2025-01-22 19:11:05 [2025-01-22 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307038', 'tblTempUsageDetail_20' ) start [2025-01-22 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307038', 'tblTempUsageDetail_20' ) end [2025-01-22 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307038', 'tblTempVendorCDR_20' ) start [2025-01-22 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307038', 'tblTempVendorCDR_20' ) end [2025-01-22 19:11:21] Production.INFO: ProcessCDR(1,14307038,1,1,2) [2025-01-22 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307038', 'tblTempUsageDetail_20' ) start [2025-01-22 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307038', 'tblTempUsageDetail_20' ) end [2025-01-22 19:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:11:26] Production.INFO: ==31558== Releasing lock... [2025-01-22 19:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:11:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-22 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:12:05 [end_date_ymd] => 2025-01-22 19:12:05 [RateCDR] => 1 ) [2025-01-22 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:12:05' and `end` < '2025-01-22 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:12:21] Production.INFO: count ==3653 [2025-01-22 19:12:22] Production.ERROR: pbx CDR StartTime 2025-01-22 16:12:05 - End Time 2025-01-22 19:12:05 [2025-01-22 19:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307043', 'tblTempUsageDetail_20' ) start [2025-01-22 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307043', 'tblTempUsageDetail_20' ) end [2025-01-22 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307043', 'tblTempVendorCDR_20' ) start [2025-01-22 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307043', 'tblTempVendorCDR_20' ) end [2025-01-22 19:12:22] Production.INFO: ProcessCDR(1,14307043,1,1,2) [2025-01-22 19:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307043', 'tblTempUsageDetail_20' ) start [2025-01-22 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307043', 'tblTempUsageDetail_20' ) end [2025-01-22 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:12:26] Production.INFO: ==31706== Releasing lock... [2025-01-22 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:12:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-22 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:13:05 [end_date_ymd] => 2025-01-22 19:13:05 [RateCDR] => 1 ) [2025-01-22 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:13:05' and `end` < '2025-01-22 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:13:20] Production.INFO: count ==3619 [2025-01-22 19:13:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:13:05 - End Time 2025-01-22 19:13:05 [2025-01-22 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307048', 'tblTempUsageDetail_20' ) start [2025-01-22 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307048', 'tblTempUsageDetail_20' ) end [2025-01-22 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307048', 'tblTempVendorCDR_20' ) start [2025-01-22 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307048', 'tblTempVendorCDR_20' ) end [2025-01-22 19:13:21] Production.INFO: ProcessCDR(1,14307048,1,1,2) [2025-01-22 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307048', 'tblTempUsageDetail_20' ) start [2025-01-22 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307048', 'tblTempUsageDetail_20' ) end [2025-01-22 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:13:24] Production.INFO: ==31781== Releasing lock... [2025-01-22 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:13:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-22 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:14:05 [end_date_ymd] => 2025-01-22 19:14:05 [RateCDR] => 1 ) [2025-01-22 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:14:05' and `end` < '2025-01-22 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:14:18] Production.INFO: count ==3605 [2025-01-22 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:14:05 - End Time 2025-01-22 19:14:05 [2025-01-22 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307053', 'tblTempUsageDetail_20' ) start [2025-01-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307053', 'tblTempUsageDetail_20' ) end [2025-01-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307053', 'tblTempVendorCDR_20' ) start [2025-01-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307053', 'tblTempVendorCDR_20' ) end [2025-01-22 19:14:19] Production.INFO: ProcessCDR(1,14307053,1,1,2) [2025-01-22 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307053', 'tblTempUsageDetail_20' ) start [2025-01-22 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307053', 'tblTempUsageDetail_20' ) end [2025-01-22 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:14:23] Production.INFO: ==31852== Releasing lock... [2025-01-22 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:14:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-22 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:15:05 [end_date_ymd] => 2025-01-22 19:15:05 [RateCDR] => 1 ) [2025-01-22 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:15:05' and `end` < '2025-01-22 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:15:20] Production.INFO: count ==3563 [2025-01-22 19:15:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:15:05 - End Time 2025-01-22 19:15:05 [2025-01-22 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307058', 'tblTempUsageDetail_20' ) start [2025-01-22 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307058', 'tblTempUsageDetail_20' ) end [2025-01-22 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307058', 'tblTempVendorCDR_20' ) start [2025-01-22 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307058', 'tblTempVendorCDR_20' ) end [2025-01-22 19:15:21] Production.INFO: ProcessCDR(1,14307058,1,1,2) [2025-01-22 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307058', 'tblTempUsageDetail_20' ) start [2025-01-22 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307058', 'tblTempUsageDetail_20' ) end [2025-01-22 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:15:24] Production.INFO: ==32001== Releasing lock... [2025-01-22 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:15:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-22 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:16:05 [end_date_ymd] => 2025-01-22 19:16:05 [RateCDR] => 1 ) [2025-01-22 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:16:05' and `end` < '2025-01-22 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:16:18] Production.INFO: count ==3538 [2025-01-22 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:16:05 - End Time 2025-01-22 19:16:05 [2025-01-22 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307063', 'tblTempUsageDetail_20' ) start [2025-01-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307063', 'tblTempUsageDetail_20' ) end [2025-01-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307063', 'tblTempVendorCDR_20' ) start [2025-01-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307063', 'tblTempVendorCDR_20' ) end [2025-01-22 19:16:19] Production.INFO: ProcessCDR(1,14307063,1,1,2) [2025-01-22 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307063', 'tblTempUsageDetail_20' ) start [2025-01-22 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307063', 'tblTempUsageDetail_20' ) end [2025-01-22 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:16:22] Production.INFO: ==32110== Releasing lock... [2025-01-22 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:16:22] Production.INFO: 54.5 MB #Memory Used# [2025-01-22 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:17:05 [end_date_ymd] => 2025-01-22 19:17:05 [RateCDR] => 1 ) [2025-01-22 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:17:05' and `end` < '2025-01-22 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:17:18] Production.INFO: count ==3521 [2025-01-22 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:17:05 - End Time 2025-01-22 19:17:05 [2025-01-22 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307068', 'tblTempUsageDetail_20' ) start [2025-01-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307068', 'tblTempUsageDetail_20' ) end [2025-01-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307068', 'tblTempVendorCDR_20' ) start [2025-01-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307068', 'tblTempVendorCDR_20' ) end [2025-01-22 19:17:19] Production.INFO: ProcessCDR(1,14307068,1,1,2) [2025-01-22 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307068', 'tblTempUsageDetail_20' ) start [2025-01-22 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307068', 'tblTempUsageDetail_20' ) end [2025-01-22 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:17:24] Production.INFO: ==32185== Releasing lock... [2025-01-22 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:17:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-22 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:18:05 [end_date_ymd] => 2025-01-22 19:18:05 [RateCDR] => 1 ) [2025-01-22 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:18:05' and `end` < '2025-01-22 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:18:19] Production.INFO: count ==3503 [2025-01-22 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:18:05 - End Time 2025-01-22 19:18:05 [2025-01-22 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307073', 'tblTempUsageDetail_20' ) start [2025-01-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307073', 'tblTempUsageDetail_20' ) end [2025-01-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307073', 'tblTempVendorCDR_20' ) start [2025-01-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307073', 'tblTempVendorCDR_20' ) end [2025-01-22 19:18:20] Production.INFO: ProcessCDR(1,14307073,1,1,2) [2025-01-22 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307073', 'tblTempUsageDetail_20' ) start [2025-01-22 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307073', 'tblTempUsageDetail_20' ) end [2025-01-22 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:18:23] Production.INFO: ==32255== Releasing lock... [2025-01-22 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:18:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-22 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:19:04 [end_date_ymd] => 2025-01-22 19:19:04 [RateCDR] => 1 ) [2025-01-22 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:19:04' and `end` < '2025-01-22 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:19:17] Production.INFO: count ==3486 [2025-01-22 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:19:04 - End Time 2025-01-22 19:19:04 [2025-01-22 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307078', 'tblTempUsageDetail_20' ) start [2025-01-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307078', 'tblTempUsageDetail_20' ) end [2025-01-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307078', 'tblTempVendorCDR_20' ) start [2025-01-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307078', 'tblTempVendorCDR_20' ) end [2025-01-22 19:19:18] Production.INFO: ProcessCDR(1,14307078,1,1,2) [2025-01-22 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307078', 'tblTempUsageDetail_20' ) start [2025-01-22 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307078', 'tblTempUsageDetail_20' ) end [2025-01-22 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:19:21] Production.INFO: ==32326== Releasing lock... [2025-01-22 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:19:21] Production.INFO: 54 MB #Memory Used# [2025-01-22 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:20:06 [end_date_ymd] => 2025-01-22 19:20:06 [RateCDR] => 1 ) [2025-01-22 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:20:06' and `end` < '2025-01-22 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:20:19] Production.INFO: count ==3472 [2025-01-22 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:20:06 - End Time 2025-01-22 19:20:06 [2025-01-22 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307084', 'tblTempUsageDetail_20' ) start [2025-01-22 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307084', 'tblTempUsageDetail_20' ) end [2025-01-22 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307084', 'tblTempVendorCDR_20' ) start [2025-01-22 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307084', 'tblTempVendorCDR_20' ) end [2025-01-22 19:20:20] Production.INFO: ProcessCDR(1,14307084,1,1,2) [2025-01-22 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307084', 'tblTempUsageDetail_20' ) start [2025-01-22 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307084', 'tblTempUsageDetail_20' ) end [2025-01-22 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:20:23] Production.INFO: ==32398== Releasing lock... [2025-01-22 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:20:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-22 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:21:05 [end_date_ymd] => 2025-01-22 19:21:05 [RateCDR] => 1 ) [2025-01-22 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:21:05' and `end` < '2025-01-22 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:21:19] Production.INFO: count ==3345 [2025-01-22 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:21:05 - End Time 2025-01-22 19:21:05 [2025-01-22 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307089', 'tblTempUsageDetail_20' ) start [2025-01-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307089', 'tblTempUsageDetail_20' ) end [2025-01-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307089', 'tblTempVendorCDR_20' ) start [2025-01-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307089', 'tblTempVendorCDR_20' ) end [2025-01-22 19:21:20] Production.INFO: ProcessCDR(1,14307089,1,1,2) [2025-01-22 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307089', 'tblTempUsageDetail_20' ) start [2025-01-22 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307089', 'tblTempUsageDetail_20' ) end [2025-01-22 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:21:24] Production.INFO: ==32474== Releasing lock... [2025-01-22 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:21:24] Production.INFO: 53 MB #Memory Used# [2025-01-22 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:22:05 [end_date_ymd] => 2025-01-22 19:22:05 [RateCDR] => 1 ) [2025-01-22 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:22:05' and `end` < '2025-01-22 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:22:18] Production.INFO: count ==3317 [2025-01-22 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:22:05 - End Time 2025-01-22 19:22:05 [2025-01-22 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307094', 'tblTempUsageDetail_20' ) start [2025-01-22 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307094', 'tblTempUsageDetail_20' ) end [2025-01-22 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307094', 'tblTempVendorCDR_20' ) start [2025-01-22 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307094', 'tblTempVendorCDR_20' ) end [2025-01-22 19:22:19] Production.INFO: ProcessCDR(1,14307094,1,1,2) [2025-01-22 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307094', 'tblTempUsageDetail_20' ) start [2025-01-22 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307094', 'tblTempUsageDetail_20' ) end [2025-01-22 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:22:22] Production.INFO: ==32548== Releasing lock... [2025-01-22 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:22:22] Production.INFO: 53 MB #Memory Used# [2025-01-22 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:23:05 [end_date_ymd] => 2025-01-22 19:23:05 [RateCDR] => 1 ) [2025-01-22 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:23:05' and `end` < '2025-01-22 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:23:18] Production.INFO: count ==3288 [2025-01-22 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:23:05 - End Time 2025-01-22 19:23:05 [2025-01-22 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307099', 'tblTempUsageDetail_20' ) start [2025-01-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307099', 'tblTempUsageDetail_20' ) end [2025-01-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307099', 'tblTempVendorCDR_20' ) start [2025-01-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307099', 'tblTempVendorCDR_20' ) end [2025-01-22 19:23:19] Production.INFO: ProcessCDR(1,14307099,1,1,2) [2025-01-22 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307099', 'tblTempUsageDetail_20' ) start [2025-01-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307099', 'tblTempUsageDetail_20' ) end [2025-01-22 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:23:22] Production.INFO: ==32624== Releasing lock... [2025-01-22 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:23:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-22 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:24:05 [end_date_ymd] => 2025-01-22 19:24:05 [RateCDR] => 1 ) [2025-01-22 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:24:05' and `end` < '2025-01-22 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:24:19] Production.INFO: count ==3276 [2025-01-22 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:24:05 - End Time 2025-01-22 19:24:05 [2025-01-22 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307104', 'tblTempUsageDetail_20' ) start [2025-01-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307104', 'tblTempUsageDetail_20' ) end [2025-01-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307104', 'tblTempVendorCDR_20' ) start [2025-01-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307104', 'tblTempVendorCDR_20' ) end [2025-01-22 19:24:20] Production.INFO: ProcessCDR(1,14307104,1,1,2) [2025-01-22 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307104', 'tblTempUsageDetail_20' ) start [2025-01-22 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307104', 'tblTempUsageDetail_20' ) end [2025-01-22 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:24:23] Production.INFO: ==32698== Releasing lock... [2025-01-22 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:24:23] Production.INFO: 53 MB #Memory Used# [2025-01-22 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:25:04 [end_date_ymd] => 2025-01-22 19:25:04 [RateCDR] => 1 ) [2025-01-22 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:25:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 19:25:21] Production.INFO: count ==3257 [2025-01-22 19:25:22] Production.ERROR: pbx CDR StartTime 2025-01-22 16:25:04 - End Time 2025-01-22 19:25:04 [2025-01-22 19:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307109', 'tblTempUsageDetail_20' ) start [2025-01-22 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307109', 'tblTempUsageDetail_20' ) end [2025-01-22 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307109', 'tblTempVendorCDR_20' ) start [2025-01-22 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307109', 'tblTempVendorCDR_20' ) end [2025-01-22 19:25:22] Production.INFO: ProcessCDR(1,14307109,1,1,2) [2025-01-22 19:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307109', 'tblTempUsageDetail_20' ) start [2025-01-22 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307109', 'tblTempUsageDetail_20' ) end [2025-01-22 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:25:26] Production.INFO: ==324== Releasing lock... [2025-01-22 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:25:26] Production.INFO: 52.25 MB #Memory Used# [2025-01-22 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:26:05 [end_date_ymd] => 2025-01-22 19:26:05 [RateCDR] => 1 ) [2025-01-22 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:26:05' and `end` < '2025-01-22 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:26:18] Production.INFO: count ==3247 [2025-01-22 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:26:05 - End Time 2025-01-22 19:26:05 [2025-01-22 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307114', 'tblTempUsageDetail_20' ) start [2025-01-22 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307114', 'tblTempUsageDetail_20' ) end [2025-01-22 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307114', 'tblTempVendorCDR_20' ) start [2025-01-22 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307114', 'tblTempVendorCDR_20' ) end [2025-01-22 19:26:19] Production.INFO: ProcessCDR(1,14307114,1,1,2) [2025-01-22 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307114', 'tblTempUsageDetail_20' ) start [2025-01-22 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307114', 'tblTempUsageDetail_20' ) end [2025-01-22 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:26:23] Production.INFO: ==430== Releasing lock... [2025-01-22 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:26:23] Production.INFO: 53 MB #Memory Used# [2025-01-22 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:27:06 [end_date_ymd] => 2025-01-22 19:27:06 [RateCDR] => 1 ) [2025-01-22 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:27:06' and `end` < '2025-01-22 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:27:20] Production.INFO: count ==3228 [2025-01-22 19:27:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:27:06 - End Time 2025-01-22 19:27:06 [2025-01-22 19:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307119', 'tblTempUsageDetail_20' ) start [2025-01-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307119', 'tblTempUsageDetail_20' ) end [2025-01-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307119', 'tblTempVendorCDR_20' ) start [2025-01-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307119', 'tblTempVendorCDR_20' ) end [2025-01-22 19:27:21] Production.INFO: ProcessCDR(1,14307119,1,1,2) [2025-01-22 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307119', 'tblTempUsageDetail_20' ) start [2025-01-22 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307119', 'tblTempUsageDetail_20' ) end [2025-01-22 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:27:25] Production.INFO: ==506== Releasing lock... [2025-01-22 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:27:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-22 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:28:05 [end_date_ymd] => 2025-01-22 19:28:05 [RateCDR] => 1 ) [2025-01-22 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:28:05' and `end` < '2025-01-22 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:28:18] Production.INFO: count ==3211 [2025-01-22 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:28:05 - End Time 2025-01-22 19:28:05 [2025-01-22 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307124', 'tblTempUsageDetail_20' ) start [2025-01-22 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307124', 'tblTempUsageDetail_20' ) end [2025-01-22 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307124', 'tblTempVendorCDR_20' ) start [2025-01-22 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307124', 'tblTempVendorCDR_20' ) end [2025-01-22 19:28:19] Production.INFO: ProcessCDR(1,14307124,1,1,2) [2025-01-22 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307124', 'tblTempUsageDetail_20' ) start [2025-01-22 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307124', 'tblTempUsageDetail_20' ) end [2025-01-22 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:28:22] Production.INFO: ==580== Releasing lock... [2025-01-22 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:28:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-22 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:29:06 [end_date_ymd] => 2025-01-22 19:29:06 [RateCDR] => 1 ) [2025-01-22 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:29:06' and `end` < '2025-01-22 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:29:18] Production.INFO: count ==3198 [2025-01-22 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:29:06 - End Time 2025-01-22 19:29:06 [2025-01-22 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307129', 'tblTempUsageDetail_20' ) start [2025-01-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307129', 'tblTempUsageDetail_20' ) end [2025-01-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307129', 'tblTempVendorCDR_20' ) start [2025-01-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307129', 'tblTempVendorCDR_20' ) end [2025-01-22 19:29:19] Production.INFO: ProcessCDR(1,14307129,1,1,2) [2025-01-22 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307129', 'tblTempUsageDetail_20' ) start [2025-01-22 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307129', 'tblTempUsageDetail_20' ) end [2025-01-22 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:29:24] Production.INFO: ==677== Releasing lock... [2025-01-22 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:29:24] Production.INFO: 52 MB #Memory Used# [2025-01-22 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:30:06 [end_date_ymd] => 2025-01-22 19:30:06 [RateCDR] => 1 ) [2025-01-22 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:30:06' and `end` < '2025-01-22 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:30:19] Production.INFO: count ==3186 [2025-01-22 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:30:06 - End Time 2025-01-22 19:30:06 [2025-01-22 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307135', 'tblTempUsageDetail_20' ) start [2025-01-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307135', 'tblTempUsageDetail_20' ) end [2025-01-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307135', 'tblTempVendorCDR_20' ) start [2025-01-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307135', 'tblTempVendorCDR_20' ) end [2025-01-22 19:30:20] Production.INFO: ProcessCDR(1,14307135,1,1,2) [2025-01-22 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307135', 'tblTempUsageDetail_20' ) start [2025-01-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307135', 'tblTempUsageDetail_20' ) end [2025-01-22 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:30:23] Production.INFO: ==800== Releasing lock... [2025-01-22 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:30:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-22 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:31:05 [end_date_ymd] => 2025-01-22 19:31:05 [RateCDR] => 1 ) [2025-01-22 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:31:05' and `end` < '2025-01-22 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:31:18] Production.INFO: count ==3038 [2025-01-22 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:31:05 - End Time 2025-01-22 19:31:05 [2025-01-22 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307140', 'tblTempUsageDetail_20' ) start [2025-01-22 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307140', 'tblTempUsageDetail_20' ) end [2025-01-22 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307140', 'tblTempVendorCDR_20' ) start [2025-01-22 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307140', 'tblTempVendorCDR_20' ) end [2025-01-22 19:31:19] Production.INFO: ProcessCDR(1,14307140,1,1,2) [2025-01-22 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307140', 'tblTempUsageDetail_20' ) start [2025-01-22 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307140', 'tblTempUsageDetail_20' ) end [2025-01-22 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:31:23] Production.INFO: ==905== Releasing lock... [2025-01-22 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:31:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-22 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:32:05 [end_date_ymd] => 2025-01-22 19:32:05 [RateCDR] => 1 ) [2025-01-22 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:32:05' and `end` < '2025-01-22 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:32:18] Production.INFO: count ==3026 [2025-01-22 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:32:05 - End Time 2025-01-22 19:32:05 [2025-01-22 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307145', 'tblTempUsageDetail_20' ) start [2025-01-22 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307145', 'tblTempUsageDetail_20' ) end [2025-01-22 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307145', 'tblTempVendorCDR_20' ) start [2025-01-22 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307145', 'tblTempVendorCDR_20' ) end [2025-01-22 19:32:19] Production.INFO: ProcessCDR(1,14307145,1,1,2) [2025-01-22 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307145', 'tblTempUsageDetail_20' ) start [2025-01-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307145', 'tblTempUsageDetail_20' ) end [2025-01-22 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:32:24] Production.INFO: ==1048== Releasing lock... [2025-01-22 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:32:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-22 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:33:05 [end_date_ymd] => 2025-01-22 19:33:05 [RateCDR] => 1 ) [2025-01-22 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:33:05' and `end` < '2025-01-22 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:33:19] Production.INFO: count ==3010 [2025-01-22 19:33:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:33:05 - End Time 2025-01-22 19:33:05 [2025-01-22 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307150', 'tblTempUsageDetail_20' ) start [2025-01-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307150', 'tblTempUsageDetail_20' ) end [2025-01-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307150', 'tblTempVendorCDR_20' ) start [2025-01-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307150', 'tblTempVendorCDR_20' ) end [2025-01-22 19:33:20] Production.INFO: ProcessCDR(1,14307150,1,1,2) [2025-01-22 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307150', 'tblTempUsageDetail_20' ) start [2025-01-22 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307150', 'tblTempUsageDetail_20' ) end [2025-01-22 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:33:23] Production.INFO: ==1156== Releasing lock... [2025-01-22 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:33:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-22 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:34:05 [end_date_ymd] => 2025-01-22 19:34:05 [RateCDR] => 1 ) [2025-01-22 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:34:05' and `end` < '2025-01-22 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:34:18] Production.INFO: count ==2999 [2025-01-22 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:34:05 - End Time 2025-01-22 19:34:05 [2025-01-22 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307155', 'tblTempUsageDetail_20' ) start [2025-01-22 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307155', 'tblTempUsageDetail_20' ) end [2025-01-22 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307155', 'tblTempVendorCDR_20' ) start [2025-01-22 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307155', 'tblTempVendorCDR_20' ) end [2025-01-22 19:34:19] Production.INFO: ProcessCDR(1,14307155,1,1,2) [2025-01-22 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307155', 'tblTempUsageDetail_20' ) start [2025-01-22 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307155', 'tblTempUsageDetail_20' ) end [2025-01-22 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:34:22] Production.INFO: ==1274== Releasing lock... [2025-01-22 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:34:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-22 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:35:05 [end_date_ymd] => 2025-01-22 19:35:05 [RateCDR] => 1 ) [2025-01-22 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:35:05' and `end` < '2025-01-22 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:35:18] Production.INFO: count ==2999 [2025-01-22 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:35:05 - End Time 2025-01-22 19:35:05 [2025-01-22 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307160', 'tblTempUsageDetail_20' ) start [2025-01-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307160', 'tblTempUsageDetail_20' ) end [2025-01-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307160', 'tblTempVendorCDR_20' ) start [2025-01-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307160', 'tblTempVendorCDR_20' ) end [2025-01-22 19:35:18] Production.INFO: ProcessCDR(1,14307160,1,1,2) [2025-01-22 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307160', 'tblTempUsageDetail_20' ) start [2025-01-22 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307160', 'tblTempUsageDetail_20' ) end [2025-01-22 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:35:23] Production.INFO: ==1375== Releasing lock... [2025-01-22 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:35:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-22 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:36:05 [end_date_ymd] => 2025-01-22 19:36:05 [RateCDR] => 1 ) [2025-01-22 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:36:05' and `end` < '2025-01-22 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:36:18] Production.INFO: count ==2982 [2025-01-22 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:36:05 - End Time 2025-01-22 19:36:05 [2025-01-22 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307165', 'tblTempUsageDetail_20' ) start [2025-01-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307165', 'tblTempUsageDetail_20' ) end [2025-01-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307165', 'tblTempVendorCDR_20' ) start [2025-01-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307165', 'tblTempVendorCDR_20' ) end [2025-01-22 19:36:19] Production.INFO: ProcessCDR(1,14307165,1,1,2) [2025-01-22 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307165', 'tblTempUsageDetail_20' ) start [2025-01-22 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307165', 'tblTempUsageDetail_20' ) end [2025-01-22 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:36:24] Production.INFO: ==1480== Releasing lock... [2025-01-22 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:36:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-22 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:37:05 [end_date_ymd] => 2025-01-22 19:37:05 [RateCDR] => 1 ) [2025-01-22 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:37:05' and `end` < '2025-01-22 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:37:18] Production.INFO: count ==2973 [2025-01-22 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:37:05 - End Time 2025-01-22 19:37:05 [2025-01-22 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307170', 'tblTempUsageDetail_20' ) start [2025-01-22 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307170', 'tblTempUsageDetail_20' ) end [2025-01-22 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307170', 'tblTempVendorCDR_20' ) start [2025-01-22 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307170', 'tblTempVendorCDR_20' ) end [2025-01-22 19:37:19] Production.INFO: ProcessCDR(1,14307170,1,1,2) [2025-01-22 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307170', 'tblTempUsageDetail_20' ) start [2025-01-22 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307170', 'tblTempUsageDetail_20' ) end [2025-01-22 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:37:23] Production.INFO: ==1622== Releasing lock... [2025-01-22 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:37:23] Production.INFO: 50 MB #Memory Used# [2025-01-22 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:38:05 [end_date_ymd] => 2025-01-22 19:38:05 [RateCDR] => 1 ) [2025-01-22 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:38:05' and `end` < '2025-01-22 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:38:18] Production.INFO: count ==2958 [2025-01-22 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:38:05 - End Time 2025-01-22 19:38:05 [2025-01-22 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307175', 'tblTempUsageDetail_20' ) start [2025-01-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307175', 'tblTempUsageDetail_20' ) end [2025-01-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307175', 'tblTempVendorCDR_20' ) start [2025-01-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307175', 'tblTempVendorCDR_20' ) end [2025-01-22 19:38:19] Production.INFO: ProcessCDR(1,14307175,1,1,2) [2025-01-22 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307175', 'tblTempUsageDetail_20' ) start [2025-01-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307175', 'tblTempUsageDetail_20' ) end [2025-01-22 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:38:22] Production.INFO: ==1728== Releasing lock... [2025-01-22 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:38:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-22 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:39:04 [end_date_ymd] => 2025-01-22 19:39:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 16:39:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 19:39:18] Production.INFO: count ==2954 [2025-01-22 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:39:04 - End Time 2025-01-22 19:39:04 [2025-01-22 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307180', 'tblTempUsageDetail_20' ) start [2025-01-22 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307180', 'tblTempUsageDetail_20' ) end [2025-01-22 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307180', 'tblTempVendorCDR_20' ) start [2025-01-22 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307180', 'tblTempVendorCDR_20' ) end [2025-01-22 19:39:19] Production.INFO: ProcessCDR(1,14307180,1,1,2) [2025-01-22 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307180', 'tblTempUsageDetail_20' ) start [2025-01-22 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307180', 'tblTempUsageDetail_20' ) end [2025-01-22 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:39:22] Production.INFO: ==1834== Releasing lock... [2025-01-22 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:39:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-22 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:40:07 [end_date_ymd] => 2025-01-22 19:40:07 [RateCDR] => 1 ) [2025-01-22 19:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:40:07' and `end` < '2025-01-22 19:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:40:21] Production.INFO: count ==2940 [2025-01-22 19:40:21] Production.ERROR: pbx CDR StartTime 2025-01-22 16:40:07 - End Time 2025-01-22 19:40:07 [2025-01-22 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307186', 'tblTempUsageDetail_20' ) start [2025-01-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307186', 'tblTempUsageDetail_20' ) end [2025-01-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307186', 'tblTempVendorCDR_20' ) start [2025-01-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307186', 'tblTempVendorCDR_20' ) end [2025-01-22 19:40:21] Production.INFO: ProcessCDR(1,14307186,1,1,2) [2025-01-22 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307186', 'tblTempUsageDetail_20' ) start [2025-01-22 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307186', 'tblTempUsageDetail_20' ) end [2025-01-22 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:40:25] Production.INFO: ==1942== Releasing lock... [2025-01-22 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:40:25] Production.INFO: 49.75 MB #Memory Used# [2025-01-22 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:41:05 [end_date_ymd] => 2025-01-22 19:41:05 [RateCDR] => 1 ) [2025-01-22 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:41:05' and `end` < '2025-01-22 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:41:18] Production.INFO: count ==2798 [2025-01-22 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:41:05 - End Time 2025-01-22 19:41:05 [2025-01-22 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307191', 'tblTempUsageDetail_20' ) start [2025-01-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307191', 'tblTempUsageDetail_20' ) end [2025-01-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307191', 'tblTempVendorCDR_20' ) start [2025-01-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307191', 'tblTempVendorCDR_20' ) end [2025-01-22 19:41:18] Production.INFO: ProcessCDR(1,14307191,1,1,2) [2025-01-22 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307191', 'tblTempUsageDetail_20' ) start [2025-01-22 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307191', 'tblTempUsageDetail_20' ) end [2025-01-22 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:41:22] Production.INFO: ==2048== Releasing lock... [2025-01-22 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:41:22] Production.INFO: 49 MB #Memory Used# [2025-01-22 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:42:05 [end_date_ymd] => 2025-01-22 19:42:05 [RateCDR] => 1 ) [2025-01-22 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:42:05' and `end` < '2025-01-22 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:42:19] Production.INFO: count ==2796 [2025-01-22 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:42:05 - End Time 2025-01-22 19:42:05 [2025-01-22 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307196', 'tblTempUsageDetail_20' ) start [2025-01-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307196', 'tblTempUsageDetail_20' ) end [2025-01-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307196', 'tblTempVendorCDR_20' ) start [2025-01-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307196', 'tblTempVendorCDR_20' ) end [2025-01-22 19:42:20] Production.INFO: ProcessCDR(1,14307196,1,1,2) [2025-01-22 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307196', 'tblTempUsageDetail_20' ) start [2025-01-22 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307196', 'tblTempUsageDetail_20' ) end [2025-01-22 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:42:23] Production.INFO: ==2152== Releasing lock... [2025-01-22 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:42:23] Production.INFO: 49 MB #Memory Used# [2025-01-22 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:43:05 [end_date_ymd] => 2025-01-22 19:43:05 [RateCDR] => 1 ) [2025-01-22 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:43:05' and `end` < '2025-01-22 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:43:18] Production.INFO: count ==2788 [2025-01-22 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:43:05 - End Time 2025-01-22 19:43:05 [2025-01-22 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307201', 'tblTempUsageDetail_20' ) start [2025-01-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307201', 'tblTempUsageDetail_20' ) end [2025-01-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307201', 'tblTempVendorCDR_20' ) start [2025-01-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307201', 'tblTempVendorCDR_20' ) end [2025-01-22 19:43:18] Production.INFO: ProcessCDR(1,14307201,1,1,2) [2025-01-22 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307201', 'tblTempUsageDetail_20' ) start [2025-01-22 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307201', 'tblTempUsageDetail_20' ) end [2025-01-22 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:43:23] Production.INFO: ==2258== Releasing lock... [2025-01-22 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:43:23] Production.INFO: 49 MB #Memory Used# [2025-01-22 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:44:05 [end_date_ymd] => 2025-01-22 19:44:05 [RateCDR] => 1 ) [2025-01-22 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:44:05' and `end` < '2025-01-22 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:44:18] Production.INFO: count ==2779 [2025-01-22 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:44:05 - End Time 2025-01-22 19:44:05 [2025-01-22 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307206', 'tblTempUsageDetail_20' ) start [2025-01-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307206', 'tblTempUsageDetail_20' ) end [2025-01-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307206', 'tblTempVendorCDR_20' ) start [2025-01-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307206', 'tblTempVendorCDR_20' ) end [2025-01-22 19:44:19] Production.INFO: ProcessCDR(1,14307206,1,1,2) [2025-01-22 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307206', 'tblTempUsageDetail_20' ) start [2025-01-22 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307206', 'tblTempUsageDetail_20' ) end [2025-01-22 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:44:23] Production.INFO: ==2365== Releasing lock... [2025-01-22 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:44:23] Production.INFO: 49 MB #Memory Used# [2025-01-22 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:45:05 [end_date_ymd] => 2025-01-22 19:45:05 [RateCDR] => 1 ) [2025-01-22 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:45:05' and `end` < '2025-01-22 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:45:19] Production.INFO: count ==2778 [2025-01-22 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:45:05 - End Time 2025-01-22 19:45:05 [2025-01-22 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307211', 'tblTempUsageDetail_20' ) start [2025-01-22 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307211', 'tblTempUsageDetail_20' ) end [2025-01-22 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307211', 'tblTempVendorCDR_20' ) start [2025-01-22 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307211', 'tblTempVendorCDR_20' ) end [2025-01-22 19:45:19] Production.INFO: ProcessCDR(1,14307211,1,1,2) [2025-01-22 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307211', 'tblTempUsageDetail_20' ) start [2025-01-22 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307211', 'tblTempUsageDetail_20' ) end [2025-01-22 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:45:24] Production.INFO: ==2472== Releasing lock... [2025-01-22 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:45:24] Production.INFO: 49 MB #Memory Used# [2025-01-22 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:46:06 [end_date_ymd] => 2025-01-22 19:46:06 [RateCDR] => 1 ) [2025-01-22 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:46:06' and `end` < '2025-01-22 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:46:19] Production.INFO: count ==2760 [2025-01-22 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:46:06 - End Time 2025-01-22 19:46:06 [2025-01-22 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307216', 'tblTempUsageDetail_20' ) start [2025-01-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307216', 'tblTempUsageDetail_20' ) end [2025-01-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307216', 'tblTempVendorCDR_20' ) start [2025-01-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307216', 'tblTempVendorCDR_20' ) end [2025-01-22 19:46:19] Production.INFO: ProcessCDR(1,14307216,1,1,2) [2025-01-22 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307216', 'tblTempUsageDetail_20' ) start [2025-01-22 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307216', 'tblTempUsageDetail_20' ) end [2025-01-22 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:46:22] Production.INFO: ==2578== Releasing lock... [2025-01-22 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:46:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-22 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:47:05 [end_date_ymd] => 2025-01-22 19:47:05 [RateCDR] => 1 ) [2025-01-22 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:47:05' and `end` < '2025-01-22 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:47:19] Production.INFO: count ==2744 [2025-01-22 19:47:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:47:05 - End Time 2025-01-22 19:47:05 [2025-01-22 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307221', 'tblTempUsageDetail_20' ) start [2025-01-22 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307221', 'tblTempUsageDetail_20' ) end [2025-01-22 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307221', 'tblTempVendorCDR_20' ) start [2025-01-22 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307221', 'tblTempVendorCDR_20' ) end [2025-01-22 19:47:20] Production.INFO: ProcessCDR(1,14307221,1,1,2) [2025-01-22 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307221', 'tblTempUsageDetail_20' ) start [2025-01-22 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307221', 'tblTempUsageDetail_20' ) end [2025-01-22 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:47:23] Production.INFO: ==2720== Releasing lock... [2025-01-22 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:47:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-22 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:48:05 [end_date_ymd] => 2025-01-22 19:48:05 [RateCDR] => 1 ) [2025-01-22 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:48:05' and `end` < '2025-01-22 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:48:20] Production.INFO: count ==2731 [2025-01-22 19:48:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:48:05 - End Time 2025-01-22 19:48:05 [2025-01-22 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307226', 'tblTempUsageDetail_20' ) start [2025-01-22 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307226', 'tblTempUsageDetail_20' ) end [2025-01-22 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307226', 'tblTempVendorCDR_20' ) start [2025-01-22 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307226', 'tblTempVendorCDR_20' ) end [2025-01-22 19:48:21] Production.INFO: ProcessCDR(1,14307226,1,1,2) [2025-01-22 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307226', 'tblTempUsageDetail_20' ) start [2025-01-22 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307226', 'tblTempUsageDetail_20' ) end [2025-01-22 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:48:24] Production.INFO: ==2829== Releasing lock... [2025-01-22 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:48:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-22 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:49:05 [end_date_ymd] => 2025-01-22 19:49:05 [RateCDR] => 1 ) [2025-01-22 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:49:05' and `end` < '2025-01-22 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:49:19] Production.INFO: count ==2719 [2025-01-22 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:49:05 - End Time 2025-01-22 19:49:05 [2025-01-22 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307231', 'tblTempUsageDetail_20' ) start [2025-01-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307231', 'tblTempUsageDetail_20' ) end [2025-01-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307231', 'tblTempVendorCDR_20' ) start [2025-01-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307231', 'tblTempVendorCDR_20' ) end [2025-01-22 19:49:20] Production.INFO: ProcessCDR(1,14307231,1,1,2) [2025-01-22 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307231', 'tblTempUsageDetail_20' ) start [2025-01-22 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307231', 'tblTempUsageDetail_20' ) end [2025-01-22 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:49:23] Production.INFO: ==2943== Releasing lock... [2025-01-22 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:49:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-22 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:50:06 [end_date_ymd] => 2025-01-22 19:50:06 [RateCDR] => 1 ) [2025-01-22 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:50:06' and `end` < '2025-01-22 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:50:19] Production.INFO: count ==2718 [2025-01-22 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:50:06 - End Time 2025-01-22 19:50:06 [2025-01-22 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307236', 'tblTempUsageDetail_20' ) start [2025-01-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307236', 'tblTempUsageDetail_20' ) end [2025-01-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307236', 'tblTempVendorCDR_20' ) start [2025-01-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307236', 'tblTempVendorCDR_20' ) end [2025-01-22 19:50:20] Production.INFO: ProcessCDR(1,14307236,1,1,2) [2025-01-22 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307236', 'tblTempUsageDetail_20' ) start [2025-01-22 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307236', 'tblTempUsageDetail_20' ) end [2025-01-22 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:50:24] Production.INFO: ==3058== Releasing lock... [2025-01-22 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:50:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-22 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:51:05 [end_date_ymd] => 2025-01-22 19:51:05 [RateCDR] => 1 ) [2025-01-22 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:51:05' and `end` < '2025-01-22 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:51:17] Production.INFO: count ==2672 [2025-01-22 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:51:05 - End Time 2025-01-22 19:51:05 [2025-01-22 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307242', 'tblTempUsageDetail_20' ) start [2025-01-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307242', 'tblTempUsageDetail_20' ) end [2025-01-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307242', 'tblTempVendorCDR_20' ) start [2025-01-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307242', 'tblTempVendorCDR_20' ) end [2025-01-22 19:51:18] Production.INFO: ProcessCDR(1,14307242,1,1,2) [2025-01-22 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307242', 'tblTempUsageDetail_20' ) start [2025-01-22 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307242', 'tblTempUsageDetail_20' ) end [2025-01-22 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:51:21] Production.INFO: ==3171== Releasing lock... [2025-01-22 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:51:21] Production.INFO: 48 MB #Memory Used# [2025-01-22 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:52:05 [end_date_ymd] => 2025-01-22 19:52:05 [RateCDR] => 1 ) [2025-01-22 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:52:05' and `end` < '2025-01-22 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:52:18] Production.INFO: count ==2654 [2025-01-22 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:52:05 - End Time 2025-01-22 19:52:05 [2025-01-22 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307247', 'tblTempUsageDetail_20' ) start [2025-01-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307247', 'tblTempUsageDetail_20' ) end [2025-01-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307247', 'tblTempVendorCDR_20' ) start [2025-01-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307247', 'tblTempVendorCDR_20' ) end [2025-01-22 19:52:19] Production.INFO: ProcessCDR(1,14307247,1,1,2) [2025-01-22 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307247', 'tblTempUsageDetail_20' ) start [2025-01-22 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307247', 'tblTempUsageDetail_20' ) end [2025-01-22 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:52:22] Production.INFO: ==3282== Releasing lock... [2025-01-22 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:52:22] Production.INFO: 48 MB #Memory Used# [2025-01-22 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:53:04 [end_date_ymd] => 2025-01-22 19:53:04 [RateCDR] => 1 ) [2025-01-22 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:53:04' and `end` < '2025-01-22 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:53:17] Production.INFO: count ==2653 [2025-01-22 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:53:04 - End Time 2025-01-22 19:53:04 [2025-01-22 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307252', 'tblTempUsageDetail_20' ) start [2025-01-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307252', 'tblTempUsageDetail_20' ) end [2025-01-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307252', 'tblTempVendorCDR_20' ) start [2025-01-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307252', 'tblTempVendorCDR_20' ) end [2025-01-22 19:53:18] Production.INFO: ProcessCDR(1,14307252,1,1,2) [2025-01-22 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307252', 'tblTempUsageDetail_20' ) start [2025-01-22 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307252', 'tblTempUsageDetail_20' ) end [2025-01-22 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:53:23] Production.INFO: ==3406== Releasing lock... [2025-01-22 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:53:23] Production.INFO: 48 MB #Memory Used# [2025-01-22 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:54:05 [end_date_ymd] => 2025-01-22 19:54:05 [RateCDR] => 1 ) [2025-01-22 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:54:05' and `end` < '2025-01-22 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:54:18] Production.INFO: count ==2649 [2025-01-22 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:54:05 - End Time 2025-01-22 19:54:05 [2025-01-22 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307257', 'tblTempUsageDetail_20' ) start [2025-01-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307257', 'tblTempUsageDetail_20' ) end [2025-01-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307257', 'tblTempVendorCDR_20' ) start [2025-01-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307257', 'tblTempVendorCDR_20' ) end [2025-01-22 19:54:19] Production.INFO: ProcessCDR(1,14307257,1,1,2) [2025-01-22 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307257', 'tblTempUsageDetail_20' ) start [2025-01-22 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307257', 'tblTempUsageDetail_20' ) end [2025-01-22 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:54:23] Production.INFO: ==3518== Releasing lock... [2025-01-22 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:54:23] Production.INFO: 48 MB #Memory Used# [2025-01-22 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:55:04 [end_date_ymd] => 2025-01-22 19:55:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 16:55:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 19:55:18] Production.INFO: count ==2640 [2025-01-22 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:55:04 - End Time 2025-01-22 19:55:04 [2025-01-22 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307262', 'tblTempUsageDetail_20' ) start [2025-01-22 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307262', 'tblTempUsageDetail_20' ) end [2025-01-22 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307262', 'tblTempVendorCDR_20' ) start [2025-01-22 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307262', 'tblTempVendorCDR_20' ) end [2025-01-22 19:55:19] Production.INFO: ProcessCDR(1,14307262,1,1,2) [2025-01-22 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307262', 'tblTempUsageDetail_20' ) start [2025-01-22 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307262', 'tblTempUsageDetail_20' ) end [2025-01-22 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:55:22] Production.INFO: ==3630== Releasing lock... [2025-01-22 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:55:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-22 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:56:05 [end_date_ymd] => 2025-01-22 19:56:05 [RateCDR] => 1 ) [2025-01-22 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:56:05' and `end` < '2025-01-22 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:56:18] Production.INFO: count ==2630 [2025-01-22 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:56:05 - End Time 2025-01-22 19:56:05 [2025-01-22 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307267', 'tblTempUsageDetail_20' ) start [2025-01-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307267', 'tblTempUsageDetail_20' ) end [2025-01-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307267', 'tblTempVendorCDR_20' ) start [2025-01-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307267', 'tblTempVendorCDR_20' ) end [2025-01-22 19:56:19] Production.INFO: ProcessCDR(1,14307267,1,1,2) [2025-01-22 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307267', 'tblTempUsageDetail_20' ) start [2025-01-22 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307267', 'tblTempUsageDetail_20' ) end [2025-01-22 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:56:22] Production.INFO: ==3738== Releasing lock... [2025-01-22 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:56:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-22 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:57:05 [end_date_ymd] => 2025-01-22 19:57:05 [RateCDR] => 1 ) [2025-01-22 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:57:05' and `end` < '2025-01-22 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:57:19] Production.INFO: count ==2623 [2025-01-22 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-22 16:57:05 - End Time 2025-01-22 19:57:05 [2025-01-22 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307272', 'tblTempUsageDetail_20' ) start [2025-01-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307272', 'tblTempUsageDetail_20' ) end [2025-01-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307272', 'tblTempVendorCDR_20' ) start [2025-01-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307272', 'tblTempVendorCDR_20' ) end [2025-01-22 19:57:19] Production.INFO: ProcessCDR(1,14307272,1,1,2) [2025-01-22 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307272', 'tblTempUsageDetail_20' ) start [2025-01-22 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307272', 'tblTempUsageDetail_20' ) end [2025-01-22 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:57:22] Production.INFO: ==3839== Releasing lock... [2025-01-22 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:57:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-22 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:58:05 [end_date_ymd] => 2025-01-22 19:58:05 [RateCDR] => 1 ) [2025-01-22 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:58:05' and `end` < '2025-01-22 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:58:18] Production.INFO: count ==2617 [2025-01-22 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 16:58:05 - End Time 2025-01-22 19:58:05 [2025-01-22 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307277', 'tblTempUsageDetail_20' ) start [2025-01-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307277', 'tblTempUsageDetail_20' ) end [2025-01-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307277', 'tblTempVendorCDR_20' ) start [2025-01-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307277', 'tblTempVendorCDR_20' ) end [2025-01-22 19:58:18] Production.INFO: ProcessCDR(1,14307277,1,1,2) [2025-01-22 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307277', 'tblTempUsageDetail_20' ) start [2025-01-22 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307277', 'tblTempUsageDetail_20' ) end [2025-01-22 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:58:21] Production.INFO: ==3942== Releasing lock... [2025-01-22 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:58:21] Production.INFO: 47.25 MB #Memory Used# [2025-01-22 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 16:59:05 [end_date_ymd] => 2025-01-22 19:59:05 [RateCDR] => 1 ) [2025-01-22 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 16:59:05' and `end` < '2025-01-22 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 19:59:19] Production.INFO: count ==2603 [2025-01-22 19:59:20] Production.ERROR: pbx CDR StartTime 2025-01-22 16:59:05 - End Time 2025-01-22 19:59:05 [2025-01-22 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307282', 'tblTempUsageDetail_20' ) start [2025-01-22 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307282', 'tblTempUsageDetail_20' ) end [2025-01-22 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307282', 'tblTempVendorCDR_20' ) start [2025-01-22 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307282', 'tblTempVendorCDR_20' ) end [2025-01-22 19:59:20] Production.INFO: ProcessCDR(1,14307282,1,1,2) [2025-01-22 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307282', 'tblTempUsageDetail_20' ) start [2025-01-22 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307282', 'tblTempUsageDetail_20' ) end [2025-01-22 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 19:59:23] Production.INFO: ==4046== Releasing lock... [2025-01-22 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 19:59:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-22 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:00:06 [end_date_ymd] => 2025-01-22 20:00:06 [RateCDR] => 1 ) [2025-01-22 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:00:06' and `end` < '2025-01-22 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:00:18] Production.INFO: count ==2597 [2025-01-22 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:00:06 - End Time 2025-01-22 20:00:06 [2025-01-22 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307288', 'tblTempUsageDetail_20' ) start [2025-01-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307288', 'tblTempUsageDetail_20' ) end [2025-01-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307288', 'tblTempVendorCDR_20' ) start [2025-01-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307288', 'tblTempVendorCDR_20' ) end [2025-01-22 20:00:19] Production.INFO: ProcessCDR(1,14307288,1,1,2) [2025-01-22 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307288', 'tblTempUsageDetail_20' ) start [2025-01-22 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307288', 'tblTempUsageDetail_20' ) end [2025-01-22 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:00:22] Production.INFO: ==4149== Releasing lock... [2025-01-22 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:00:22] Production.INFO: 47 MB #Memory Used# [2025-01-22 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:01:06 [end_date_ymd] => 2025-01-22 20:01:06 [RateCDR] => 1 ) [2025-01-22 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:01:06' and `end` < '2025-01-22 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:01:19] Production.INFO: count ==2536 [2025-01-22 20:01:20] Production.ERROR: pbx CDR StartTime 2025-01-22 17:01:06 - End Time 2025-01-22 20:01:06 [2025-01-22 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307293', 'tblTempUsageDetail_20' ) start [2025-01-22 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307293', 'tblTempUsageDetail_20' ) end [2025-01-22 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307293', 'tblTempVendorCDR_20' ) start [2025-01-22 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307293', 'tblTempVendorCDR_20' ) end [2025-01-22 20:01:20] Production.INFO: ProcessCDR(1,14307293,1,1,2) [2025-01-22 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307293', 'tblTempUsageDetail_20' ) start [2025-01-22 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307293', 'tblTempUsageDetail_20' ) end [2025-01-22 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:01:23] Production.INFO: ==4305== Releasing lock... [2025-01-22 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:01:23] Production.INFO: 47 MB #Memory Used# [2025-01-22 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:02:05 [end_date_ymd] => 2025-01-22 20:02:05 [RateCDR] => 1 ) [2025-01-22 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:02:05' and `end` < '2025-01-22 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:02:22] Production.INFO: count ==2531 [2025-01-22 20:02:23] Production.ERROR: pbx CDR StartTime 2025-01-22 17:02:05 - End Time 2025-01-22 20:02:05 [2025-01-22 20:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307298', 'tblTempUsageDetail_20' ) start [2025-01-22 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307298', 'tblTempUsageDetail_20' ) end [2025-01-22 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307298', 'tblTempVendorCDR_20' ) start [2025-01-22 20:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307298', 'tblTempVendorCDR_20' ) end [2025-01-22 20:02:23] Production.INFO: ProcessCDR(1,14307298,1,1,2) [2025-01-22 20:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307298', 'tblTempUsageDetail_20' ) start [2025-01-22 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307298', 'tblTempUsageDetail_20' ) end [2025-01-22 20:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:02:27] Production.INFO: ==4450== Releasing lock... [2025-01-22 20:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:02:27] Production.INFO: 47 MB #Memory Used# [2025-01-22 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:03:05 [end_date_ymd] => 2025-01-22 20:03:05 [RateCDR] => 1 ) [2025-01-22 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:03:05' and `end` < '2025-01-22 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:03:18] Production.INFO: count ==2531 [2025-01-22 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:03:05 - End Time 2025-01-22 20:03:05 [2025-01-22 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307303', 'tblTempUsageDetail_20' ) start [2025-01-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307303', 'tblTempUsageDetail_20' ) end [2025-01-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307303', 'tblTempVendorCDR_20' ) start [2025-01-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307303', 'tblTempVendorCDR_20' ) end [2025-01-22 20:03:18] Production.INFO: ProcessCDR(1,14307303,1,1,2) [2025-01-22 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307303', 'tblTempUsageDetail_20' ) start [2025-01-22 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307303', 'tblTempUsageDetail_20' ) end [2025-01-22 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:03:23] Production.INFO: ==4555== Releasing lock... [2025-01-22 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:03:23] Production.INFO: 47 MB #Memory Used# [2025-01-22 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:04:05 [end_date_ymd] => 2025-01-22 20:04:05 [RateCDR] => 1 ) [2025-01-22 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:04:05' and `end` < '2025-01-22 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:04:19] Production.INFO: count ==2512 [2025-01-22 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:04:05 - End Time 2025-01-22 20:04:05 [2025-01-22 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307308', 'tblTempUsageDetail_20' ) start [2025-01-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307308', 'tblTempUsageDetail_20' ) end [2025-01-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307308', 'tblTempVendorCDR_20' ) start [2025-01-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307308', 'tblTempVendorCDR_20' ) end [2025-01-22 20:04:19] Production.INFO: ProcessCDR(1,14307308,1,1,2) [2025-01-22 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307308', 'tblTempUsageDetail_20' ) start [2025-01-22 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307308', 'tblTempUsageDetail_20' ) end [2025-01-22 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:04:22] Production.INFO: ==4665== Releasing lock... [2025-01-22 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:04:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-22 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:05:06 [end_date_ymd] => 2025-01-22 20:05:06 [RateCDR] => 1 ) [2025-01-22 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:05:06' and `end` < '2025-01-22 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:05:19] Production.INFO: count ==2506 [2025-01-22 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:05:06 - End Time 2025-01-22 20:05:06 [2025-01-22 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307313', 'tblTempUsageDetail_20' ) start [2025-01-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307313', 'tblTempUsageDetail_20' ) end [2025-01-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307313', 'tblTempVendorCDR_20' ) start [2025-01-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307313', 'tblTempVendorCDR_20' ) end [2025-01-22 20:05:19] Production.INFO: ProcessCDR(1,14307313,1,1,2) [2025-01-22 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307313', 'tblTempUsageDetail_20' ) start [2025-01-22 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307313', 'tblTempUsageDetail_20' ) end [2025-01-22 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:05:22] Production.INFO: ==4770== Releasing lock... [2025-01-22 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:05:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-22 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:06:06 [end_date_ymd] => 2025-01-22 20:06:06 [RateCDR] => 1 ) [2025-01-22 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:06:06' and `end` < '2025-01-22 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:06:20] Production.INFO: count ==2498 [2025-01-22 20:06:20] Production.ERROR: pbx CDR StartTime 2025-01-22 17:06:06 - End Time 2025-01-22 20:06:06 [2025-01-22 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307318', 'tblTempUsageDetail_20' ) start [2025-01-22 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307318', 'tblTempUsageDetail_20' ) end [2025-01-22 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307318', 'tblTempVendorCDR_20' ) start [2025-01-22 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307318', 'tblTempVendorCDR_20' ) end [2025-01-22 20:06:20] Production.INFO: ProcessCDR(1,14307318,1,1,2) [2025-01-22 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307318', 'tblTempUsageDetail_20' ) start [2025-01-22 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307318', 'tblTempUsageDetail_20' ) end [2025-01-22 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:06:23] Production.INFO: ==4842== Releasing lock... [2025-01-22 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:06:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-22 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:07:05 [end_date_ymd] => 2025-01-22 20:07:05 [RateCDR] => 1 ) [2025-01-22 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:07:05' and `end` < '2025-01-22 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:07:18] Production.INFO: count ==2491 [2025-01-22 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:07:05 - End Time 2025-01-22 20:07:05 [2025-01-22 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307323', 'tblTempUsageDetail_20' ) start [2025-01-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307323', 'tblTempUsageDetail_20' ) end [2025-01-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307323', 'tblTempVendorCDR_20' ) start [2025-01-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307323', 'tblTempVendorCDR_20' ) end [2025-01-22 20:07:19] Production.INFO: ProcessCDR(1,14307323,1,1,2) [2025-01-22 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307323', 'tblTempUsageDetail_20' ) start [2025-01-22 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307323', 'tblTempUsageDetail_20' ) end [2025-01-22 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:07:22] Production.INFO: ==4912== Releasing lock... [2025-01-22 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:07:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-22 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:08:06 [end_date_ymd] => 2025-01-22 20:08:06 [RateCDR] => 1 ) [2025-01-22 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:08:06' and `end` < '2025-01-22 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:08:19] Production.INFO: count ==2483 [2025-01-22 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:08:06 - End Time 2025-01-22 20:08:06 [2025-01-22 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307328', 'tblTempUsageDetail_20' ) start [2025-01-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307328', 'tblTempUsageDetail_20' ) end [2025-01-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307328', 'tblTempVendorCDR_20' ) start [2025-01-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307328', 'tblTempVendorCDR_20' ) end [2025-01-22 20:08:19] Production.INFO: ProcessCDR(1,14307328,1,1,2) [2025-01-22 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307328', 'tblTempUsageDetail_20' ) start [2025-01-22 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307328', 'tblTempUsageDetail_20' ) end [2025-01-22 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:08:24] Production.INFO: ==4992== Releasing lock... [2025-01-22 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:08:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-22 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:09:05 [end_date_ymd] => 2025-01-22 20:09:05 [RateCDR] => 1 ) [2025-01-22 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:09:05' and `end` < '2025-01-22 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:09:18] Production.INFO: count ==2478 [2025-01-22 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:09:05 - End Time 2025-01-22 20:09:05 [2025-01-22 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307333', 'tblTempUsageDetail_20' ) start [2025-01-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307333', 'tblTempUsageDetail_20' ) end [2025-01-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307333', 'tblTempVendorCDR_20' ) start [2025-01-22 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307333', 'tblTempVendorCDR_20' ) end [2025-01-22 20:09:19] Production.INFO: ProcessCDR(1,14307333,1,1,2) [2025-01-22 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307333', 'tblTempUsageDetail_20' ) start [2025-01-22 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307333', 'tblTempUsageDetail_20' ) end [2025-01-22 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:09:23] Production.INFO: ==5061== Releasing lock... [2025-01-22 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:09:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-22 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:10:06 [end_date_ymd] => 2025-01-22 20:10:06 [RateCDR] => 1 ) [2025-01-22 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:10:06' and `end` < '2025-01-22 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:10:19] Production.INFO: count ==2472 [2025-01-22 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:10:06 - End Time 2025-01-22 20:10:06 [2025-01-22 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307339', 'tblTempUsageDetail_20' ) start [2025-01-22 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307339', 'tblTempUsageDetail_20' ) end [2025-01-22 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307339', 'tblTempVendorCDR_20' ) start [2025-01-22 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307339', 'tblTempVendorCDR_20' ) end [2025-01-22 20:10:19] Production.INFO: ProcessCDR(1,14307339,1,1,2) [2025-01-22 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307339', 'tblTempUsageDetail_20' ) start [2025-01-22 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307339', 'tblTempUsageDetail_20' ) end [2025-01-22 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:10:22] Production.INFO: ==5137== Releasing lock... [2025-01-22 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:10:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-22 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:11:04 [end_date_ymd] => 2025-01-22 20:11:04 [RateCDR] => 1 ) [2025-01-22 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:11:04' and `end` < '2025-01-22 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:11:17] Production.INFO: count ==2446 [2025-01-22 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:11:04 - End Time 2025-01-22 20:11:04 [2025-01-22 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307344', 'tblTempUsageDetail_20' ) start [2025-01-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307344', 'tblTempUsageDetail_20' ) end [2025-01-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307344', 'tblTempVendorCDR_20' ) start [2025-01-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307344', 'tblTempVendorCDR_20' ) end [2025-01-22 20:11:18] Production.INFO: ProcessCDR(1,14307344,1,1,2) [2025-01-22 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307344', 'tblTempUsageDetail_20' ) start [2025-01-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307344', 'tblTempUsageDetail_20' ) end [2025-01-22 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:11:21] Production.INFO: ==5208== Releasing lock... [2025-01-22 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:11:21] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:12:06 [end_date_ymd] => 2025-01-22 20:12:06 [RateCDR] => 1 ) [2025-01-22 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:12:06' and `end` < '2025-01-22 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:12:21] Production.INFO: count ==2458 [2025-01-22 20:12:22] Production.ERROR: pbx CDR StartTime 2025-01-22 17:12:06 - End Time 2025-01-22 20:12:06 [2025-01-22 20:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307349', 'tblTempUsageDetail_20' ) start [2025-01-22 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307349', 'tblTempUsageDetail_20' ) end [2025-01-22 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307349', 'tblTempVendorCDR_20' ) start [2025-01-22 20:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307349', 'tblTempVendorCDR_20' ) end [2025-01-22 20:12:22] Production.INFO: ProcessCDR(1,14307349,1,1,2) [2025-01-22 20:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307349', 'tblTempUsageDetail_20' ) start [2025-01-22 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307349', 'tblTempUsageDetail_20' ) end [2025-01-22 20:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:12:26] Production.INFO: ==5281== Releasing lock... [2025-01-22 20:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:12:26] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:13:05 [end_date_ymd] => 2025-01-22 20:13:05 [RateCDR] => 1 ) [2025-01-22 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:13:05' and `end` < '2025-01-22 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:13:18] Production.INFO: count ==2452 [2025-01-22 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:13:05 - End Time 2025-01-22 20:13:05 [2025-01-22 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307354', 'tblTempUsageDetail_20' ) start [2025-01-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307354', 'tblTempUsageDetail_20' ) end [2025-01-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307354', 'tblTempVendorCDR_20' ) start [2025-01-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307354', 'tblTempVendorCDR_20' ) end [2025-01-22 20:13:19] Production.INFO: ProcessCDR(1,14307354,1,1,2) [2025-01-22 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307354', 'tblTempUsageDetail_20' ) start [2025-01-22 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307354', 'tblTempUsageDetail_20' ) end [2025-01-22 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:13:24] Production.INFO: ==5352== Releasing lock... [2025-01-22 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:13:24] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:14:05 [end_date_ymd] => 2025-01-22 20:14:05 [RateCDR] => 1 ) [2025-01-22 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:14:05' and `end` < '2025-01-22 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:14:18] Production.INFO: count ==2442 [2025-01-22 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:14:05 - End Time 2025-01-22 20:14:05 [2025-01-22 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307359', 'tblTempUsageDetail_20' ) start [2025-01-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307359', 'tblTempUsageDetail_20' ) end [2025-01-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307359', 'tblTempVendorCDR_20' ) start [2025-01-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307359', 'tblTempVendorCDR_20' ) end [2025-01-22 20:14:18] Production.INFO: ProcessCDR(1,14307359,1,1,2) [2025-01-22 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307359', 'tblTempUsageDetail_20' ) start [2025-01-22 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307359', 'tblTempUsageDetail_20' ) end [2025-01-22 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:14:23] Production.INFO: ==5422== Releasing lock... [2025-01-22 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:14:23] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:15:05 [end_date_ymd] => 2025-01-22 20:15:05 [RateCDR] => 1 ) [2025-01-22 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:15:05' and `end` < '2025-01-22 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:15:17] Production.INFO: count ==2435 [2025-01-22 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:15:05 - End Time 2025-01-22 20:15:05 [2025-01-22 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307364', 'tblTempUsageDetail_20' ) start [2025-01-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307364', 'tblTempUsageDetail_20' ) end [2025-01-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307364', 'tblTempVendorCDR_20' ) start [2025-01-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307364', 'tblTempVendorCDR_20' ) end [2025-01-22 20:15:18] Production.INFO: ProcessCDR(1,14307364,1,1,2) [2025-01-22 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307364', 'tblTempUsageDetail_20' ) start [2025-01-22 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307364', 'tblTempUsageDetail_20' ) end [2025-01-22 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:15:21] Production.INFO: ==5494== Releasing lock... [2025-01-22 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:15:21] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:16:06 [end_date_ymd] => 2025-01-22 20:16:06 [RateCDR] => 1 ) [2025-01-22 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:16:06' and `end` < '2025-01-22 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:16:18] Production.INFO: count ==2435 [2025-01-22 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:16:06 - End Time 2025-01-22 20:16:06 [2025-01-22 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307369', 'tblTempUsageDetail_20' ) start [2025-01-22 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307369', 'tblTempUsageDetail_20' ) end [2025-01-22 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307369', 'tblTempVendorCDR_20' ) start [2025-01-22 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307369', 'tblTempVendorCDR_20' ) end [2025-01-22 20:16:19] Production.INFO: ProcessCDR(1,14307369,1,1,2) [2025-01-22 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307369', 'tblTempUsageDetail_20' ) start [2025-01-22 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307369', 'tblTempUsageDetail_20' ) end [2025-01-22 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:16:23] Production.INFO: ==5564== Releasing lock... [2025-01-22 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:16:23] Production.INFO: 46 MB #Memory Used# [2025-01-22 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:17:05 [end_date_ymd] => 2025-01-22 20:17:05 [RateCDR] => 1 ) [2025-01-22 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:17:05' and `end` < '2025-01-22 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:17:17] Production.INFO: count ==2416 [2025-01-22 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:17:05 - End Time 2025-01-22 20:17:05 [2025-01-22 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307374', 'tblTempUsageDetail_20' ) start [2025-01-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307374', 'tblTempUsageDetail_20' ) end [2025-01-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307374', 'tblTempVendorCDR_20' ) start [2025-01-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307374', 'tblTempVendorCDR_20' ) end [2025-01-22 20:17:18] Production.INFO: ProcessCDR(1,14307374,1,1,2) [2025-01-22 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307374', 'tblTempUsageDetail_20' ) start [2025-01-22 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307374', 'tblTempUsageDetail_20' ) end [2025-01-22 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:17:21] Production.INFO: ==5634== Releasing lock... [2025-01-22 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:17:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:18:05 [end_date_ymd] => 2025-01-22 20:18:05 [RateCDR] => 1 ) [2025-01-22 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:18:05' and `end` < '2025-01-22 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:18:19] Production.INFO: count ==2413 [2025-01-22 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-22 17:18:05 - End Time 2025-01-22 20:18:05 [2025-01-22 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307379', 'tblTempUsageDetail_20' ) start [2025-01-22 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307379', 'tblTempUsageDetail_20' ) end [2025-01-22 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307379', 'tblTempVendorCDR_20' ) start [2025-01-22 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307379', 'tblTempVendorCDR_20' ) end [2025-01-22 20:18:20] Production.INFO: ProcessCDR(1,14307379,1,1,2) [2025-01-22 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307379', 'tblTempUsageDetail_20' ) start [2025-01-22 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307379', 'tblTempUsageDetail_20' ) end [2025-01-22 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:18:24] Production.INFO: ==5757== Releasing lock... [2025-01-22 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:18:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:19:05 [end_date_ymd] => 2025-01-22 20:19:05 [RateCDR] => 1 ) [2025-01-22 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:19:05' and `end` < '2025-01-22 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:19:17] Production.INFO: count ==2410 [2025-01-22 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:19:05 - End Time 2025-01-22 20:19:05 [2025-01-22 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307384', 'tblTempUsageDetail_20' ) start [2025-01-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307384', 'tblTempUsageDetail_20' ) end [2025-01-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307384', 'tblTempVendorCDR_20' ) start [2025-01-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307384', 'tblTempVendorCDR_20' ) end [2025-01-22 20:19:18] Production.INFO: ProcessCDR(1,14307384,1,1,2) [2025-01-22 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307384', 'tblTempUsageDetail_20' ) start [2025-01-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307384', 'tblTempUsageDetail_20' ) end [2025-01-22 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:19:21] Production.INFO: ==5827== Releasing lock... [2025-01-22 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:19:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:20:06 [end_date_ymd] => 2025-01-22 20:20:06 [RateCDR] => 1 ) [2025-01-22 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:20:06' and `end` < '2025-01-22 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:20:18] Production.INFO: count ==2413 [2025-01-22 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:20:06 - End Time 2025-01-22 20:20:06 [2025-01-22 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307390', 'tblTempUsageDetail_20' ) start [2025-01-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307390', 'tblTempUsageDetail_20' ) end [2025-01-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307390', 'tblTempVendorCDR_20' ) start [2025-01-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307390', 'tblTempVendorCDR_20' ) end [2025-01-22 20:20:19] Production.INFO: ProcessCDR(1,14307390,1,1,2) [2025-01-22 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307390', 'tblTempUsageDetail_20' ) start [2025-01-22 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307390', 'tblTempUsageDetail_20' ) end [2025-01-22 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:20:22] Production.INFO: ==5901== Releasing lock... [2025-01-22 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:20:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-22 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:21:05 [end_date_ymd] => 2025-01-22 20:21:05 [RateCDR] => 1 ) [2025-01-22 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:21:05' and `end` < '2025-01-22 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:21:18] Production.INFO: count ==2317 [2025-01-22 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:21:05 - End Time 2025-01-22 20:21:05 [2025-01-22 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307395', 'tblTempUsageDetail_20' ) start [2025-01-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307395', 'tblTempUsageDetail_20' ) end [2025-01-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307395', 'tblTempVendorCDR_20' ) start [2025-01-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307395', 'tblTempVendorCDR_20' ) end [2025-01-22 20:21:18] Production.INFO: ProcessCDR(1,14307395,1,1,2) [2025-01-22 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307395', 'tblTempUsageDetail_20' ) start [2025-01-22 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307395', 'tblTempUsageDetail_20' ) end [2025-01-22 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:21:21] Production.INFO: ==5975== Releasing lock... [2025-01-22 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:21:21] Production.INFO: 45 MB #Memory Used# [2025-01-22 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:22:05 [end_date_ymd] => 2025-01-22 20:22:05 [RateCDR] => 1 ) [2025-01-22 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:22:05' and `end` < '2025-01-22 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:22:18] Production.INFO: count ==2315 [2025-01-22 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:22:05 - End Time 2025-01-22 20:22:05 [2025-01-22 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307400', 'tblTempUsageDetail_20' ) start [2025-01-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307400', 'tblTempUsageDetail_20' ) end [2025-01-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307400', 'tblTempVendorCDR_20' ) start [2025-01-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307400', 'tblTempVendorCDR_20' ) end [2025-01-22 20:22:18] Production.INFO: ProcessCDR(1,14307400,1,1,2) [2025-01-22 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307400', 'tblTempUsageDetail_20' ) start [2025-01-22 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307400', 'tblTempUsageDetail_20' ) end [2025-01-22 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:22:21] Production.INFO: ==6049== Releasing lock... [2025-01-22 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:22:21] Production.INFO: 45 MB #Memory Used# [2025-01-22 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:23:06 [end_date_ymd] => 2025-01-22 20:23:06 [RateCDR] => 1 ) [2025-01-22 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:23:06' and `end` < '2025-01-22 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:23:18] Production.INFO: count ==2316 [2025-01-22 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:23:06 - End Time 2025-01-22 20:23:06 [2025-01-22 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307405', 'tblTempUsageDetail_20' ) start [2025-01-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307405', 'tblTempUsageDetail_20' ) end [2025-01-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307405', 'tblTempVendorCDR_20' ) start [2025-01-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307405', 'tblTempVendorCDR_20' ) end [2025-01-22 20:23:19] Production.INFO: ProcessCDR(1,14307405,1,1,2) [2025-01-22 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307405', 'tblTempUsageDetail_20' ) start [2025-01-22 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307405', 'tblTempUsageDetail_20' ) end [2025-01-22 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:23:22] Production.INFO: ==6125== Releasing lock... [2025-01-22 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:23:22] Production.INFO: 45 MB #Memory Used# [2025-01-22 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:24:05 [end_date_ymd] => 2025-01-22 20:24:05 [RateCDR] => 1 ) [2025-01-22 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:24:05' and `end` < '2025-01-22 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:24:19] Production.INFO: count ==2313 [2025-01-22 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:24:05 - End Time 2025-01-22 20:24:05 [2025-01-22 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307410', 'tblTempUsageDetail_20' ) start [2025-01-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307410', 'tblTempUsageDetail_20' ) end [2025-01-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307410', 'tblTempVendorCDR_20' ) start [2025-01-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307410', 'tblTempVendorCDR_20' ) end [2025-01-22 20:24:19] Production.INFO: ProcessCDR(1,14307410,1,1,2) [2025-01-22 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307410', 'tblTempUsageDetail_20' ) start [2025-01-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307410', 'tblTempUsageDetail_20' ) end [2025-01-22 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:24:22] Production.INFO: ==6199== Releasing lock... [2025-01-22 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:24:22] Production.INFO: 45 MB #Memory Used# [2025-01-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:25:05 [end_date_ymd] => 2025-01-22 20:25:05 [RateCDR] => 1 ) [2025-01-22 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:25:05' and `end` < '2025-01-22 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:25:18] Production.INFO: count ==2300 [2025-01-22 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:25:05 - End Time 2025-01-22 20:25:05 [2025-01-22 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307415', 'tblTempUsageDetail_20' ) start [2025-01-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307415', 'tblTempUsageDetail_20' ) end [2025-01-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307415', 'tblTempVendorCDR_20' ) start [2025-01-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307415', 'tblTempVendorCDR_20' ) end [2025-01-22 20:25:18] Production.INFO: ProcessCDR(1,14307415,1,1,2) [2025-01-22 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307415', 'tblTempUsageDetail_20' ) start [2025-01-22 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307415', 'tblTempUsageDetail_20' ) end [2025-01-22 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:25:22] Production.INFO: ==6272== Releasing lock... [2025-01-22 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:25:22] Production.INFO: 45 MB #Memory Used# [2025-01-22 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:26:05 [end_date_ymd] => 2025-01-22 20:26:05 [RateCDR] => 1 ) [2025-01-22 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:26:05' and `end` < '2025-01-22 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:26:18] Production.INFO: count ==2299 [2025-01-22 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:26:05 - End Time 2025-01-22 20:26:05 [2025-01-22 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307420', 'tblTempUsageDetail_20' ) start [2025-01-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307420', 'tblTempUsageDetail_20' ) end [2025-01-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307420', 'tblTempVendorCDR_20' ) start [2025-01-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307420', 'tblTempVendorCDR_20' ) end [2025-01-22 20:26:18] Production.INFO: ProcessCDR(1,14307420,1,1,2) [2025-01-22 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307420', 'tblTempUsageDetail_20' ) start [2025-01-22 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307420', 'tblTempUsageDetail_20' ) end [2025-01-22 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:26:21] Production.INFO: ==6341== Releasing lock... [2025-01-22 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:26:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-22 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:27:06 [end_date_ymd] => 2025-01-22 20:27:06 [RateCDR] => 1 ) [2025-01-22 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:27:06' and `end` < '2025-01-22 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:27:20] Production.INFO: count ==2285 [2025-01-22 20:27:20] Production.ERROR: pbx CDR StartTime 2025-01-22 17:27:06 - End Time 2025-01-22 20:27:06 [2025-01-22 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307425', 'tblTempUsageDetail_20' ) start [2025-01-22 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307425', 'tblTempUsageDetail_20' ) end [2025-01-22 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307425', 'tblTempVendorCDR_20' ) start [2025-01-22 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307425', 'tblTempVendorCDR_20' ) end [2025-01-22 20:27:20] Production.INFO: ProcessCDR(1,14307425,1,1,2) [2025-01-22 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307425', 'tblTempUsageDetail_20' ) start [2025-01-22 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307425', 'tblTempUsageDetail_20' ) end [2025-01-22 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:27:23] Production.INFO: ==6417== Releasing lock... [2025-01-22 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:27:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-22 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:28:05 [end_date_ymd] => 2025-01-22 20:28:05 [RateCDR] => 1 ) [2025-01-22 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:28:05' and `end` < '2025-01-22 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:28:18] Production.INFO: count ==2282 [2025-01-22 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:28:05 - End Time 2025-01-22 20:28:05 [2025-01-22 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307430', 'tblTempUsageDetail_20' ) start [2025-01-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307430', 'tblTempUsageDetail_20' ) end [2025-01-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307430', 'tblTempVendorCDR_20' ) start [2025-01-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307430', 'tblTempVendorCDR_20' ) end [2025-01-22 20:28:18] Production.INFO: ProcessCDR(1,14307430,1,1,2) [2025-01-22 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307430', 'tblTempUsageDetail_20' ) start [2025-01-22 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307430', 'tblTempUsageDetail_20' ) end [2025-01-22 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:28:21] Production.INFO: ==6487== Releasing lock... [2025-01-22 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:28:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-22 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:29:06 [end_date_ymd] => 2025-01-22 20:29:06 [RateCDR] => 1 ) [2025-01-22 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:29:06' and `end` < '2025-01-22 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:29:18] Production.INFO: count ==2276 [2025-01-22 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:29:06 - End Time 2025-01-22 20:29:06 [2025-01-22 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307435', 'tblTempUsageDetail_20' ) start [2025-01-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307435', 'tblTempUsageDetail_20' ) end [2025-01-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307435', 'tblTempVendorCDR_20' ) start [2025-01-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307435', 'tblTempVendorCDR_20' ) end [2025-01-22 20:29:19] Production.INFO: ProcessCDR(1,14307435,1,1,2) [2025-01-22 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307435', 'tblTempUsageDetail_20' ) start [2025-01-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307435', 'tblTempUsageDetail_20' ) end [2025-01-22 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:29:22] Production.INFO: ==6561== Releasing lock... [2025-01-22 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:29:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-22 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:30:06 [end_date_ymd] => 2025-01-22 20:30:06 [RateCDR] => 1 ) [2025-01-22 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:30:06' and `end` < '2025-01-22 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:30:19] Production.INFO: count ==2267 [2025-01-22 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:30:06 - End Time 2025-01-22 20:30:06 [2025-01-22 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307441', 'tblTempUsageDetail_20' ) start [2025-01-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307441', 'tblTempUsageDetail_20' ) end [2025-01-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307441', 'tblTempVendorCDR_20' ) start [2025-01-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307441', 'tblTempVendorCDR_20' ) end [2025-01-22 20:30:19] Production.INFO: ProcessCDR(1,14307441,1,1,2) [2025-01-22 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307441', 'tblTempUsageDetail_20' ) start [2025-01-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307441', 'tblTempUsageDetail_20' ) end [2025-01-22 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:30:22] Production.INFO: ==6637== Releasing lock... [2025-01-22 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:30:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-22 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:31:05 [end_date_ymd] => 2025-01-22 20:31:05 [RateCDR] => 1 ) [2025-01-22 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:31:05' and `end` < '2025-01-22 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:31:18] Production.INFO: count ==2209 [2025-01-22 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:31:05 - End Time 2025-01-22 20:31:05 [2025-01-22 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307446', 'tblTempUsageDetail_20' ) start [2025-01-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307446', 'tblTempUsageDetail_20' ) end [2025-01-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307446', 'tblTempVendorCDR_20' ) start [2025-01-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307446', 'tblTempVendorCDR_20' ) end [2025-01-22 20:31:18] Production.INFO: ProcessCDR(1,14307446,1,1,2) [2025-01-22 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307446', 'tblTempUsageDetail_20' ) start [2025-01-22 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307446', 'tblTempUsageDetail_20' ) end [2025-01-22 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:31:21] Production.INFO: ==6715== Releasing lock... [2025-01-22 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:31:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-22 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:32:05 [end_date_ymd] => 2025-01-22 20:32:05 [RateCDR] => 1 ) [2025-01-22 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:32:05' and `end` < '2025-01-22 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:32:18] Production.INFO: count ==2212 [2025-01-22 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:32:05 - End Time 2025-01-22 20:32:05 [2025-01-22 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307451', 'tblTempUsageDetail_20' ) start [2025-01-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307451', 'tblTempUsageDetail_20' ) end [2025-01-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307451', 'tblTempVendorCDR_20' ) start [2025-01-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307451', 'tblTempVendorCDR_20' ) end [2025-01-22 20:32:18] Production.INFO: ProcessCDR(1,14307451,1,1,2) [2025-01-22 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307451', 'tblTempUsageDetail_20' ) start [2025-01-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307451', 'tblTempUsageDetail_20' ) end [2025-01-22 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:32:21] Production.INFO: ==6788== Releasing lock... [2025-01-22 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:32:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-22 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:33:06 [end_date_ymd] => 2025-01-22 20:33:06 [RateCDR] => 1 ) [2025-01-22 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:33:06' and `end` < '2025-01-22 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:33:18] Production.INFO: count ==2206 [2025-01-22 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:33:06 - End Time 2025-01-22 20:33:06 [2025-01-22 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307456', 'tblTempUsageDetail_20' ) start [2025-01-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307456', 'tblTempUsageDetail_20' ) end [2025-01-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307456', 'tblTempVendorCDR_20' ) start [2025-01-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307456', 'tblTempVendorCDR_20' ) end [2025-01-22 20:33:19] Production.INFO: ProcessCDR(1,14307456,1,1,2) [2025-01-22 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307456', 'tblTempUsageDetail_20' ) start [2025-01-22 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307456', 'tblTempUsageDetail_20' ) end [2025-01-22 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:33:22] Production.INFO: ==6897== Releasing lock... [2025-01-22 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:33:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-22 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:34:05 [end_date_ymd] => 2025-01-22 20:34:05 [RateCDR] => 1 ) [2025-01-22 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:34:05' and `end` < '2025-01-22 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:34:19] Production.INFO: count ==2202 [2025-01-22 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:34:05 - End Time 2025-01-22 20:34:05 [2025-01-22 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307461', 'tblTempUsageDetail_20' ) start [2025-01-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307461', 'tblTempUsageDetail_20' ) end [2025-01-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307461', 'tblTempVendorCDR_20' ) start [2025-01-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307461', 'tblTempVendorCDR_20' ) end [2025-01-22 20:34:19] Production.INFO: ProcessCDR(1,14307461,1,1,2) [2025-01-22 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307461', 'tblTempUsageDetail_20' ) start [2025-01-22 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307461', 'tblTempUsageDetail_20' ) end [2025-01-22 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:34:23] Production.INFO: ==6975== Releasing lock... [2025-01-22 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:34:23] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:35:05 [end_date_ymd] => 2025-01-22 20:35:05 [RateCDR] => 1 ) [2025-01-22 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:35:05' and `end` < '2025-01-22 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:35:18] Production.INFO: count ==2192 [2025-01-22 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:35:05 - End Time 2025-01-22 20:35:05 [2025-01-22 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307466', 'tblTempUsageDetail_20' ) start [2025-01-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307466', 'tblTempUsageDetail_20' ) end [2025-01-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307466', 'tblTempVendorCDR_20' ) start [2025-01-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307466', 'tblTempVendorCDR_20' ) end [2025-01-22 20:35:18] Production.INFO: ProcessCDR(1,14307466,1,1,2) [2025-01-22 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307466', 'tblTempUsageDetail_20' ) start [2025-01-22 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307466', 'tblTempUsageDetail_20' ) end [2025-01-22 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:35:22] Production.INFO: ==7049== Releasing lock... [2025-01-22 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:35:22] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:36:05 [end_date_ymd] => 2025-01-22 20:36:05 [RateCDR] => 1 ) [2025-01-22 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:36:05' and `end` < '2025-01-22 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:36:17] Production.INFO: count ==2191 [2025-01-22 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:36:05 - End Time 2025-01-22 20:36:05 [2025-01-22 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307471', 'tblTempUsageDetail_20' ) start [2025-01-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307471', 'tblTempUsageDetail_20' ) end [2025-01-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307471', 'tblTempVendorCDR_20' ) start [2025-01-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307471', 'tblTempVendorCDR_20' ) end [2025-01-22 20:36:18] Production.INFO: ProcessCDR(1,14307471,1,1,2) [2025-01-22 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307471', 'tblTempUsageDetail_20' ) start [2025-01-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307471', 'tblTempUsageDetail_20' ) end [2025-01-22 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:36:22] Production.INFO: ==7141== Releasing lock... [2025-01-22 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:36:22] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:37:05 [end_date_ymd] => 2025-01-22 20:37:05 [RateCDR] => 1 ) [2025-01-22 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:37:05' and `end` < '2025-01-22 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:37:18] Production.INFO: count ==2190 [2025-01-22 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:37:05 - End Time 2025-01-22 20:37:05 [2025-01-22 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307476', 'tblTempUsageDetail_20' ) start [2025-01-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307476', 'tblTempUsageDetail_20' ) end [2025-01-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307476', 'tblTempVendorCDR_20' ) start [2025-01-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307476', 'tblTempVendorCDR_20' ) end [2025-01-22 20:37:19] Production.INFO: ProcessCDR(1,14307476,1,1,2) [2025-01-22 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307476', 'tblTempUsageDetail_20' ) start [2025-01-22 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307476', 'tblTempUsageDetail_20' ) end [2025-01-22 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:37:22] Production.INFO: ==7237== Releasing lock... [2025-01-22 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:37:22] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:38:05 [end_date_ymd] => 2025-01-22 20:38:05 [RateCDR] => 1 ) [2025-01-22 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:38:05' and `end` < '2025-01-22 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:38:17] Production.INFO: count ==2185 [2025-01-22 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:38:05 - End Time 2025-01-22 20:38:05 [2025-01-22 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307481', 'tblTempUsageDetail_20' ) start [2025-01-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307481', 'tblTempUsageDetail_20' ) end [2025-01-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307481', 'tblTempVendorCDR_20' ) start [2025-01-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307481', 'tblTempVendorCDR_20' ) end [2025-01-22 20:38:18] Production.INFO: ProcessCDR(1,14307481,1,1,2) [2025-01-22 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307481', 'tblTempUsageDetail_20' ) start [2025-01-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307481', 'tblTempUsageDetail_20' ) end [2025-01-22 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:38:21] Production.INFO: ==7326== Releasing lock... [2025-01-22 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:38:21] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:39:05 [end_date_ymd] => 2025-01-22 20:39:05 [RateCDR] => 1 ) [2025-01-22 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:39:05' and `end` < '2025-01-22 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:39:18] Production.INFO: count ==2181 [2025-01-22 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:39:05 - End Time 2025-01-22 20:39:05 [2025-01-22 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307486', 'tblTempUsageDetail_20' ) start [2025-01-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307486', 'tblTempUsageDetail_20' ) end [2025-01-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307486', 'tblTempVendorCDR_20' ) start [2025-01-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307486', 'tblTempVendorCDR_20' ) end [2025-01-22 20:39:19] Production.INFO: ProcessCDR(1,14307486,1,1,2) [2025-01-22 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307486', 'tblTempUsageDetail_20' ) start [2025-01-22 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307486', 'tblTempUsageDetail_20' ) end [2025-01-22 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:39:22] Production.INFO: ==7409== Releasing lock... [2025-01-22 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:39:22] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:40:07 [end_date_ymd] => 2025-01-22 20:40:07 [RateCDR] => 1 ) [2025-01-22 20:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:40:07' and `end` < '2025-01-22 20:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:40:19] Production.INFO: count ==2173 [2025-01-22 20:40:20] Production.ERROR: pbx CDR StartTime 2025-01-22 17:40:07 - End Time 2025-01-22 20:40:07 [2025-01-22 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307492', 'tblTempUsageDetail_20' ) start [2025-01-22 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307492', 'tblTempUsageDetail_20' ) end [2025-01-22 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307492', 'tblTempVendorCDR_20' ) start [2025-01-22 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307492', 'tblTempVendorCDR_20' ) end [2025-01-22 20:40:20] Production.INFO: ProcessCDR(1,14307492,1,1,2) [2025-01-22 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307492', 'tblTempUsageDetail_20' ) start [2025-01-22 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307492', 'tblTempUsageDetail_20' ) end [2025-01-22 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:40:23] Production.INFO: ==7482== Releasing lock... [2025-01-22 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:40:23] Production.INFO: 44 MB #Memory Used# [2025-01-22 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:41:05 [end_date_ymd] => 2025-01-22 20:41:05 [RateCDR] => 1 ) [2025-01-22 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:41:05' and `end` < '2025-01-22 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:41:17] Production.INFO: count ==2087 [2025-01-22 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:41:05 - End Time 2025-01-22 20:41:05 [2025-01-22 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307497', 'tblTempUsageDetail_20' ) start [2025-01-22 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307497', 'tblTempUsageDetail_20' ) end [2025-01-22 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307497', 'tblTempVendorCDR_20' ) start [2025-01-22 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307497', 'tblTempVendorCDR_20' ) end [2025-01-22 20:41:18] Production.INFO: ProcessCDR(1,14307497,1,1,2) [2025-01-22 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307497', 'tblTempUsageDetail_20' ) start [2025-01-22 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307497', 'tblTempUsageDetail_20' ) end [2025-01-22 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:41:21] Production.INFO: ==7560== Releasing lock... [2025-01-22 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:41:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:42:06 [end_date_ymd] => 2025-01-22 20:42:06 [RateCDR] => 1 ) [2025-01-22 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:42:06' and `end` < '2025-01-22 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:42:18] Production.INFO: count ==2081 [2025-01-22 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:42:06 - End Time 2025-01-22 20:42:06 [2025-01-22 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307502', 'tblTempUsageDetail_20' ) start [2025-01-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307502', 'tblTempUsageDetail_20' ) end [2025-01-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307502', 'tblTempVendorCDR_20' ) start [2025-01-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307502', 'tblTempVendorCDR_20' ) end [2025-01-22 20:42:19] Production.INFO: ProcessCDR(1,14307502,1,1,2) [2025-01-22 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307502', 'tblTempUsageDetail_20' ) start [2025-01-22 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307502', 'tblTempUsageDetail_20' ) end [2025-01-22 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:42:22] Production.INFO: ==7633== Releasing lock... [2025-01-22 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:42:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:43:05 [end_date_ymd] => 2025-01-22 20:43:05 [RateCDR] => 1 ) [2025-01-22 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:43:05' and `end` < '2025-01-22 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:43:17] Production.INFO: count ==2087 [2025-01-22 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:43:05 - End Time 2025-01-22 20:43:05 [2025-01-22 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307507', 'tblTempUsageDetail_20' ) start [2025-01-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307507', 'tblTempUsageDetail_20' ) end [2025-01-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307507', 'tblTempVendorCDR_20' ) start [2025-01-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307507', 'tblTempVendorCDR_20' ) end [2025-01-22 20:43:18] Production.INFO: ProcessCDR(1,14307507,1,1,2) [2025-01-22 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307507', 'tblTempUsageDetail_20' ) start [2025-01-22 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307507', 'tblTempUsageDetail_20' ) end [2025-01-22 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:43:21] Production.INFO: ==7706== Releasing lock... [2025-01-22 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:43:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:44:06 [end_date_ymd] => 2025-01-22 20:44:06 [RateCDR] => 1 ) [2025-01-22 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:44:06' and `end` < '2025-01-22 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:44:19] Production.INFO: count ==2090 [2025-01-22 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:44:06 - End Time 2025-01-22 20:44:06 [2025-01-22 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307512', 'tblTempUsageDetail_20' ) start [2025-01-22 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307512', 'tblTempUsageDetail_20' ) end [2025-01-22 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307512', 'tblTempVendorCDR_20' ) start [2025-01-22 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307512', 'tblTempVendorCDR_20' ) end [2025-01-22 20:44:19] Production.INFO: ProcessCDR(1,14307512,1,1,2) [2025-01-22 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307512', 'tblTempUsageDetail_20' ) start [2025-01-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307512', 'tblTempUsageDetail_20' ) end [2025-01-22 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:44:22] Production.INFO: ==7783== Releasing lock... [2025-01-22 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:44:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:45:05 [end_date_ymd] => 2025-01-22 20:45:05 [RateCDR] => 1 ) [2025-01-22 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:45:05' and `end` < '2025-01-22 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:45:18] Production.INFO: count ==2086 [2025-01-22 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:45:05 - End Time 2025-01-22 20:45:05 [2025-01-22 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307517', 'tblTempUsageDetail_20' ) start [2025-01-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307517', 'tblTempUsageDetail_20' ) end [2025-01-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307517', 'tblTempVendorCDR_20' ) start [2025-01-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307517', 'tblTempVendorCDR_20' ) end [2025-01-22 20:45:18] Production.INFO: ProcessCDR(1,14307517,1,1,2) [2025-01-22 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307517', 'tblTempUsageDetail_20' ) start [2025-01-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307517', 'tblTempUsageDetail_20' ) end [2025-01-22 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:45:21] Production.INFO: ==7855== Releasing lock... [2025-01-22 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:45:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:46:06 [end_date_ymd] => 2025-01-22 20:46:06 [RateCDR] => 1 ) [2025-01-22 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:46:06' and `end` < '2025-01-22 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:46:19] Production.INFO: count ==2082 [2025-01-22 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:46:06 - End Time 2025-01-22 20:46:06 [2025-01-22 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307522', 'tblTempUsageDetail_20' ) start [2025-01-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307522', 'tblTempUsageDetail_20' ) end [2025-01-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307522', 'tblTempVendorCDR_20' ) start [2025-01-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307522', 'tblTempVendorCDR_20' ) end [2025-01-22 20:46:19] Production.INFO: ProcessCDR(1,14307522,1,1,2) [2025-01-22 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307522', 'tblTempUsageDetail_20' ) start [2025-01-22 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307522', 'tblTempUsageDetail_20' ) end [2025-01-22 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:46:22] Production.INFO: ==7933== Releasing lock... [2025-01-22 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:46:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:47:05 [end_date_ymd] => 2025-01-22 20:47:05 [RateCDR] => 1 ) [2025-01-22 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:47:05' and `end` < '2025-01-22 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:47:18] Production.INFO: count ==2078 [2025-01-22 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:47:05 - End Time 2025-01-22 20:47:05 [2025-01-22 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307527', 'tblTempUsageDetail_20' ) start [2025-01-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307527', 'tblTempUsageDetail_20' ) end [2025-01-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307527', 'tblTempVendorCDR_20' ) start [2025-01-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307527', 'tblTempVendorCDR_20' ) end [2025-01-22 20:47:18] Production.INFO: ProcessCDR(1,14307527,1,1,2) [2025-01-22 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307527', 'tblTempUsageDetail_20' ) start [2025-01-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307527', 'tblTempUsageDetail_20' ) end [2025-01-22 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:47:21] Production.INFO: ==8006== Releasing lock... [2025-01-22 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:47:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:48:05 [end_date_ymd] => 2025-01-22 20:48:05 [RateCDR] => 1 ) [2025-01-22 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:48:05' and `end` < '2025-01-22 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:48:18] Production.INFO: count ==2072 [2025-01-22 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:48:05 - End Time 2025-01-22 20:48:05 [2025-01-22 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307532', 'tblTempUsageDetail_20' ) start [2025-01-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307532', 'tblTempUsageDetail_20' ) end [2025-01-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307532', 'tblTempVendorCDR_20' ) start [2025-01-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307532', 'tblTempVendorCDR_20' ) end [2025-01-22 20:48:18] Production.INFO: ProcessCDR(1,14307532,1,1,2) [2025-01-22 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307532', 'tblTempUsageDetail_20' ) start [2025-01-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307532', 'tblTempUsageDetail_20' ) end [2025-01-22 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:48:21] Production.INFO: ==8080== Releasing lock... [2025-01-22 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:48:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-22 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:49:05 [end_date_ymd] => 2025-01-22 20:49:05 [RateCDR] => 1 ) [2025-01-22 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:49:05' and `end` < '2025-01-22 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:49:18] Production.INFO: count ==2069 [2025-01-22 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:49:05 - End Time 2025-01-22 20:49:05 [2025-01-22 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307537', 'tblTempUsageDetail_20' ) start [2025-01-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307537', 'tblTempUsageDetail_20' ) end [2025-01-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307537', 'tblTempVendorCDR_20' ) start [2025-01-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307537', 'tblTempVendorCDR_20' ) end [2025-01-22 20:49:18] Production.INFO: ProcessCDR(1,14307537,1,1,2) [2025-01-22 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307537', 'tblTempUsageDetail_20' ) start [2025-01-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307537', 'tblTempUsageDetail_20' ) end [2025-01-22 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:49:23] Production.INFO: ==8194== Releasing lock... [2025-01-22 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:49:23] Production.INFO: 43 MB #Memory Used# [2025-01-22 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:50:05 [end_date_ymd] => 2025-01-22 20:50:05 [RateCDR] => 1 ) [2025-01-22 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:50:05' and `end` < '2025-01-22 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:50:19] Production.INFO: count ==2068 [2025-01-22 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:50:05 - End Time 2025-01-22 20:50:05 [2025-01-22 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307543', 'tblTempUsageDetail_20' ) start [2025-01-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307543', 'tblTempUsageDetail_20' ) end [2025-01-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307543', 'tblTempVendorCDR_20' ) start [2025-01-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307543', 'tblTempVendorCDR_20' ) end [2025-01-22 20:50:19] Production.INFO: ProcessCDR(1,14307543,1,1,2) [2025-01-22 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307543', 'tblTempUsageDetail_20' ) start [2025-01-22 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307543', 'tblTempUsageDetail_20' ) end [2025-01-22 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:50:24] Production.INFO: ==8271== Releasing lock... [2025-01-22 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:50:24] Production.INFO: 43 MB #Memory Used# [2025-01-22 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:51:06 [end_date_ymd] => 2025-01-22 20:51:06 [RateCDR] => 1 ) [2025-01-22 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:51:06' and `end` < '2025-01-22 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:51:18] Production.INFO: count ==2022 [2025-01-22 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:51:06 - End Time 2025-01-22 20:51:06 [2025-01-22 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307548', 'tblTempUsageDetail_20' ) start [2025-01-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307548', 'tblTempUsageDetail_20' ) end [2025-01-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307548', 'tblTempVendorCDR_20' ) start [2025-01-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307548', 'tblTempVendorCDR_20' ) end [2025-01-22 20:51:19] Production.INFO: ProcessCDR(1,14307548,1,1,2) [2025-01-22 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307548', 'tblTempUsageDetail_20' ) start [2025-01-22 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307548', 'tblTempUsageDetail_20' ) end [2025-01-22 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:51:22] Production.INFO: ==8346== Releasing lock... [2025-01-22 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:52:06 [end_date_ymd] => 2025-01-22 20:52:06 [RateCDR] => 1 ) [2025-01-22 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:52:06' and `end` < '2025-01-22 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:52:19] Production.INFO: count ==2019 [2025-01-22 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:52:06 - End Time 2025-01-22 20:52:06 [2025-01-22 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307553', 'tblTempUsageDetail_20' ) start [2025-01-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307553', 'tblTempUsageDetail_20' ) end [2025-01-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307553', 'tblTempVendorCDR_20' ) start [2025-01-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307553', 'tblTempVendorCDR_20' ) end [2025-01-22 20:52:19] Production.INFO: ProcessCDR(1,14307553,1,1,2) [2025-01-22 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307553', 'tblTempUsageDetail_20' ) start [2025-01-22 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307553', 'tblTempUsageDetail_20' ) end [2025-01-22 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:52:22] Production.INFO: ==8418== Releasing lock... [2025-01-22 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:52:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:53:05 [end_date_ymd] => 2025-01-22 20:53:05 [RateCDR] => 1 ) [2025-01-22 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:53:05' and `end` < '2025-01-22 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:53:18] Production.INFO: count ==2012 [2025-01-22 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:53:05 - End Time 2025-01-22 20:53:05 [2025-01-22 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307558', 'tblTempUsageDetail_20' ) start [2025-01-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307558', 'tblTempUsageDetail_20' ) end [2025-01-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307558', 'tblTempVendorCDR_20' ) start [2025-01-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307558', 'tblTempVendorCDR_20' ) end [2025-01-22 20:53:18] Production.INFO: ProcessCDR(1,14307558,1,1,2) [2025-01-22 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307558', 'tblTempUsageDetail_20' ) start [2025-01-22 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307558', 'tblTempUsageDetail_20' ) end [2025-01-22 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:53:23] Production.INFO: ==8501== Releasing lock... [2025-01-22 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:53:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:54:05 [end_date_ymd] => 2025-01-22 20:54:05 [RateCDR] => 1 ) [2025-01-22 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:54:05' and `end` < '2025-01-22 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:54:18] Production.INFO: count ==2016 [2025-01-22 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:54:05 - End Time 2025-01-22 20:54:05 [2025-01-22 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307563', 'tblTempUsageDetail_20' ) start [2025-01-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307563', 'tblTempUsageDetail_20' ) end [2025-01-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307563', 'tblTempVendorCDR_20' ) start [2025-01-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307563', 'tblTempVendorCDR_20' ) end [2025-01-22 20:54:18] Production.INFO: ProcessCDR(1,14307563,1,1,2) [2025-01-22 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307563', 'tblTempUsageDetail_20' ) start [2025-01-22 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307563', 'tblTempUsageDetail_20' ) end [2025-01-22 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:54:22] Production.INFO: ==8572== Releasing lock... [2025-01-22 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:54:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:55:05 [end_date_ymd] => 2025-01-22 20:55:05 [RateCDR] => 1 ) [2025-01-22 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:55:05' and `end` < '2025-01-22 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:55:17] Production.INFO: count ==2019 [2025-01-22 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:55:05 - End Time 2025-01-22 20:55:05 [2025-01-22 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307568', 'tblTempUsageDetail_20' ) start [2025-01-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307568', 'tblTempUsageDetail_20' ) end [2025-01-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307568', 'tblTempVendorCDR_20' ) start [2025-01-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307568', 'tblTempVendorCDR_20' ) end [2025-01-22 20:55:18] Production.INFO: ProcessCDR(1,14307568,1,1,2) [2025-01-22 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307568', 'tblTempUsageDetail_20' ) start [2025-01-22 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307568', 'tblTempUsageDetail_20' ) end [2025-01-22 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:55:22] Production.INFO: ==8646== Releasing lock... [2025-01-22 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:55:22] Production.INFO: 43 MB #Memory Used# [2025-01-22 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:56:05 [end_date_ymd] => 2025-01-22 20:56:05 [RateCDR] => 1 ) [2025-01-22 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:56:05' and `end` < '2025-01-22 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:56:18] Production.INFO: count ==2014 [2025-01-22 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:56:05 - End Time 2025-01-22 20:56:05 [2025-01-22 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307573', 'tblTempUsageDetail_20' ) start [2025-01-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307573', 'tblTempUsageDetail_20' ) end [2025-01-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307573', 'tblTempVendorCDR_20' ) start [2025-01-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307573', 'tblTempVendorCDR_20' ) end [2025-01-22 20:56:19] Production.INFO: ProcessCDR(1,14307573,1,1,2) [2025-01-22 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307573', 'tblTempUsageDetail_20' ) start [2025-01-22 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307573', 'tblTempUsageDetail_20' ) end [2025-01-22 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:56:22] Production.INFO: ==8717== Releasing lock... [2025-01-22 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:56:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:57:05 [end_date_ymd] => 2025-01-22 20:57:05 [RateCDR] => 1 ) [2025-01-22 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:57:05' and `end` < '2025-01-22 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:57:18] Production.INFO: count ==2007 [2025-01-22 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:57:05 - End Time 2025-01-22 20:57:05 [2025-01-22 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307578', 'tblTempUsageDetail_20' ) start [2025-01-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307578', 'tblTempUsageDetail_20' ) end [2025-01-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307578', 'tblTempVendorCDR_20' ) start [2025-01-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307578', 'tblTempVendorCDR_20' ) end [2025-01-22 20:57:18] Production.INFO: ProcessCDR(1,14307578,1,1,2) [2025-01-22 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307578', 'tblTempUsageDetail_20' ) start [2025-01-22 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307578', 'tblTempUsageDetail_20' ) end [2025-01-22 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:57:22] Production.INFO: ==8793== Releasing lock... [2025-01-22 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:57:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:58:06 [end_date_ymd] => 2025-01-22 20:58:06 [RateCDR] => 1 ) [2025-01-22 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:58:06' and `end` < '2025-01-22 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:58:19] Production.INFO: count ==2006 [2025-01-22 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-22 17:58:06 - End Time 2025-01-22 20:58:06 [2025-01-22 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307583', 'tblTempUsageDetail_20' ) start [2025-01-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307583', 'tblTempUsageDetail_20' ) end [2025-01-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307583', 'tblTempVendorCDR_20' ) start [2025-01-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307583', 'tblTempVendorCDR_20' ) end [2025-01-22 20:58:19] Production.INFO: ProcessCDR(1,14307583,1,1,2) [2025-01-22 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307583', 'tblTempUsageDetail_20' ) start [2025-01-22 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307583', 'tblTempUsageDetail_20' ) end [2025-01-22 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:58:23] Production.INFO: ==8870== Releasing lock... [2025-01-22 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:58:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-22 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 17:59:05 [end_date_ymd] => 2025-01-22 20:59:05 [RateCDR] => 1 ) [2025-01-22 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 17:59:05' and `end` < '2025-01-22 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 20:59:17] Production.INFO: count ==2000 [2025-01-22 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 17:59:05 - End Time 2025-01-22 20:59:05 [2025-01-22 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307588', 'tblTempUsageDetail_20' ) start [2025-01-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307588', 'tblTempUsageDetail_20' ) end [2025-01-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307588', 'tblTempVendorCDR_20' ) start [2025-01-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307588', 'tblTempVendorCDR_20' ) end [2025-01-22 20:59:18] Production.INFO: ProcessCDR(1,14307588,1,1,2) [2025-01-22 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307588', 'tblTempUsageDetail_20' ) start [2025-01-22 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307588', 'tblTempUsageDetail_20' ) end [2025-01-22 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 20:59:22] Production.INFO: ==8940== Releasing lock... [2025-01-22 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 20:59:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-22 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:00:06 [end_date_ymd] => 2025-01-22 21:00:06 [RateCDR] => 1 ) [2025-01-22 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:00:06' and `end` < '2025-01-22 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:00:19] Production.INFO: count ==1997 [2025-01-22 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:00:06 - End Time 2025-01-22 21:00:06 [2025-01-22 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307593', 'tblTempUsageDetail_20' ) start [2025-01-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307593', 'tblTempUsageDetail_20' ) end [2025-01-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307593', 'tblTempVendorCDR_20' ) start [2025-01-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307593', 'tblTempVendorCDR_20' ) end [2025-01-22 21:00:19] Production.INFO: ProcessCDR(1,14307593,1,1,2) [2025-01-22 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307593', 'tblTempUsageDetail_20' ) start [2025-01-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307593', 'tblTempUsageDetail_20' ) end [2025-01-22 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:00:22] Production.INFO: ==9020== Releasing lock... [2025-01-22 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:00:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-22 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:01:05 [end_date_ymd] => 2025-01-22 21:01:05 [RateCDR] => 1 ) [2025-01-22 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:01:05' and `end` < '2025-01-22 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:01:18] Production.INFO: count ==1926 [2025-01-22 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:01:05 - End Time 2025-01-22 21:01:05 [2025-01-22 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307599', 'tblTempUsageDetail_20' ) start [2025-01-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307599', 'tblTempUsageDetail_20' ) end [2025-01-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307599', 'tblTempVendorCDR_20' ) start [2025-01-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307599', 'tblTempVendorCDR_20' ) end [2025-01-22 21:01:18] Production.INFO: ProcessCDR(1,14307599,1,1,2) [2025-01-22 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307599', 'tblTempUsageDetail_20' ) start [2025-01-22 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307599', 'tblTempUsageDetail_20' ) end [2025-01-22 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:01:21] Production.INFO: ==9106== Releasing lock... [2025-01-22 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:01:21] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:02:06 [end_date_ymd] => 2025-01-22 21:02:06 [RateCDR] => 1 ) [2025-01-22 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:02:06' and `end` < '2025-01-22 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:02:19] Production.INFO: count ==1928 [2025-01-22 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:02:06 - End Time 2025-01-22 21:02:06 [2025-01-22 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307604', 'tblTempUsageDetail_20' ) start [2025-01-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307604', 'tblTempUsageDetail_20' ) end [2025-01-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307604', 'tblTempVendorCDR_20' ) start [2025-01-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307604', 'tblTempVendorCDR_20' ) end [2025-01-22 21:02:19] Production.INFO: ProcessCDR(1,14307604,1,1,2) [2025-01-22 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307604', 'tblTempUsageDetail_20' ) start [2025-01-22 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307604', 'tblTempUsageDetail_20' ) end [2025-01-22 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:02:23] Production.INFO: ==9179== Releasing lock... [2025-01-22 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:02:23] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:03:05 [end_date_ymd] => 2025-01-22 21:03:05 [RateCDR] => 1 ) [2025-01-22 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:03:05' and `end` < '2025-01-22 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:03:19] Production.INFO: count ==1925 [2025-01-22 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:03:05 - End Time 2025-01-22 21:03:05 [2025-01-22 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307609', 'tblTempUsageDetail_20' ) start [2025-01-22 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307609', 'tblTempUsageDetail_20' ) end [2025-01-22 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307609', 'tblTempVendorCDR_20' ) start [2025-01-22 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307609', 'tblTempVendorCDR_20' ) end [2025-01-22 21:03:19] Production.INFO: ProcessCDR(1,14307609,1,1,2) [2025-01-22 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307609', 'tblTempUsageDetail_20' ) start [2025-01-22 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307609', 'tblTempUsageDetail_20' ) end [2025-01-22 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:03:22] Production.INFO: ==9253== Releasing lock... [2025-01-22 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:03:22] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:04:06 [end_date_ymd] => 2025-01-22 21:04:06 [RateCDR] => 1 ) [2025-01-22 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:04:06' and `end` < '2025-01-22 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:04:20] Production.INFO: count ==1927 [2025-01-22 21:04:20] Production.ERROR: pbx CDR StartTime 2025-01-22 18:04:06 - End Time 2025-01-22 21:04:06 [2025-01-22 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307614', 'tblTempUsageDetail_20' ) start [2025-01-22 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307614', 'tblTempUsageDetail_20' ) end [2025-01-22 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307614', 'tblTempVendorCDR_20' ) start [2025-01-22 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307614', 'tblTempVendorCDR_20' ) end [2025-01-22 21:04:20] Production.INFO: ProcessCDR(1,14307614,1,1,2) [2025-01-22 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307614', 'tblTempUsageDetail_20' ) start [2025-01-22 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307614', 'tblTempUsageDetail_20' ) end [2025-01-22 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:04:24] Production.INFO: ==9366== Releasing lock... [2025-01-22 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:04:24] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:05:05 [end_date_ymd] => 2025-01-22 21:05:05 [RateCDR] => 1 ) [2025-01-22 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:05:05' and `end` < '2025-01-22 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:05:17] Production.INFO: count ==1925 [2025-01-22 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:05:05 - End Time 2025-01-22 21:05:05 [2025-01-22 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307619', 'tblTempUsageDetail_20' ) start [2025-01-22 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307619', 'tblTempUsageDetail_20' ) end [2025-01-22 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307619', 'tblTempVendorCDR_20' ) start [2025-01-22 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307619', 'tblTempVendorCDR_20' ) end [2025-01-22 21:05:18] Production.INFO: ProcessCDR(1,14307619,1,1,2) [2025-01-22 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307619', 'tblTempUsageDetail_20' ) start [2025-01-22 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307619', 'tblTempUsageDetail_20' ) end [2025-01-22 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:05:21] Production.INFO: ==9438== Releasing lock... [2025-01-22 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:05:21] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:06:06 [end_date_ymd] => 2025-01-22 21:06:06 [RateCDR] => 1 ) [2025-01-22 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:06:06' and `end` < '2025-01-22 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:06:19] Production.INFO: count ==1925 [2025-01-22 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:06:06 - End Time 2025-01-22 21:06:06 [2025-01-22 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307624', 'tblTempUsageDetail_20' ) start [2025-01-22 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307624', 'tblTempUsageDetail_20' ) end [2025-01-22 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307624', 'tblTempVendorCDR_20' ) start [2025-01-22 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307624', 'tblTempVendorCDR_20' ) end [2025-01-22 21:06:19] Production.INFO: ProcessCDR(1,14307624,1,1,2) [2025-01-22 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307624', 'tblTempUsageDetail_20' ) start [2025-01-22 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307624', 'tblTempUsageDetail_20' ) end [2025-01-22 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:06:22] Production.INFO: ==9511== Releasing lock... [2025-01-22 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:06:22] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:07:05 [end_date_ymd] => 2025-01-22 21:07:05 [RateCDR] => 1 ) [2025-01-22 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:07:05' and `end` < '2025-01-22 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:07:18] Production.INFO: count ==1921 [2025-01-22 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:07:05 - End Time 2025-01-22 21:07:05 [2025-01-22 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307629', 'tblTempUsageDetail_20' ) start [2025-01-22 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307629', 'tblTempUsageDetail_20' ) end [2025-01-22 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307629', 'tblTempVendorCDR_20' ) start [2025-01-22 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307629', 'tblTempVendorCDR_20' ) end [2025-01-22 21:07:18] Production.INFO: ProcessCDR(1,14307629,1,1,2) [2025-01-22 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307629', 'tblTempUsageDetail_20' ) start [2025-01-22 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307629', 'tblTempUsageDetail_20' ) end [2025-01-22 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:07:21] Production.INFO: ==9585== Releasing lock... [2025-01-22 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:07:21] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:08:06 [end_date_ymd] => 2025-01-22 21:08:06 [RateCDR] => 1 ) [2025-01-22 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:08:06' and `end` < '2025-01-22 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:08:18] Production.INFO: count ==1914 [2025-01-22 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:08:06 - End Time 2025-01-22 21:08:06 [2025-01-22 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307634', 'tblTempUsageDetail_20' ) start [2025-01-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307634', 'tblTempUsageDetail_20' ) end [2025-01-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307634', 'tblTempVendorCDR_20' ) start [2025-01-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307634', 'tblTempVendorCDR_20' ) end [2025-01-22 21:08:19] Production.INFO: ProcessCDR(1,14307634,1,1,2) [2025-01-22 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307634', 'tblTempUsageDetail_20' ) start [2025-01-22 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307634', 'tblTempUsageDetail_20' ) end [2025-01-22 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:08:22] Production.INFO: ==9663== Releasing lock... [2025-01-22 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:08:22] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:09:05 [end_date_ymd] => 2025-01-22 21:09:05 [RateCDR] => 1 ) [2025-01-22 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:09:05' and `end` < '2025-01-22 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:09:18] Production.INFO: count ==1911 [2025-01-22 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:09:05 - End Time 2025-01-22 21:09:05 [2025-01-22 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307639', 'tblTempUsageDetail_20' ) start [2025-01-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307639', 'tblTempUsageDetail_20' ) end [2025-01-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307639', 'tblTempVendorCDR_20' ) start [2025-01-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307639', 'tblTempVendorCDR_20' ) end [2025-01-22 21:09:18] Production.INFO: ProcessCDR(1,14307639,1,1,2) [2025-01-22 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307639', 'tblTempUsageDetail_20' ) start [2025-01-22 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307639', 'tblTempUsageDetail_20' ) end [2025-01-22 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:09:23] Production.INFO: ==9740== Releasing lock... [2025-01-22 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:09:23] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:10:06 [end_date_ymd] => 2025-01-22 21:10:06 [RateCDR] => 1 ) [2025-01-22 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:10:06' and `end` < '2025-01-22 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:10:19] Production.INFO: count ==1906 [2025-01-22 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:10:06 - End Time 2025-01-22 21:10:06 [2025-01-22 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307645', 'tblTempUsageDetail_20' ) start [2025-01-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307645', 'tblTempUsageDetail_20' ) end [2025-01-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307645', 'tblTempVendorCDR_20' ) start [2025-01-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307645', 'tblTempVendorCDR_20' ) end [2025-01-22 21:10:19] Production.INFO: ProcessCDR(1,14307645,1,1,2) [2025-01-22 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307645', 'tblTempUsageDetail_20' ) start [2025-01-22 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307645', 'tblTempUsageDetail_20' ) end [2025-01-22 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:10:23] Production.INFO: ==9814== Releasing lock... [2025-01-22 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:10:23] Production.INFO: 42 MB #Memory Used# [2025-01-22 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:11:04 [end_date_ymd] => 2025-01-22 21:11:04 [RateCDR] => 1 ) [2025-01-22 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:11:04' and `end` < '2025-01-22 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:11:17] Production.INFO: count ==1885 [2025-01-22 21:11:17] Production.ERROR: pbx CDR StartTime 2025-01-22 18:11:04 - End Time 2025-01-22 21:11:04 [2025-01-22 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307650', 'tblTempUsageDetail_20' ) start [2025-01-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307650', 'tblTempUsageDetail_20' ) end [2025-01-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307650', 'tblTempVendorCDR_20' ) start [2025-01-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307650', 'tblTempVendorCDR_20' ) end [2025-01-22 21:11:17] Production.INFO: ProcessCDR(1,14307650,1,1,2) [2025-01-22 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307650', 'tblTempUsageDetail_20' ) start [2025-01-22 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307650', 'tblTempUsageDetail_20' ) end [2025-01-22 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:11:21] Production.INFO: ==9891== Releasing lock... [2025-01-22 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:11:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-22 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:12:05 [end_date_ymd] => 2025-01-22 21:12:05 [RateCDR] => 1 ) [2025-01-22 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:12:05' and `end` < '2025-01-22 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:12:18] Production.INFO: count ==1880 [2025-01-22 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:12:05 - End Time 2025-01-22 21:12:05 [2025-01-22 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307655', 'tblTempUsageDetail_20' ) start [2025-01-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307655', 'tblTempUsageDetail_20' ) end [2025-01-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307655', 'tblTempVendorCDR_20' ) start [2025-01-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307655', 'tblTempVendorCDR_20' ) end [2025-01-22 21:12:18] Production.INFO: ProcessCDR(1,14307655,1,1,2) [2025-01-22 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307655', 'tblTempUsageDetail_20' ) start [2025-01-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307655', 'tblTempUsageDetail_20' ) end [2025-01-22 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:12:21] Production.INFO: ==9965== Releasing lock... [2025-01-22 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:12:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-22 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:13:04 [end_date_ymd] => 2025-01-22 21:13:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 18:13:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 21:13:17] Production.INFO: count ==1878 [2025-01-22 21:13:17] Production.ERROR: pbx CDR StartTime 2025-01-22 18:13:04 - End Time 2025-01-22 21:13:04 [2025-01-22 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307660', 'tblTempUsageDetail_20' ) start [2025-01-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307660', 'tblTempUsageDetail_20' ) end [2025-01-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307660', 'tblTempVendorCDR_20' ) start [2025-01-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307660', 'tblTempVendorCDR_20' ) end [2025-01-22 21:13:17] Production.INFO: ProcessCDR(1,14307660,1,1,2) [2025-01-22 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307660', 'tblTempUsageDetail_20' ) start [2025-01-22 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307660', 'tblTempUsageDetail_20' ) end [2025-01-22 21:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:13:20] Production.INFO: ==10038== Releasing lock... [2025-01-22 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:13:20] Production.INFO: 41.75 MB #Memory Used# [2025-01-22 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:14:06 [end_date_ymd] => 2025-01-22 21:14:06 [RateCDR] => 1 ) [2025-01-22 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:14:06' and `end` < '2025-01-22 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:14:18] Production.INFO: count ==1874 [2025-01-22 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:14:06 - End Time 2025-01-22 21:14:06 [2025-01-22 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307665', 'tblTempUsageDetail_20' ) start [2025-01-22 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307665', 'tblTempUsageDetail_20' ) end [2025-01-22 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307665', 'tblTempVendorCDR_20' ) start [2025-01-22 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307665', 'tblTempVendorCDR_20' ) end [2025-01-22 21:14:19] Production.INFO: ProcessCDR(1,14307665,1,1,2) [2025-01-22 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307665', 'tblTempUsageDetail_20' ) start [2025-01-22 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307665', 'tblTempUsageDetail_20' ) end [2025-01-22 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:14:21] Production.INFO: ==10111== Releasing lock... [2025-01-22 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:14:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-22 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:15:05 [end_date_ymd] => 2025-01-22 21:15:05 [RateCDR] => 1 ) [2025-01-22 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:15:05' and `end` < '2025-01-22 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:15:17] Production.INFO: count ==1871 [2025-01-22 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:15:05 - End Time 2025-01-22 21:15:05 [2025-01-22 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307670', 'tblTempUsageDetail_20' ) start [2025-01-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307670', 'tblTempUsageDetail_20' ) end [2025-01-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307670', 'tblTempVendorCDR_20' ) start [2025-01-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307670', 'tblTempVendorCDR_20' ) end [2025-01-22 21:15:18] Production.INFO: ProcessCDR(1,14307670,1,1,2) [2025-01-22 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307670', 'tblTempUsageDetail_20' ) start [2025-01-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307670', 'tblTempUsageDetail_20' ) end [2025-01-22 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:15:21] Production.INFO: ==10195== Releasing lock... [2025-01-22 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:15:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:16:05 [end_date_ymd] => 2025-01-22 21:16:05 [RateCDR] => 1 ) [2025-01-22 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:16:05' and `end` < '2025-01-22 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:16:20] Production.INFO: count ==1867 [2025-01-22 21:16:20] Production.ERROR: pbx CDR StartTime 2025-01-22 18:16:05 - End Time 2025-01-22 21:16:05 [2025-01-22 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307675', 'tblTempUsageDetail_20' ) start [2025-01-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307675', 'tblTempUsageDetail_20' ) end [2025-01-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307675', 'tblTempVendorCDR_20' ) start [2025-01-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307675', 'tblTempVendorCDR_20' ) end [2025-01-22 21:16:20] Production.INFO: ProcessCDR(1,14307675,1,1,2) [2025-01-22 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307675', 'tblTempUsageDetail_20' ) start [2025-01-22 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307675', 'tblTempUsageDetail_20' ) end [2025-01-22 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:16:24] Production.INFO: ==10282== Releasing lock... [2025-01-22 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:17:05 [end_date_ymd] => 2025-01-22 21:17:05 [RateCDR] => 1 ) [2025-01-22 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:17:05' and `end` < '2025-01-22 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:17:18] Production.INFO: count ==1861 [2025-01-22 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:17:05 - End Time 2025-01-22 21:17:05 [2025-01-22 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307680', 'tblTempUsageDetail_20' ) start [2025-01-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307680', 'tblTempUsageDetail_20' ) end [2025-01-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307680', 'tblTempVendorCDR_20' ) start [2025-01-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307680', 'tblTempVendorCDR_20' ) end [2025-01-22 21:17:18] Production.INFO: ProcessCDR(1,14307680,1,1,2) [2025-01-22 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307680', 'tblTempUsageDetail_20' ) start [2025-01-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307680', 'tblTempUsageDetail_20' ) end [2025-01-22 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:17:21] Production.INFO: ==10363== Releasing lock... [2025-01-22 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:17:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:18:05 [end_date_ymd] => 2025-01-22 21:18:05 [RateCDR] => 1 ) [2025-01-22 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:18:05' and `end` < '2025-01-22 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:18:19] Production.INFO: count ==1859 [2025-01-22 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:18:05 - End Time 2025-01-22 21:18:05 [2025-01-22 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307685', 'tblTempUsageDetail_20' ) start [2025-01-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307685', 'tblTempUsageDetail_20' ) end [2025-01-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307685', 'tblTempVendorCDR_20' ) start [2025-01-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307685', 'tblTempVendorCDR_20' ) end [2025-01-22 21:18:19] Production.INFO: ProcessCDR(1,14307685,1,1,2) [2025-01-22 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307685', 'tblTempUsageDetail_20' ) start [2025-01-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307685', 'tblTempUsageDetail_20' ) end [2025-01-22 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:18:22] Production.INFO: ==10447== Releasing lock... [2025-01-22 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:18:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:19:05 [end_date_ymd] => 2025-01-22 21:19:05 [RateCDR] => 1 ) [2025-01-22 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:19:05' and `end` < '2025-01-22 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:19:23] Production.INFO: count ==1849 [2025-01-22 21:19:24] Production.ERROR: pbx CDR StartTime 2025-01-22 18:19:05 - End Time 2025-01-22 21:19:05 [2025-01-22 21:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307690', 'tblTempUsageDetail_20' ) start [2025-01-22 21:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307690', 'tblTempUsageDetail_20' ) end [2025-01-22 21:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307690', 'tblTempVendorCDR_20' ) start [2025-01-22 21:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307690', 'tblTempVendorCDR_20' ) end [2025-01-22 21:19:24] Production.INFO: ProcessCDR(1,14307690,1,1,2) [2025-01-22 21:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307690', 'tblTempUsageDetail_20' ) start [2025-01-22 21:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307690', 'tblTempUsageDetail_20' ) end [2025-01-22 21:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:19:27] Production.INFO: ==10530== Releasing lock... [2025-01-22 21:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:19:27] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:20:06 [end_date_ymd] => 2025-01-22 21:20:06 [RateCDR] => 1 ) [2025-01-22 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:20:06' and `end` < '2025-01-22 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:20:22] Production.INFO: count ==1848 [2025-01-22 21:20:23] Production.ERROR: pbx CDR StartTime 2025-01-22 18:20:06 - End Time 2025-01-22 21:20:06 [2025-01-22 21:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307695', 'tblTempUsageDetail_20' ) start [2025-01-22 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307695', 'tblTempUsageDetail_20' ) end [2025-01-22 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307695', 'tblTempVendorCDR_20' ) start [2025-01-22 21:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307695', 'tblTempVendorCDR_20' ) end [2025-01-22 21:20:23] Production.INFO: ProcessCDR(1,14307695,1,1,2) [2025-01-22 21:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307695', 'tblTempUsageDetail_20' ) start [2025-01-22 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307695', 'tblTempUsageDetail_20' ) end [2025-01-22 21:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:20:26] Production.INFO: ==10655== Releasing lock... [2025-01-22 21:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:20:26] Production.INFO: 41.5 MB #Memory Used# [2025-01-22 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:21:05 [end_date_ymd] => 2025-01-22 21:21:05 [RateCDR] => 1 ) [2025-01-22 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:21:05' and `end` < '2025-01-22 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:21:20] Production.INFO: count ==1782 [2025-01-22 21:21:20] Production.ERROR: pbx CDR StartTime 2025-01-22 18:21:05 - End Time 2025-01-22 21:21:05 [2025-01-22 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307701', 'tblTempUsageDetail_20' ) start [2025-01-22 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307701', 'tblTempUsageDetail_20' ) end [2025-01-22 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307701', 'tblTempVendorCDR_20' ) start [2025-01-22 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307701', 'tblTempVendorCDR_20' ) end [2025-01-22 21:21:20] Production.INFO: ProcessCDR(1,14307701,1,1,2) [2025-01-22 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307701', 'tblTempUsageDetail_20' ) start [2025-01-22 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307701', 'tblTempUsageDetail_20' ) end [2025-01-22 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:21:23] Production.INFO: ==10741== Releasing lock... [2025-01-22 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:21:23] Production.INFO: 41 MB #Memory Used# [2025-01-22 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:22:06 [end_date_ymd] => 2025-01-22 21:22:06 [RateCDR] => 1 ) [2025-01-22 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:22:06' and `end` < '2025-01-22 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:22:19] Production.INFO: count ==1775 [2025-01-22 21:22:20] Production.ERROR: pbx CDR StartTime 2025-01-22 18:22:06 - End Time 2025-01-22 21:22:06 [2025-01-22 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307706', 'tblTempUsageDetail_20' ) start [2025-01-22 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307706', 'tblTempUsageDetail_20' ) end [2025-01-22 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307706', 'tblTempVendorCDR_20' ) start [2025-01-22 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307706', 'tblTempVendorCDR_20' ) end [2025-01-22 21:22:20] Production.INFO: ProcessCDR(1,14307706,1,1,2) [2025-01-22 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307706', 'tblTempUsageDetail_20' ) start [2025-01-22 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307706', 'tblTempUsageDetail_20' ) end [2025-01-22 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:22:23] Production.INFO: ==10826== Releasing lock... [2025-01-22 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:22:23] Production.INFO: 41 MB #Memory Used# [2025-01-22 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:23:05 [end_date_ymd] => 2025-01-22 21:23:05 [RateCDR] => 1 ) [2025-01-22 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:23:05' and `end` < '2025-01-22 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:23:18] Production.INFO: count ==1769 [2025-01-22 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:23:05 - End Time 2025-01-22 21:23:05 [2025-01-22 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307711', 'tblTempUsageDetail_20' ) start [2025-01-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307711', 'tblTempUsageDetail_20' ) end [2025-01-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307711', 'tblTempVendorCDR_20' ) start [2025-01-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307711', 'tblTempVendorCDR_20' ) end [2025-01-22 21:23:19] Production.INFO: ProcessCDR(1,14307711,1,1,2) [2025-01-22 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307711', 'tblTempUsageDetail_20' ) start [2025-01-22 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307711', 'tblTempUsageDetail_20' ) end [2025-01-22 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:23:23] Production.INFO: ==10914== Releasing lock... [2025-01-22 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:23:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:24:06 [end_date_ymd] => 2025-01-22 21:24:06 [RateCDR] => 1 ) [2025-01-22 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:24:06' and `end` < '2025-01-22 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:24:19] Production.INFO: count ==1757 [2025-01-22 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:24:06 - End Time 2025-01-22 21:24:06 [2025-01-22 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307716', 'tblTempUsageDetail_20' ) start [2025-01-22 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307716', 'tblTempUsageDetail_20' ) end [2025-01-22 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307716', 'tblTempVendorCDR_20' ) start [2025-01-22 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307716', 'tblTempVendorCDR_20' ) end [2025-01-22 21:24:19] Production.INFO: ProcessCDR(1,14307716,1,1,2) [2025-01-22 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307716', 'tblTempUsageDetail_20' ) start [2025-01-22 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307716', 'tblTempUsageDetail_20' ) end [2025-01-22 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:24:23] Production.INFO: ==10998== Releasing lock... [2025-01-22 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:24:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:25:05 [end_date_ymd] => 2025-01-22 21:25:05 [RateCDR] => 1 ) [2025-01-22 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:25:05' and `end` < '2025-01-22 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:25:18] Production.INFO: count ==1756 [2025-01-22 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:25:05 - End Time 2025-01-22 21:25:05 [2025-01-22 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307721', 'tblTempUsageDetail_20' ) start [2025-01-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307721', 'tblTempUsageDetail_20' ) end [2025-01-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307721', 'tblTempVendorCDR_20' ) start [2025-01-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307721', 'tblTempVendorCDR_20' ) end [2025-01-22 21:25:18] Production.INFO: ProcessCDR(1,14307721,1,1,2) [2025-01-22 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307721', 'tblTempUsageDetail_20' ) start [2025-01-22 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307721', 'tblTempUsageDetail_20' ) end [2025-01-22 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:25:21] Production.INFO: ==11078== Releasing lock... [2025-01-22 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:25:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:26:05 [end_date_ymd] => 2025-01-22 21:26:05 [RateCDR] => 1 ) [2025-01-22 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:26:05' and `end` < '2025-01-22 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:26:18] Production.INFO: count ==1754 [2025-01-22 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:26:05 - End Time 2025-01-22 21:26:05 [2025-01-22 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307726', 'tblTempUsageDetail_20' ) start [2025-01-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307726', 'tblTempUsageDetail_20' ) end [2025-01-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307726', 'tblTempVendorCDR_20' ) start [2025-01-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307726', 'tblTempVendorCDR_20' ) end [2025-01-22 21:26:18] Production.INFO: ProcessCDR(1,14307726,1,1,2) [2025-01-22 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307726', 'tblTempUsageDetail_20' ) start [2025-01-22 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307726', 'tblTempUsageDetail_20' ) end [2025-01-22 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:26:22] Production.INFO: ==11161== Releasing lock... [2025-01-22 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:26:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:27:05 [end_date_ymd] => 2025-01-22 21:27:05 [RateCDR] => 1 ) [2025-01-22 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:27:05' and `end` < '2025-01-22 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:27:18] Production.INFO: count ==1753 [2025-01-22 21:27:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:27:05 - End Time 2025-01-22 21:27:05 [2025-01-22 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307731', 'tblTempUsageDetail_20' ) start [2025-01-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307731', 'tblTempUsageDetail_20' ) end [2025-01-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307731', 'tblTempVendorCDR_20' ) start [2025-01-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307731', 'tblTempVendorCDR_20' ) end [2025-01-22 21:27:19] Production.INFO: ProcessCDR(1,14307731,1,1,2) [2025-01-22 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307731', 'tblTempUsageDetail_20' ) start [2025-01-22 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307731', 'tblTempUsageDetail_20' ) end [2025-01-22 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:27:22] Production.INFO: ==11250== Releasing lock... [2025-01-22 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:28:05 [end_date_ymd] => 2025-01-22 21:28:05 [RateCDR] => 1 ) [2025-01-22 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:28:05' and `end` < '2025-01-22 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:28:18] Production.INFO: count ==1748 [2025-01-22 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:28:05 - End Time 2025-01-22 21:28:05 [2025-01-22 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307736', 'tblTempUsageDetail_20' ) start [2025-01-22 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307736', 'tblTempUsageDetail_20' ) end [2025-01-22 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307736', 'tblTempVendorCDR_20' ) start [2025-01-22 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307736', 'tblTempVendorCDR_20' ) end [2025-01-22 21:28:19] Production.INFO: ProcessCDR(1,14307736,1,1,2) [2025-01-22 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307736', 'tblTempUsageDetail_20' ) start [2025-01-22 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307736', 'tblTempUsageDetail_20' ) end [2025-01-22 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:28:22] Production.INFO: ==11335== Releasing lock... [2025-01-22 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:28:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:29:05 [end_date_ymd] => 2025-01-22 21:29:05 [RateCDR] => 1 ) [2025-01-22 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:29:05' and `end` < '2025-01-22 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:29:18] Production.INFO: count ==1747 [2025-01-22 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:29:05 - End Time 2025-01-22 21:29:05 [2025-01-22 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307741', 'tblTempUsageDetail_20' ) start [2025-01-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307741', 'tblTempUsageDetail_20' ) end [2025-01-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307741', 'tblTempVendorCDR_20' ) start [2025-01-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307741', 'tblTempVendorCDR_20' ) end [2025-01-22 21:29:18] Production.INFO: ProcessCDR(1,14307741,1,1,2) [2025-01-22 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307741', 'tblTempUsageDetail_20' ) start [2025-01-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307741', 'tblTempUsageDetail_20' ) end [2025-01-22 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:29:22] Production.INFO: ==11433== Releasing lock... [2025-01-22 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:30:06 [end_date_ymd] => 2025-01-22 21:30:06 [RateCDR] => 1 ) [2025-01-22 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:30:06' and `end` < '2025-01-22 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:30:19] Production.INFO: count ==1744 [2025-01-22 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:30:06 - End Time 2025-01-22 21:30:06 [2025-01-22 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307747', 'tblTempUsageDetail_20' ) start [2025-01-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307747', 'tblTempUsageDetail_20' ) end [2025-01-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307747', 'tblTempVendorCDR_20' ) start [2025-01-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307747', 'tblTempVendorCDR_20' ) end [2025-01-22 21:30:19] Production.INFO: ProcessCDR(1,14307747,1,1,2) [2025-01-22 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307747', 'tblTempUsageDetail_20' ) start [2025-01-22 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307747', 'tblTempUsageDetail_20' ) end [2025-01-22 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:30:24] Production.INFO: ==11528== Releasing lock... [2025-01-22 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:30:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-22 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:31:05 [end_date_ymd] => 2025-01-22 21:31:05 [RateCDR] => 1 ) [2025-01-22 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:31:05' and `end` < '2025-01-22 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:31:18] Production.INFO: count ==1678 [2025-01-22 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:31:05 - End Time 2025-01-22 21:31:05 [2025-01-22 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307752', 'tblTempUsageDetail_20' ) start [2025-01-22 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307752', 'tblTempUsageDetail_20' ) end [2025-01-22 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307752', 'tblTempVendorCDR_20' ) start [2025-01-22 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307752', 'tblTempVendorCDR_20' ) end [2025-01-22 21:31:19] Production.INFO: ProcessCDR(1,14307752,1,1,2) [2025-01-22 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307752', 'tblTempUsageDetail_20' ) start [2025-01-22 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307752', 'tblTempUsageDetail_20' ) end [2025-01-22 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:31:22] Production.INFO: ==11621== Releasing lock... [2025-01-22 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:31:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-22 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:32:05 [end_date_ymd] => 2025-01-22 21:32:05 [RateCDR] => 1 ) [2025-01-22 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:32:05' and `end` < '2025-01-22 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:32:18] Production.INFO: count ==1673 [2025-01-22 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:32:05 - End Time 2025-01-22 21:32:05 [2025-01-22 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307757', 'tblTempUsageDetail_20' ) start [2025-01-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307757', 'tblTempUsageDetail_20' ) end [2025-01-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307757', 'tblTempVendorCDR_20' ) start [2025-01-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307757', 'tblTempVendorCDR_20' ) end [2025-01-22 21:32:18] Production.INFO: ProcessCDR(1,14307757,1,1,2) [2025-01-22 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307757', 'tblTempUsageDetail_20' ) start [2025-01-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307757', 'tblTempUsageDetail_20' ) end [2025-01-22 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:32:22] Production.INFO: ==11705== Releasing lock... [2025-01-22 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:32:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-22 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:33:05 [end_date_ymd] => 2025-01-22 21:33:05 [RateCDR] => 1 ) [2025-01-22 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:33:05' and `end` < '2025-01-22 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:33:18] Production.INFO: count ==1674 [2025-01-22 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:33:05 - End Time 2025-01-22 21:33:05 [2025-01-22 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307762', 'tblTempUsageDetail_20' ) start [2025-01-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307762', 'tblTempUsageDetail_20' ) end [2025-01-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307762', 'tblTempVendorCDR_20' ) start [2025-01-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307762', 'tblTempVendorCDR_20' ) end [2025-01-22 21:33:18] Production.INFO: ProcessCDR(1,14307762,1,1,2) [2025-01-22 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307762', 'tblTempUsageDetail_20' ) start [2025-01-22 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307762', 'tblTempUsageDetail_20' ) end [2025-01-22 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:33:22] Production.INFO: ==11791== Releasing lock... [2025-01-22 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-22 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:34:05 [end_date_ymd] => 2025-01-22 21:34:05 [RateCDR] => 1 ) [2025-01-22 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:34:05' and `end` < '2025-01-22 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:34:17] Production.INFO: count ==1666 [2025-01-22 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:34:05 - End Time 2025-01-22 21:34:05 [2025-01-22 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307767', 'tblTempUsageDetail_20' ) start [2025-01-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307767', 'tblTempUsageDetail_20' ) end [2025-01-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307767', 'tblTempVendorCDR_20' ) start [2025-01-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307767', 'tblTempVendorCDR_20' ) end [2025-01-22 21:34:18] Production.INFO: ProcessCDR(1,14307767,1,1,2) [2025-01-22 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307767', 'tblTempUsageDetail_20' ) start [2025-01-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307767', 'tblTempUsageDetail_20' ) end [2025-01-22 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:34:21] Production.INFO: ==11875== Releasing lock... [2025-01-22 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:34:21] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:35:05 [end_date_ymd] => 2025-01-22 21:35:05 [RateCDR] => 1 ) [2025-01-22 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:35:05' and `end` < '2025-01-22 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:35:18] Production.INFO: count ==1664 [2025-01-22 21:35:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:35:05 - End Time 2025-01-22 21:35:05 [2025-01-22 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307772', 'tblTempUsageDetail_20' ) start [2025-01-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307772', 'tblTempUsageDetail_20' ) end [2025-01-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307772', 'tblTempVendorCDR_20' ) start [2025-01-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307772', 'tblTempVendorCDR_20' ) end [2025-01-22 21:35:19] Production.INFO: ProcessCDR(1,14307772,1,1,2) [2025-01-22 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307772', 'tblTempUsageDetail_20' ) start [2025-01-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307772', 'tblTempUsageDetail_20' ) end [2025-01-22 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:35:22] Production.INFO: ==12000== Releasing lock... [2025-01-22 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:35:22] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:36:05 [end_date_ymd] => 2025-01-22 21:36:05 [RateCDR] => 1 ) [2025-01-22 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:36:05' and `end` < '2025-01-22 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:36:17] Production.INFO: count ==1662 [2025-01-22 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:36:05 - End Time 2025-01-22 21:36:05 [2025-01-22 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307777', 'tblTempUsageDetail_20' ) start [2025-01-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307777', 'tblTempUsageDetail_20' ) end [2025-01-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307777', 'tblTempVendorCDR_20' ) start [2025-01-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307777', 'tblTempVendorCDR_20' ) end [2025-01-22 21:36:18] Production.INFO: ProcessCDR(1,14307777,1,1,2) [2025-01-22 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307777', 'tblTempUsageDetail_20' ) start [2025-01-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307777', 'tblTempUsageDetail_20' ) end [2025-01-22 21:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:36:20] Production.INFO: ==12096== Releasing lock... [2025-01-22 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:36:20] Production.INFO: 40.25 MB #Memory Used# [2025-01-22 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:37:05 [end_date_ymd] => 2025-01-22 21:37:05 [RateCDR] => 1 ) [2025-01-22 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:37:05' and `end` < '2025-01-22 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:37:17] Production.INFO: count ==1659 [2025-01-22 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:37:05 - End Time 2025-01-22 21:37:05 [2025-01-22 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307782', 'tblTempUsageDetail_20' ) start [2025-01-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307782', 'tblTempUsageDetail_20' ) end [2025-01-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307782', 'tblTempVendorCDR_20' ) start [2025-01-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307782', 'tblTempVendorCDR_20' ) end [2025-01-22 21:37:18] Production.INFO: ProcessCDR(1,14307782,1,1,2) [2025-01-22 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307782', 'tblTempUsageDetail_20' ) start [2025-01-22 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307782', 'tblTempUsageDetail_20' ) end [2025-01-22 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:37:21] Production.INFO: ==12181== Releasing lock... [2025-01-22 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:37:21] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:38:05 [end_date_ymd] => 2025-01-22 21:38:05 [RateCDR] => 1 ) [2025-01-22 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:38:05' and `end` < '2025-01-22 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:38:18] Production.INFO: count ==1655 [2025-01-22 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:38:05 - End Time 2025-01-22 21:38:05 [2025-01-22 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307787', 'tblTempUsageDetail_20' ) start [2025-01-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307787', 'tblTempUsageDetail_20' ) end [2025-01-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307787', 'tblTempVendorCDR_20' ) start [2025-01-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307787', 'tblTempVendorCDR_20' ) end [2025-01-22 21:38:18] Production.INFO: ProcessCDR(1,14307787,1,1,2) [2025-01-22 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307787', 'tblTempUsageDetail_20' ) start [2025-01-22 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307787', 'tblTempUsageDetail_20' ) end [2025-01-22 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:38:22] Production.INFO: ==12274== Releasing lock... [2025-01-22 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:38:22] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:39:05 [end_date_ymd] => 2025-01-22 21:39:05 [RateCDR] => 1 ) [2025-01-22 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:39:05' and `end` < '2025-01-22 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:39:17] Production.INFO: count ==1649 [2025-01-22 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:39:05 - End Time 2025-01-22 21:39:05 [2025-01-22 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307792', 'tblTempUsageDetail_20' ) start [2025-01-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307792', 'tblTempUsageDetail_20' ) end [2025-01-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307792', 'tblTempVendorCDR_20' ) start [2025-01-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307792', 'tblTempVendorCDR_20' ) end [2025-01-22 21:39:18] Production.INFO: ProcessCDR(1,14307792,1,1,2) [2025-01-22 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307792', 'tblTempUsageDetail_20' ) start [2025-01-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307792', 'tblTempUsageDetail_20' ) end [2025-01-22 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:39:21] Production.INFO: ==12362== Releasing lock... [2025-01-22 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-22 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:40:06 [end_date_ymd] => 2025-01-22 21:40:06 [RateCDR] => 1 ) [2025-01-22 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:40:06' and `end` < '2025-01-22 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:40:18] Production.INFO: count ==1650 [2025-01-22 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:40:06 - End Time 2025-01-22 21:40:06 [2025-01-22 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307798', 'tblTempUsageDetail_20' ) start [2025-01-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307798', 'tblTempUsageDetail_20' ) end [2025-01-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307798', 'tblTempVendorCDR_20' ) start [2025-01-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307798', 'tblTempVendorCDR_20' ) end [2025-01-22 21:40:19] Production.INFO: ProcessCDR(1,14307798,1,1,2) [2025-01-22 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307798', 'tblTempUsageDetail_20' ) start [2025-01-22 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307798', 'tblTempUsageDetail_20' ) end [2025-01-22 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:40:22] Production.INFO: ==12448== Releasing lock... [2025-01-22 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:40:22] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:41:06 [end_date_ymd] => 2025-01-22 21:41:06 [RateCDR] => 1 ) [2025-01-22 21:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:41:06' and `end` < '2025-01-22 21:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:41:18] Production.INFO: count ==1614 [2025-01-22 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:41:06 - End Time 2025-01-22 21:41:06 [2025-01-22 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307803', 'tblTempUsageDetail_20' ) start [2025-01-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307803', 'tblTempUsageDetail_20' ) end [2025-01-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307803', 'tblTempVendorCDR_20' ) start [2025-01-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307803', 'tblTempVendorCDR_20' ) end [2025-01-22 21:41:19] Production.INFO: ProcessCDR(1,14307803,1,1,2) [2025-01-22 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307803', 'tblTempUsageDetail_20' ) start [2025-01-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307803', 'tblTempUsageDetail_20' ) end [2025-01-22 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:41:22] Production.INFO: ==12540== Releasing lock... [2025-01-22 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:41:22] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:42:05 [end_date_ymd] => 2025-01-22 21:42:05 [RateCDR] => 1 ) [2025-01-22 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:42:05' and `end` < '2025-01-22 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:42:18] Production.INFO: count ==1613 [2025-01-22 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:42:05 - End Time 2025-01-22 21:42:05 [2025-01-22 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307808', 'tblTempUsageDetail_20' ) start [2025-01-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307808', 'tblTempUsageDetail_20' ) end [2025-01-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307808', 'tblTempVendorCDR_20' ) start [2025-01-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307808', 'tblTempVendorCDR_20' ) end [2025-01-22 21:42:18] Production.INFO: ProcessCDR(1,14307808,1,1,2) [2025-01-22 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307808', 'tblTempUsageDetail_20' ) start [2025-01-22 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307808', 'tblTempUsageDetail_20' ) end [2025-01-22 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:42:21] Production.INFO: ==12628== Releasing lock... [2025-01-22 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:42:21] Production.INFO: 40 MB #Memory Used# [2025-01-22 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:43:06 [end_date_ymd] => 2025-01-22 21:43:06 [RateCDR] => 1 ) [2025-01-22 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:43:06' and `end` < '2025-01-22 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:43:18] Production.INFO: count ==1612 [2025-01-22 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:43:06 - End Time 2025-01-22 21:43:06 [2025-01-22 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307813', 'tblTempUsageDetail_20' ) start [2025-01-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307813', 'tblTempUsageDetail_20' ) end [2025-01-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307813', 'tblTempVendorCDR_20' ) start [2025-01-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307813', 'tblTempVendorCDR_20' ) end [2025-01-22 21:43:18] Production.INFO: ProcessCDR(1,14307813,1,1,2) [2025-01-22 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307813', 'tblTempUsageDetail_20' ) start [2025-01-22 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307813', 'tblTempUsageDetail_20' ) end [2025-01-22 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:43:22] Production.INFO: ==12732== Releasing lock... [2025-01-22 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:44:05 [end_date_ymd] => 2025-01-22 21:44:05 [RateCDR] => 1 ) [2025-01-22 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:44:05' and `end` < '2025-01-22 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:44:18] Production.INFO: count ==1607 [2025-01-22 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:44:05 - End Time 2025-01-22 21:44:05 [2025-01-22 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307818', 'tblTempUsageDetail_20' ) start [2025-01-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307818', 'tblTempUsageDetail_20' ) end [2025-01-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307818', 'tblTempVendorCDR_20' ) start [2025-01-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307818', 'tblTempVendorCDR_20' ) end [2025-01-22 21:44:18] Production.INFO: ProcessCDR(1,14307818,1,1,2) [2025-01-22 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307818', 'tblTempUsageDetail_20' ) start [2025-01-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307818', 'tblTempUsageDetail_20' ) end [2025-01-22 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:44:21] Production.INFO: ==12833== Releasing lock... [2025-01-22 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:44:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-22 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:45:05 [end_date_ymd] => 2025-01-22 21:45:05 [RateCDR] => 1 ) [2025-01-22 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:45:05' and `end` < '2025-01-22 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:45:18] Production.INFO: count ==1604 [2025-01-22 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:45:05 - End Time 2025-01-22 21:45:05 [2025-01-22 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307823', 'tblTempUsageDetail_20' ) start [2025-01-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307823', 'tblTempUsageDetail_20' ) end [2025-01-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307823', 'tblTempVendorCDR_20' ) start [2025-01-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307823', 'tblTempVendorCDR_20' ) end [2025-01-22 21:45:18] Production.INFO: ProcessCDR(1,14307823,1,1,2) [2025-01-22 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307823', 'tblTempUsageDetail_20' ) start [2025-01-22 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307823', 'tblTempUsageDetail_20' ) end [2025-01-22 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:45:21] Production.INFO: ==12929== Releasing lock... [2025-01-22 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:45:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:46:05 [end_date_ymd] => 2025-01-22 21:46:05 [RateCDR] => 1 ) [2025-01-22 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:46:05' and `end` < '2025-01-22 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:46:18] Production.INFO: count ==1594 [2025-01-22 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:46:05 - End Time 2025-01-22 21:46:05 [2025-01-22 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307828', 'tblTempUsageDetail_20' ) start [2025-01-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307828', 'tblTempUsageDetail_20' ) end [2025-01-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307828', 'tblTempVendorCDR_20' ) start [2025-01-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307828', 'tblTempVendorCDR_20' ) end [2025-01-22 21:46:18] Production.INFO: ProcessCDR(1,14307828,1,1,2) [2025-01-22 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307828', 'tblTempUsageDetail_20' ) start [2025-01-22 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307828', 'tblTempUsageDetail_20' ) end [2025-01-22 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:46:21] Production.INFO: ==13016== Releasing lock... [2025-01-22 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:46:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:47:05 [end_date_ymd] => 2025-01-22 21:47:05 [RateCDR] => 1 ) [2025-01-22 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:47:05' and `end` < '2025-01-22 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:47:18] Production.INFO: count ==1590 [2025-01-22 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:47:05 - End Time 2025-01-22 21:47:05 [2025-01-22 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307833', 'tblTempUsageDetail_20' ) start [2025-01-22 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307833', 'tblTempUsageDetail_20' ) end [2025-01-22 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307833', 'tblTempVendorCDR_20' ) start [2025-01-22 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307833', 'tblTempVendorCDR_20' ) end [2025-01-22 21:47:18] Production.INFO: ProcessCDR(1,14307833,1,1,2) [2025-01-22 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307833', 'tblTempUsageDetail_20' ) start [2025-01-22 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307833', 'tblTempUsageDetail_20' ) end [2025-01-22 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:47:21] Production.INFO: ==13117== Releasing lock... [2025-01-22 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:48:05 [end_date_ymd] => 2025-01-22 21:48:05 [RateCDR] => 1 ) [2025-01-22 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:48:05' and `end` < '2025-01-22 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:48:17] Production.INFO: count ==1586 [2025-01-22 21:48:17] Production.ERROR: pbx CDR StartTime 2025-01-22 18:48:05 - End Time 2025-01-22 21:48:05 [2025-01-22 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307838', 'tblTempUsageDetail_20' ) start [2025-01-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307838', 'tblTempUsageDetail_20' ) end [2025-01-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307838', 'tblTempVendorCDR_20' ) start [2025-01-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307838', 'tblTempVendorCDR_20' ) end [2025-01-22 21:48:17] Production.INFO: ProcessCDR(1,14307838,1,1,2) [2025-01-22 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307838', 'tblTempUsageDetail_20' ) start [2025-01-22 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307838', 'tblTempUsageDetail_20' ) end [2025-01-22 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:48:22] Production.INFO: ==13215== Releasing lock... [2025-01-22 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:49:06 [end_date_ymd] => 2025-01-22 21:49:06 [RateCDR] => 1 ) [2025-01-22 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:49:06' and `end` < '2025-01-22 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:49:18] Production.INFO: count ==1587 [2025-01-22 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:49:06 - End Time 2025-01-22 21:49:06 [2025-01-22 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307843', 'tblTempUsageDetail_20' ) start [2025-01-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307843', 'tblTempUsageDetail_20' ) end [2025-01-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307843', 'tblTempVendorCDR_20' ) start [2025-01-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307843', 'tblTempVendorCDR_20' ) end [2025-01-22 21:49:19] Production.INFO: ProcessCDR(1,14307843,1,1,2) [2025-01-22 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307843', 'tblTempUsageDetail_20' ) start [2025-01-22 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307843', 'tblTempUsageDetail_20' ) end [2025-01-22 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:49:22] Production.INFO: ==13318== Releasing lock... [2025-01-22 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:50:06 [end_date_ymd] => 2025-01-22 21:50:06 [RateCDR] => 1 ) [2025-01-22 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:50:06' and `end` < '2025-01-22 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:50:19] Production.INFO: count ==1589 [2025-01-22 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:50:06 - End Time 2025-01-22 21:50:06 [2025-01-22 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307849', 'tblTempUsageDetail_20' ) start [2025-01-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307849', 'tblTempUsageDetail_20' ) end [2025-01-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307849', 'tblTempVendorCDR_20' ) start [2025-01-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307849', 'tblTempVendorCDR_20' ) end [2025-01-22 21:50:19] Production.INFO: ProcessCDR(1,14307849,1,1,2) [2025-01-22 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307849', 'tblTempUsageDetail_20' ) start [2025-01-22 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307849', 'tblTempUsageDetail_20' ) end [2025-01-22 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:50:23] Production.INFO: ==13400== Releasing lock... [2025-01-22 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-22 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:51:05 [end_date_ymd] => 2025-01-22 21:51:05 [RateCDR] => 1 ) [2025-01-22 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:51:05' and `end` < '2025-01-22 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:51:18] Production.INFO: count ==1527 [2025-01-22 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:51:05 - End Time 2025-01-22 21:51:05 [2025-01-22 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307854', 'tblTempUsageDetail_20' ) start [2025-01-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307854', 'tblTempUsageDetail_20' ) end [2025-01-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307854', 'tblTempVendorCDR_20' ) start [2025-01-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307854', 'tblTempVendorCDR_20' ) end [2025-01-22 21:51:18] Production.INFO: ProcessCDR(1,14307854,1,1,2) [2025-01-22 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307854', 'tblTempUsageDetail_20' ) start [2025-01-22 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307854', 'tblTempUsageDetail_20' ) end [2025-01-22 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:51:22] Production.INFO: ==13518== Releasing lock... [2025-01-22 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:51:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:52:05 [end_date_ymd] => 2025-01-22 21:52:05 [RateCDR] => 1 ) [2025-01-22 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:52:05' and `end` < '2025-01-22 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:52:17] Production.INFO: count ==1519 [2025-01-22 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:52:05 - End Time 2025-01-22 21:52:05 [2025-01-22 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307859', 'tblTempUsageDetail_20' ) start [2025-01-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307859', 'tblTempUsageDetail_20' ) end [2025-01-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307859', 'tblTempVendorCDR_20' ) start [2025-01-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307859', 'tblTempVendorCDR_20' ) end [2025-01-22 21:52:18] Production.INFO: ProcessCDR(1,14307859,1,1,2) [2025-01-22 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307859', 'tblTempUsageDetail_20' ) start [2025-01-22 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307859', 'tblTempUsageDetail_20' ) end [2025-01-22 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:52:21] Production.INFO: ==13596== Releasing lock... [2025-01-22 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:52:21] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:53:06 [end_date_ymd] => 2025-01-22 21:53:06 [RateCDR] => 1 ) [2025-01-22 21:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:53:06' and `end` < '2025-01-22 21:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:53:18] Production.INFO: count ==1519 [2025-01-22 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:53:06 - End Time 2025-01-22 21:53:06 [2025-01-22 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307864', 'tblTempUsageDetail_20' ) start [2025-01-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307864', 'tblTempUsageDetail_20' ) end [2025-01-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307864', 'tblTempVendorCDR_20' ) start [2025-01-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307864', 'tblTempVendorCDR_20' ) end [2025-01-22 21:53:19] Production.INFO: ProcessCDR(1,14307864,1,1,2) [2025-01-22 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307864', 'tblTempUsageDetail_20' ) start [2025-01-22 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307864', 'tblTempUsageDetail_20' ) end [2025-01-22 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:53:22] Production.INFO: ==13675== Releasing lock... [2025-01-22 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:53:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:54:05 [end_date_ymd] => 2025-01-22 21:54:05 [RateCDR] => 1 ) [2025-01-22 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:54:05' and `end` < '2025-01-22 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:54:18] Production.INFO: count ==1518 [2025-01-22 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:54:05 - End Time 2025-01-22 21:54:05 [2025-01-22 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307869', 'tblTempUsageDetail_20' ) start [2025-01-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307869', 'tblTempUsageDetail_20' ) end [2025-01-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307869', 'tblTempVendorCDR_20' ) start [2025-01-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307869', 'tblTempVendorCDR_20' ) end [2025-01-22 21:54:18] Production.INFO: ProcessCDR(1,14307869,1,1,2) [2025-01-22 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307869', 'tblTempUsageDetail_20' ) start [2025-01-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307869', 'tblTempUsageDetail_20' ) end [2025-01-22 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:54:22] Production.INFO: ==13755== Releasing lock... [2025-01-22 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:54:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:55:04 [end_date_ymd] => 2025-01-22 21:55:04 [RateCDR] => 1 ) [2025-01-22 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:55:04' and `end` < '2025-01-22 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:55:17] Production.INFO: count ==1521 [2025-01-22 21:55:17] Production.ERROR: pbx CDR StartTime 2025-01-22 18:55:04 - End Time 2025-01-22 21:55:04 [2025-01-22 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307874', 'tblTempUsageDetail_20' ) start [2025-01-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307874', 'tblTempUsageDetail_20' ) end [2025-01-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307874', 'tblTempVendorCDR_20' ) start [2025-01-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307874', 'tblTempVendorCDR_20' ) end [2025-01-22 21:55:17] Production.INFO: ProcessCDR(1,14307874,1,1,2) [2025-01-22 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307874', 'tblTempUsageDetail_20' ) start [2025-01-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307874', 'tblTempUsageDetail_20' ) end [2025-01-22 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:55:20] Production.INFO: ==13832== Releasing lock... [2025-01-22 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:55:20] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:56:05 [end_date_ymd] => 2025-01-22 21:56:05 [RateCDR] => 1 ) [2025-01-22 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:56:05' and `end` < '2025-01-22 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:56:18] Production.INFO: count ==1527 [2025-01-22 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:56:05 - End Time 2025-01-22 21:56:05 [2025-01-22 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307879', 'tblTempUsageDetail_20' ) start [2025-01-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307879', 'tblTempUsageDetail_20' ) end [2025-01-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307879', 'tblTempVendorCDR_20' ) start [2025-01-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307879', 'tblTempVendorCDR_20' ) end [2025-01-22 21:56:18] Production.INFO: ProcessCDR(1,14307879,1,1,2) [2025-01-22 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307879', 'tblTempUsageDetail_20' ) start [2025-01-22 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307879', 'tblTempUsageDetail_20' ) end [2025-01-22 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:56:21] Production.INFO: ==13907== Releasing lock... [2025-01-22 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:56:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-22 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:57:06 [end_date_ymd] => 2025-01-22 21:57:06 [RateCDR] => 1 ) [2025-01-22 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:57:06' and `end` < '2025-01-22 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:57:18] Production.INFO: count ==1529 [2025-01-22 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:57:06 - End Time 2025-01-22 21:57:06 [2025-01-22 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307884', 'tblTempUsageDetail_20' ) start [2025-01-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307884', 'tblTempUsageDetail_20' ) end [2025-01-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307884', 'tblTempVendorCDR_20' ) start [2025-01-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307884', 'tblTempVendorCDR_20' ) end [2025-01-22 21:57:19] Production.INFO: ProcessCDR(1,14307884,1,1,2) [2025-01-22 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307884', 'tblTempUsageDetail_20' ) start [2025-01-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307884', 'tblTempUsageDetail_20' ) end [2025-01-22 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:57:22] Production.INFO: ==13985== Releasing lock... [2025-01-22 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:57:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:58:05 [end_date_ymd] => 2025-01-22 21:58:05 [RateCDR] => 1 ) [2025-01-22 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:58:05' and `end` < '2025-01-22 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:58:18] Production.INFO: count ==1524 [2025-01-22 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 18:58:05 - End Time 2025-01-22 21:58:05 [2025-01-22 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307889', 'tblTempUsageDetail_20' ) start [2025-01-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307889', 'tblTempUsageDetail_20' ) end [2025-01-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307889', 'tblTempVendorCDR_20' ) start [2025-01-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307889', 'tblTempVendorCDR_20' ) end [2025-01-22 21:58:18] Production.INFO: ProcessCDR(1,14307889,1,1,2) [2025-01-22 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307889', 'tblTempUsageDetail_20' ) start [2025-01-22 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307889', 'tblTempUsageDetail_20' ) end [2025-01-22 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:58:21] Production.INFO: ==14059== Releasing lock... [2025-01-22 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:58:21] Production.INFO: 39 MB #Memory Used# [2025-01-22 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 18:59:05 [end_date_ymd] => 2025-01-22 21:59:05 [RateCDR] => 1 ) [2025-01-22 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 18:59:05' and `end` < '2025-01-22 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 21:59:18] Production.INFO: count ==1520 [2025-01-22 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-22 18:59:05 - End Time 2025-01-22 21:59:05 [2025-01-22 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307894', 'tblTempUsageDetail_20' ) start [2025-01-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307894', 'tblTempUsageDetail_20' ) end [2025-01-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307894', 'tblTempVendorCDR_20' ) start [2025-01-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307894', 'tblTempVendorCDR_20' ) end [2025-01-22 21:59:19] Production.INFO: ProcessCDR(1,14307894,1,1,2) [2025-01-22 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307894', 'tblTempUsageDetail_20' ) start [2025-01-22 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307894', 'tblTempUsageDetail_20' ) end [2025-01-22 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 21:59:22] Production.INFO: ==14135== Releasing lock... [2025-01-22 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 21:59:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:00:06 [end_date_ymd] => 2025-01-22 22:00:06 [RateCDR] => 1 ) [2025-01-22 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:00:06' and `end` < '2025-01-22 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:00:19] Production.INFO: count ==1514 [2025-01-22 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:00:06 - End Time 2025-01-22 22:00:06 [2025-01-22 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307900', 'tblTempUsageDetail_20' ) start [2025-01-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307900', 'tblTempUsageDetail_20' ) end [2025-01-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307900', 'tblTempVendorCDR_20' ) start [2025-01-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307900', 'tblTempVendorCDR_20' ) end [2025-01-22 22:00:19] Production.INFO: ProcessCDR(1,14307900,1,1,2) [2025-01-22 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307900', 'tblTempUsageDetail_20' ) start [2025-01-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307900', 'tblTempUsageDetail_20' ) end [2025-01-22 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:00:22] Production.INFO: ==14215== Releasing lock... [2025-01-22 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:00:22] Production.INFO: 39 MB #Memory Used# [2025-01-22 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:01:06 [end_date_ymd] => 2025-01-22 22:01:06 [RateCDR] => 1 ) [2025-01-22 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:01:06' and `end` < '2025-01-22 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:01:18] Production.INFO: count ==1441 [2025-01-22 22:01:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:01:06 - End Time 2025-01-22 22:01:06 [2025-01-22 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307905', 'tblTempUsageDetail_20' ) start [2025-01-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307905', 'tblTempUsageDetail_20' ) end [2025-01-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307905', 'tblTempVendorCDR_20' ) start [2025-01-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307905', 'tblTempVendorCDR_20' ) end [2025-01-22 22:01:19] Production.INFO: ProcessCDR(1,14307905,1,1,2) [2025-01-22 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307905', 'tblTempUsageDetail_20' ) start [2025-01-22 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307905', 'tblTempUsageDetail_20' ) end [2025-01-22 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:01:22] Production.INFO: ==14305== Releasing lock... [2025-01-22 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:02:05 [end_date_ymd] => 2025-01-22 22:02:05 [RateCDR] => 1 ) [2025-01-22 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:02:05' and `end` < '2025-01-22 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:02:17] Production.INFO: count ==1438 [2025-01-22 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:02:05 - End Time 2025-01-22 22:02:05 [2025-01-22 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307910', 'tblTempUsageDetail_20' ) start [2025-01-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307910', 'tblTempUsageDetail_20' ) end [2025-01-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307910', 'tblTempVendorCDR_20' ) start [2025-01-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307910', 'tblTempVendorCDR_20' ) end [2025-01-22 22:02:18] Production.INFO: ProcessCDR(1,14307910,1,1,2) [2025-01-22 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307910', 'tblTempUsageDetail_20' ) start [2025-01-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307910', 'tblTempUsageDetail_20' ) end [2025-01-22 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:02:21] Production.INFO: ==14379== Releasing lock... [2025-01-22 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:02:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:03:05 [end_date_ymd] => 2025-01-22 22:03:05 [RateCDR] => 1 ) [2025-01-22 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:03:05' and `end` < '2025-01-22 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:03:18] Production.INFO: count ==1439 [2025-01-22 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:03:05 - End Time 2025-01-22 22:03:05 [2025-01-22 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307912', 'tblTempUsageDetail_20' ) start [2025-01-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307912', 'tblTempUsageDetail_20' ) end [2025-01-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307912', 'tblTempVendorCDR_20' ) start [2025-01-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307912', 'tblTempVendorCDR_20' ) end [2025-01-22 22:03:18] Production.INFO: ProcessCDR(1,14307912,1,1,2) [2025-01-22 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307912', 'tblTempUsageDetail_20' ) start [2025-01-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307912', 'tblTempUsageDetail_20' ) end [2025-01-22 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:03:23] Production.INFO: ==14456== Releasing lock... [2025-01-22 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:04:05 [end_date_ymd] => 2025-01-22 22:04:05 [RateCDR] => 1 ) [2025-01-22 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:04:05' and `end` < '2025-01-22 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:04:18] Production.INFO: count ==1442 [2025-01-22 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:04:05 - End Time 2025-01-22 22:04:05 [2025-01-22 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307920', 'tblTempUsageDetail_20' ) start [2025-01-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307920', 'tblTempUsageDetail_20' ) end [2025-01-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307920', 'tblTempVendorCDR_20' ) start [2025-01-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307920', 'tblTempVendorCDR_20' ) end [2025-01-22 22:04:18] Production.INFO: ProcessCDR(1,14307920,1,1,2) [2025-01-22 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307920', 'tblTempUsageDetail_20' ) start [2025-01-22 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307920', 'tblTempUsageDetail_20' ) end [2025-01-22 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:04:23] Production.INFO: ==14532== Releasing lock... [2025-01-22 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:04:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:05:05 [end_date_ymd] => 2025-01-22 22:05:05 [RateCDR] => 1 ) [2025-01-22 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:05:05' and `end` < '2025-01-22 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:05:18] Production.INFO: count ==1441 [2025-01-22 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:05:05 - End Time 2025-01-22 22:05:05 [2025-01-22 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307925', 'tblTempUsageDetail_20' ) start [2025-01-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307925', 'tblTempUsageDetail_20' ) end [2025-01-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307925', 'tblTempVendorCDR_20' ) start [2025-01-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307925', 'tblTempVendorCDR_20' ) end [2025-01-22 22:05:18] Production.INFO: ProcessCDR(1,14307925,1,1,2) [2025-01-22 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307925', 'tblTempUsageDetail_20' ) start [2025-01-22 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307925', 'tblTempUsageDetail_20' ) end [2025-01-22 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:05:23] Production.INFO: ==14605== Releasing lock... [2025-01-22 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:06:05 [end_date_ymd] => 2025-01-22 22:06:05 [RateCDR] => 1 ) [2025-01-22 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:06:05' and `end` < '2025-01-22 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:06:18] Production.INFO: count ==1444 [2025-01-22 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:06:05 - End Time 2025-01-22 22:06:05 [2025-01-22 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307930', 'tblTempUsageDetail_20' ) start [2025-01-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307930', 'tblTempUsageDetail_20' ) end [2025-01-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307930', 'tblTempVendorCDR_20' ) start [2025-01-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307930', 'tblTempVendorCDR_20' ) end [2025-01-22 22:06:18] Production.INFO: ProcessCDR(1,14307930,1,1,2) [2025-01-22 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307930', 'tblTempUsageDetail_20' ) start [2025-01-22 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307930', 'tblTempUsageDetail_20' ) end [2025-01-22 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:06:23] Production.INFO: ==14724== Releasing lock... [2025-01-22 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:07:05 [end_date_ymd] => 2025-01-22 22:07:05 [RateCDR] => 1 ) [2025-01-22 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:07:05' and `end` < '2025-01-22 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:07:18] Production.INFO: count ==1445 [2025-01-22 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:07:05 - End Time 2025-01-22 22:07:05 [2025-01-22 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307935', 'tblTempUsageDetail_20' ) start [2025-01-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307935', 'tblTempUsageDetail_20' ) end [2025-01-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307935', 'tblTempVendorCDR_20' ) start [2025-01-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307935', 'tblTempVendorCDR_20' ) end [2025-01-22 22:07:18] Production.INFO: ProcessCDR(1,14307935,1,1,2) [2025-01-22 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307935', 'tblTempUsageDetail_20' ) start [2025-01-22 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307935', 'tblTempUsageDetail_20' ) end [2025-01-22 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:07:23] Production.INFO: ==14799== Releasing lock... [2025-01-22 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:07:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:08:04 [end_date_ymd] => 2025-01-22 22:08:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 19:08:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 22:08:17] Production.INFO: count ==1443 [2025-01-22 22:08:17] Production.ERROR: pbx CDR StartTime 2025-01-22 19:08:04 - End Time 2025-01-22 22:08:04 [2025-01-22 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307940', 'tblTempUsageDetail_20' ) start [2025-01-22 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307940', 'tblTempUsageDetail_20' ) end [2025-01-22 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307940', 'tblTempVendorCDR_20' ) start [2025-01-22 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307940', 'tblTempVendorCDR_20' ) end [2025-01-22 22:08:18] Production.INFO: ProcessCDR(1,14307940,1,1,2) [2025-01-22 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307940', 'tblTempUsageDetail_20' ) start [2025-01-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307940', 'tblTempUsageDetail_20' ) end [2025-01-22 22:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:08:21] Production.INFO: ==14879== Releasing lock... [2025-01-22 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-22 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:09:05 [end_date_ymd] => 2025-01-22 22:09:05 [RateCDR] => 1 ) [2025-01-22 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:09:05' and `end` < '2025-01-22 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:09:18] Production.INFO: count ==1435 [2025-01-22 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:09:05 - End Time 2025-01-22 22:09:05 [2025-01-22 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307945', 'tblTempUsageDetail_20' ) start [2025-01-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307945', 'tblTempUsageDetail_20' ) end [2025-01-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307945', 'tblTempVendorCDR_20' ) start [2025-01-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307945', 'tblTempVendorCDR_20' ) end [2025-01-22 22:09:18] Production.INFO: ProcessCDR(1,14307945,1,1,2) [2025-01-22 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307945', 'tblTempUsageDetail_20' ) start [2025-01-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307945', 'tblTempUsageDetail_20' ) end [2025-01-22 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:09:21] Production.INFO: ==14958== Releasing lock... [2025-01-22 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:09:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:10:05 [end_date_ymd] => 2025-01-22 22:10:05 [RateCDR] => 1 ) [2025-01-22 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:10:05' and `end` < '2025-01-22 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:10:18] Production.INFO: count ==1434 [2025-01-22 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:10:05 - End Time 2025-01-22 22:10:05 [2025-01-22 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307951', 'tblTempUsageDetail_20' ) start [2025-01-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307951', 'tblTempUsageDetail_20' ) end [2025-01-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307951', 'tblTempVendorCDR_20' ) start [2025-01-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307951', 'tblTempVendorCDR_20' ) end [2025-01-22 22:10:18] Production.INFO: ProcessCDR(1,14307951,1,1,2) [2025-01-22 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307951', 'tblTempUsageDetail_20' ) start [2025-01-22 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307951', 'tblTempUsageDetail_20' ) end [2025-01-22 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:10:21] Production.INFO: ==15040== Releasing lock... [2025-01-22 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:10:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:11:05 [end_date_ymd] => 2025-01-22 22:11:05 [RateCDR] => 1 ) [2025-01-22 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:11:05' and `end` < '2025-01-22 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:11:18] Production.INFO: count ==1406 [2025-01-22 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:11:05 - End Time 2025-01-22 22:11:05 [2025-01-22 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307956', 'tblTempUsageDetail_20' ) start [2025-01-22 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307956', 'tblTempUsageDetail_20' ) end [2025-01-22 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307956', 'tblTempVendorCDR_20' ) start [2025-01-22 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307956', 'tblTempVendorCDR_20' ) end [2025-01-22 22:11:19] Production.INFO: ProcessCDR(1,14307956,1,1,2) [2025-01-22 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307956', 'tblTempUsageDetail_20' ) start [2025-01-22 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307956', 'tblTempUsageDetail_20' ) end [2025-01-22 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:11:22] Production.INFO: ==15116== Releasing lock... [2025-01-22 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:12:05 [end_date_ymd] => 2025-01-22 22:12:05 [RateCDR] => 1 ) [2025-01-22 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:12:05' and `end` < '2025-01-22 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:12:18] Production.INFO: count ==1405 [2025-01-22 22:12:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:12:05 - End Time 2025-01-22 22:12:05 [2025-01-22 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307961', 'tblTempUsageDetail_20' ) start [2025-01-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307961', 'tblTempUsageDetail_20' ) end [2025-01-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307961', 'tblTempVendorCDR_20' ) start [2025-01-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307961', 'tblTempVendorCDR_20' ) end [2025-01-22 22:12:19] Production.INFO: ProcessCDR(1,14307961,1,1,2) [2025-01-22 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307961', 'tblTempUsageDetail_20' ) start [2025-01-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307961', 'tblTempUsageDetail_20' ) end [2025-01-22 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:12:22] Production.INFO: ==15193== Releasing lock... [2025-01-22 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-22 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:13:05 [end_date_ymd] => 2025-01-22 22:13:05 [RateCDR] => 1 ) [2025-01-22 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:13:05' and `end` < '2025-01-22 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:13:18] Production.INFO: count ==1401 [2025-01-22 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:13:05 - End Time 2025-01-22 22:13:05 [2025-01-22 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307966', 'tblTempUsageDetail_20' ) start [2025-01-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307966', 'tblTempUsageDetail_20' ) end [2025-01-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307966', 'tblTempVendorCDR_20' ) start [2025-01-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307966', 'tblTempVendorCDR_20' ) end [2025-01-22 22:13:18] Production.INFO: ProcessCDR(1,14307966,1,1,2) [2025-01-22 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307966', 'tblTempUsageDetail_20' ) start [2025-01-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307966', 'tblTempUsageDetail_20' ) end [2025-01-22 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:13:21] Production.INFO: ==15266== Releasing lock... [2025-01-22 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:13:21] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:14:05 [end_date_ymd] => 2025-01-22 22:14:05 [RateCDR] => 1 ) [2025-01-22 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:14:05' and `end` < '2025-01-22 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:14:18] Production.INFO: count ==1399 [2025-01-22 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:14:05 - End Time 2025-01-22 22:14:05 [2025-01-22 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307971', 'tblTempUsageDetail_20' ) start [2025-01-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307971', 'tblTempUsageDetail_20' ) end [2025-01-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307971', 'tblTempVendorCDR_20' ) start [2025-01-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307971', 'tblTempVendorCDR_20' ) end [2025-01-22 22:14:18] Production.INFO: ProcessCDR(1,14307971,1,1,2) [2025-01-22 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307971', 'tblTempUsageDetail_20' ) start [2025-01-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307971', 'tblTempUsageDetail_20' ) end [2025-01-22 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:14:21] Production.INFO: ==15337== Releasing lock... [2025-01-22 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:14:21] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:15:05 [end_date_ymd] => 2025-01-22 22:15:05 [RateCDR] => 1 ) [2025-01-22 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:15:05' and `end` < '2025-01-22 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:15:17] Production.INFO: count ==1399 [2025-01-22 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:15:05 - End Time 2025-01-22 22:15:05 [2025-01-22 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307976', 'tblTempUsageDetail_20' ) start [2025-01-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307976', 'tblTempUsageDetail_20' ) end [2025-01-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307976', 'tblTempVendorCDR_20' ) start [2025-01-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307976', 'tblTempVendorCDR_20' ) end [2025-01-22 22:15:18] Production.INFO: ProcessCDR(1,14307976,1,1,2) [2025-01-22 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307976', 'tblTempUsageDetail_20' ) start [2025-01-22 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307976', 'tblTempUsageDetail_20' ) end [2025-01-22 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:15:21] Production.INFO: ==15409== Releasing lock... [2025-01-22 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:15:21] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:16:05 [end_date_ymd] => 2025-01-22 22:16:05 [RateCDR] => 1 ) [2025-01-22 22:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:16:05' and `end` < '2025-01-22 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:16:18] Production.INFO: count ==1400 [2025-01-22 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:16:05 - End Time 2025-01-22 22:16:05 [2025-01-22 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307981', 'tblTempUsageDetail_20' ) start [2025-01-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307981', 'tblTempUsageDetail_20' ) end [2025-01-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307981', 'tblTempVendorCDR_20' ) start [2025-01-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307981', 'tblTempVendorCDR_20' ) end [2025-01-22 22:16:18] Production.INFO: ProcessCDR(1,14307981,1,1,2) [2025-01-22 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307981', 'tblTempUsageDetail_20' ) start [2025-01-22 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307981', 'tblTempUsageDetail_20' ) end [2025-01-22 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:16:23] Production.INFO: ==15488== Releasing lock... [2025-01-22 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:16:23] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:17:05 [end_date_ymd] => 2025-01-22 22:17:05 [RateCDR] => 1 ) [2025-01-22 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:17:05' and `end` < '2025-01-22 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:17:18] Production.INFO: count ==1401 [2025-01-22 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:17:05 - End Time 2025-01-22 22:17:05 [2025-01-22 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307986', 'tblTempUsageDetail_20' ) start [2025-01-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307986', 'tblTempUsageDetail_20' ) end [2025-01-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307986', 'tblTempVendorCDR_20' ) start [2025-01-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307986', 'tblTempVendorCDR_20' ) end [2025-01-22 22:17:18] Production.INFO: ProcessCDR(1,14307986,1,1,2) [2025-01-22 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307986', 'tblTempUsageDetail_20' ) start [2025-01-22 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307986', 'tblTempUsageDetail_20' ) end [2025-01-22 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:17:22] Production.INFO: ==15574== Releasing lock... [2025-01-22 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:17:22] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:18:04 [end_date_ymd] => 2025-01-22 22:18:04 [RateCDR] => 1 ) [2025-01-22 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:18:04' and `end` < '2025-01-22 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:18:17] Production.INFO: count ==1402 [2025-01-22 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-22 19:18:04 - End Time 2025-01-22 22:18:04 [2025-01-22 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307991', 'tblTempUsageDetail_20' ) start [2025-01-22 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307991', 'tblTempUsageDetail_20' ) end [2025-01-22 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307991', 'tblTempVendorCDR_20' ) start [2025-01-22 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307991', 'tblTempVendorCDR_20' ) end [2025-01-22 22:18:17] Production.INFO: ProcessCDR(1,14307991,1,1,2) [2025-01-22 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307991', 'tblTempUsageDetail_20' ) start [2025-01-22 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307991', 'tblTempUsageDetail_20' ) end [2025-01-22 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:18:20] Production.INFO: ==15653== Releasing lock... [2025-01-22 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:18:20] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:19:05 [end_date_ymd] => 2025-01-22 22:19:05 [RateCDR] => 1 ) [2025-01-22 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:19:05' and `end` < '2025-01-22 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:19:19] Production.INFO: count ==1400 [2025-01-22 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:19:05 - End Time 2025-01-22 22:19:05 [2025-01-22 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307996', 'tblTempUsageDetail_20' ) start [2025-01-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14307996', 'tblTempUsageDetail_20' ) end [2025-01-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307996', 'tblTempVendorCDR_20' ) start [2025-01-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14307996', 'tblTempVendorCDR_20' ) end [2025-01-22 22:19:19] Production.INFO: ProcessCDR(1,14307996,1,1,2) [2025-01-22 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14307996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14307996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14307996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14307996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307996', 'tblTempUsageDetail_20' ) start [2025-01-22 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14307996', 'tblTempUsageDetail_20' ) end [2025-01-22 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:19:22] Production.INFO: ==15739== Releasing lock... [2025-01-22 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:19:22] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:20:06 [end_date_ymd] => 2025-01-22 22:20:06 [RateCDR] => 1 ) [2025-01-22 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:20:06' and `end` < '2025-01-22 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:20:18] Production.INFO: count ==1402 [2025-01-22 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:20:06 - End Time 2025-01-22 22:20:06 [2025-01-22 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308002', 'tblTempUsageDetail_20' ) start [2025-01-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308002', 'tblTempUsageDetail_20' ) end [2025-01-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308002', 'tblTempVendorCDR_20' ) start [2025-01-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308002', 'tblTempVendorCDR_20' ) end [2025-01-22 22:20:19] Production.INFO: ProcessCDR(1,14308002,1,1,2) [2025-01-22 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308002', 'tblTempUsageDetail_20' ) start [2025-01-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308002', 'tblTempUsageDetail_20' ) end [2025-01-22 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:20:22] Production.INFO: ==15825== Releasing lock... [2025-01-22 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:20:22] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:21:05 [end_date_ymd] => 2025-01-22 22:21:05 [RateCDR] => 1 ) [2025-01-22 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:21:05' and `end` < '2025-01-22 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:21:18] Production.INFO: count ==1390 [2025-01-22 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:21:05 - End Time 2025-01-22 22:21:05 [2025-01-22 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308007', 'tblTempUsageDetail_20' ) start [2025-01-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308007', 'tblTempUsageDetail_20' ) end [2025-01-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308007', 'tblTempVendorCDR_20' ) start [2025-01-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308007', 'tblTempVendorCDR_20' ) end [2025-01-22 22:21:18] Production.INFO: ProcessCDR(1,14308007,1,1,2) [2025-01-22 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308007', 'tblTempUsageDetail_20' ) start [2025-01-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308007', 'tblTempUsageDetail_20' ) end [2025-01-22 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:21:21] Production.INFO: ==15947== Releasing lock... [2025-01-22 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:21:21] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:22:06 [end_date_ymd] => 2025-01-22 22:22:06 [RateCDR] => 1 ) [2025-01-22 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:22:06' and `end` < '2025-01-22 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:22:19] Production.INFO: count ==1388 [2025-01-22 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:22:06 - End Time 2025-01-22 22:22:06 [2025-01-22 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308012', 'tblTempUsageDetail_20' ) start [2025-01-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308012', 'tblTempUsageDetail_20' ) end [2025-01-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308012', 'tblTempVendorCDR_20' ) start [2025-01-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308012', 'tblTempVendorCDR_20' ) end [2025-01-22 22:22:19] Production.INFO: ProcessCDR(1,14308012,1,1,2) [2025-01-22 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308012', 'tblTempUsageDetail_20' ) start [2025-01-22 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308012', 'tblTempUsageDetail_20' ) end [2025-01-22 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:22:22] Production.INFO: ==16031== Releasing lock... [2025-01-22 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:22:22] Production.INFO: 38 MB #Memory Used# [2025-01-22 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:23:05 [end_date_ymd] => 2025-01-22 22:23:05 [RateCDR] => 1 ) [2025-01-22 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:23:05' and `end` < '2025-01-22 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:23:18] Production.INFO: count ==1373 [2025-01-22 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:23:05 - End Time 2025-01-22 22:23:05 [2025-01-22 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308017', 'tblTempUsageDetail_20' ) start [2025-01-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308017', 'tblTempUsageDetail_20' ) end [2025-01-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308017', 'tblTempVendorCDR_20' ) start [2025-01-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308017', 'tblTempVendorCDR_20' ) end [2025-01-22 22:23:18] Production.INFO: ProcessCDR(1,14308017,1,1,2) [2025-01-22 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308017', 'tblTempUsageDetail_20' ) start [2025-01-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308017', 'tblTempUsageDetail_20' ) end [2025-01-22 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:23:21] Production.INFO: ==16109== Releasing lock... [2025-01-22 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:23:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:24:06 [end_date_ymd] => 2025-01-22 22:24:06 [RateCDR] => 1 ) [2025-01-22 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:24:06' and `end` < '2025-01-22 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:24:19] Production.INFO: count ==1369 [2025-01-22 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:24:06 - End Time 2025-01-22 22:24:06 [2025-01-22 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308022', 'tblTempUsageDetail_20' ) start [2025-01-22 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308022', 'tblTempUsageDetail_20' ) end [2025-01-22 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308022', 'tblTempVendorCDR_20' ) start [2025-01-22 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308022', 'tblTempVendorCDR_20' ) end [2025-01-22 22:24:19] Production.INFO: ProcessCDR(1,14308022,1,1,2) [2025-01-22 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308022', 'tblTempUsageDetail_20' ) start [2025-01-22 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308022', 'tblTempUsageDetail_20' ) end [2025-01-22 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:24:23] Production.INFO: ==16189== Releasing lock... [2025-01-22 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:24:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:25:05 [end_date_ymd] => 2025-01-22 22:25:05 [RateCDR] => 1 ) [2025-01-22 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:25:05' and `end` < '2025-01-22 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:25:17] Production.INFO: count ==1368 [2025-01-22 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:25:05 - End Time 2025-01-22 22:25:05 [2025-01-22 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308027', 'tblTempUsageDetail_20' ) start [2025-01-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308027', 'tblTempUsageDetail_20' ) end [2025-01-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308027', 'tblTempVendorCDR_20' ) start [2025-01-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308027', 'tblTempVendorCDR_20' ) end [2025-01-22 22:25:18] Production.INFO: ProcessCDR(1,14308027,1,1,2) [2025-01-22 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308027', 'tblTempUsageDetail_20' ) start [2025-01-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308027', 'tblTempUsageDetail_20' ) end [2025-01-22 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:25:21] Production.INFO: ==16261== Releasing lock... [2025-01-22 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:26:05 [end_date_ymd] => 2025-01-22 22:26:05 [RateCDR] => 1 ) [2025-01-22 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:26:05' and `end` < '2025-01-22 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:26:19] Production.INFO: count ==1371 [2025-01-22 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:26:05 - End Time 2025-01-22 22:26:05 [2025-01-22 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308032', 'tblTempUsageDetail_20' ) start [2025-01-22 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308032', 'tblTempUsageDetail_20' ) end [2025-01-22 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308032', 'tblTempVendorCDR_20' ) start [2025-01-22 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308032', 'tblTempVendorCDR_20' ) end [2025-01-22 22:26:19] Production.INFO: ProcessCDR(1,14308032,1,1,2) [2025-01-22 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308032', 'tblTempUsageDetail_20' ) start [2025-01-22 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308032', 'tblTempUsageDetail_20' ) end [2025-01-22 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:26:22] Production.INFO: ==16330== Releasing lock... [2025-01-22 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:27:04 [end_date_ymd] => 2025-01-22 22:27:04 [RateCDR] => 1 ) [2025-01-22 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:27:04' and `end` < '2025-01-22 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:27:17] Production.INFO: count ==1367 [2025-01-22 22:27:17] Production.ERROR: pbx CDR StartTime 2025-01-22 19:27:04 - End Time 2025-01-22 22:27:04 [2025-01-22 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308037', 'tblTempUsageDetail_20' ) start [2025-01-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308037', 'tblTempUsageDetail_20' ) end [2025-01-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308037', 'tblTempVendorCDR_20' ) start [2025-01-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308037', 'tblTempVendorCDR_20' ) end [2025-01-22 22:27:17] Production.INFO: ProcessCDR(1,14308037,1,1,2) [2025-01-22 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308037', 'tblTempUsageDetail_20' ) start [2025-01-22 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308037', 'tblTempUsageDetail_20' ) end [2025-01-22 22:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:27:20] Production.INFO: ==16402== Releasing lock... [2025-01-22 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:27:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:28:06 [end_date_ymd] => 2025-01-22 22:28:06 [RateCDR] => 1 ) [2025-01-22 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:28:06' and `end` < '2025-01-22 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:28:20] Production.INFO: count ==1365 [2025-01-22 22:28:20] Production.ERROR: pbx CDR StartTime 2025-01-22 19:28:06 - End Time 2025-01-22 22:28:06 [2025-01-22 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308042', 'tblTempUsageDetail_20' ) start [2025-01-22 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308042', 'tblTempUsageDetail_20' ) end [2025-01-22 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308042', 'tblTempVendorCDR_20' ) start [2025-01-22 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308042', 'tblTempVendorCDR_20' ) end [2025-01-22 22:28:20] Production.INFO: ProcessCDR(1,14308042,1,1,2) [2025-01-22 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308042', 'tblTempUsageDetail_20' ) start [2025-01-22 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308042', 'tblTempUsageDetail_20' ) end [2025-01-22 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:28:23] Production.INFO: ==16475== Releasing lock... [2025-01-22 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:28:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:29:05 [end_date_ymd] => 2025-01-22 22:29:05 [RateCDR] => 1 ) [2025-01-22 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:29:05' and `end` < '2025-01-22 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:29:18] Production.INFO: count ==1365 [2025-01-22 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:29:05 - End Time 2025-01-22 22:29:05 [2025-01-22 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308047', 'tblTempUsageDetail_20' ) start [2025-01-22 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308047', 'tblTempUsageDetail_20' ) end [2025-01-22 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308047', 'tblTempVendorCDR_20' ) start [2025-01-22 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308047', 'tblTempVendorCDR_20' ) end [2025-01-22 22:29:18] Production.INFO: ProcessCDR(1,14308047,1,1,2) [2025-01-22 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308047', 'tblTempUsageDetail_20' ) start [2025-01-22 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308047', 'tblTempUsageDetail_20' ) end [2025-01-22 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:29:23] Production.INFO: ==16545== Releasing lock... [2025-01-22 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:29:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:30:05 [end_date_ymd] => 2025-01-22 22:30:05 [RateCDR] => 1 ) [2025-01-22 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:30:05' and `end` < '2025-01-22 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:30:19] Production.INFO: count ==1363 [2025-01-22 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:30:05 - End Time 2025-01-22 22:30:05 [2025-01-22 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308052', 'tblTempUsageDetail_20' ) start [2025-01-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308052', 'tblTempUsageDetail_20' ) end [2025-01-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308052', 'tblTempVendorCDR_20' ) start [2025-01-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308052', 'tblTempVendorCDR_20' ) end [2025-01-22 22:30:19] Production.INFO: ProcessCDR(1,14308052,1,1,2) [2025-01-22 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308052', 'tblTempUsageDetail_20' ) start [2025-01-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308052', 'tblTempUsageDetail_20' ) end [2025-01-22 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:30:22] Production.INFO: ==16619== Releasing lock... [2025-01-22 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:31:05 [end_date_ymd] => 2025-01-22 22:31:05 [RateCDR] => 1 ) [2025-01-22 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:31:05' and `end` < '2025-01-22 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:31:17] Production.INFO: count ==1325 [2025-01-22 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:31:05 - End Time 2025-01-22 22:31:05 [2025-01-22 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308058', 'tblTempUsageDetail_20' ) start [2025-01-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308058', 'tblTempUsageDetail_20' ) end [2025-01-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308058', 'tblTempVendorCDR_20' ) start [2025-01-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308058', 'tblTempVendorCDR_20' ) end [2025-01-22 22:31:18] Production.INFO: ProcessCDR(1,14308058,1,1,2) [2025-01-22 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308058', 'tblTempUsageDetail_20' ) start [2025-01-22 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308058', 'tblTempUsageDetail_20' ) end [2025-01-22 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:31:21] Production.INFO: ==16695== Releasing lock... [2025-01-22 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-22 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:32:06 [end_date_ymd] => 2025-01-22 22:32:06 [RateCDR] => 1 ) [2025-01-22 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:32:06' and `end` < '2025-01-22 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:32:18] Production.INFO: count ==1322 [2025-01-22 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:32:06 - End Time 2025-01-22 22:32:06 [2025-01-22 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308063', 'tblTempUsageDetail_20' ) start [2025-01-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308063', 'tblTempUsageDetail_20' ) end [2025-01-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308063', 'tblTempVendorCDR_20' ) start [2025-01-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308063', 'tblTempVendorCDR_20' ) end [2025-01-22 22:32:19] Production.INFO: ProcessCDR(1,14308063,1,1,2) [2025-01-22 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308063', 'tblTempUsageDetail_20' ) start [2025-01-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308063', 'tblTempUsageDetail_20' ) end [2025-01-22 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:32:22] Production.INFO: ==16766== Releasing lock... [2025-01-22 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:32:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:33:05 [end_date_ymd] => 2025-01-22 22:33:05 [RateCDR] => 1 ) [2025-01-22 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:33:05' and `end` < '2025-01-22 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:33:19] Production.INFO: count ==1324 [2025-01-22 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:33:05 - End Time 2025-01-22 22:33:05 [2025-01-22 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308068', 'tblTempUsageDetail_20' ) start [2025-01-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308068', 'tblTempUsageDetail_20' ) end [2025-01-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308068', 'tblTempVendorCDR_20' ) start [2025-01-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308068', 'tblTempVendorCDR_20' ) end [2025-01-22 22:33:19] Production.INFO: ProcessCDR(1,14308068,1,1,2) [2025-01-22 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308068', 'tblTempUsageDetail_20' ) start [2025-01-22 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308068', 'tblTempUsageDetail_20' ) end [2025-01-22 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:33:22] Production.INFO: ==16837== Releasing lock... [2025-01-22 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-22 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:34:06 [end_date_ymd] => 2025-01-22 22:34:06 [RateCDR] => 1 ) [2025-01-22 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:34:06' and `end` < '2025-01-22 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:34:19] Production.INFO: count ==1322 [2025-01-22 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:34:06 - End Time 2025-01-22 22:34:06 [2025-01-22 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308073', 'tblTempUsageDetail_20' ) start [2025-01-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308073', 'tblTempUsageDetail_20' ) end [2025-01-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308073', 'tblTempVendorCDR_20' ) start [2025-01-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308073', 'tblTempVendorCDR_20' ) end [2025-01-22 22:34:19] Production.INFO: ProcessCDR(1,14308073,1,1,2) [2025-01-22 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308073', 'tblTempUsageDetail_20' ) start [2025-01-22 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308073', 'tblTempUsageDetail_20' ) end [2025-01-22 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:34:22] Production.INFO: ==16907== Releasing lock... [2025-01-22 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:34:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-22 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:35:05 [end_date_ymd] => 2025-01-22 22:35:05 [RateCDR] => 1 ) [2025-01-22 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:35:05' and `end` < '2025-01-22 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:35:18] Production.INFO: count ==1313 [2025-01-22 22:35:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:35:05 - End Time 2025-01-22 22:35:05 [2025-01-22 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308078', 'tblTempUsageDetail_20' ) start [2025-01-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308078', 'tblTempUsageDetail_20' ) end [2025-01-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308078', 'tblTempVendorCDR_20' ) start [2025-01-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308078', 'tblTempVendorCDR_20' ) end [2025-01-22 22:35:19] Production.INFO: ProcessCDR(1,14308078,1,1,2) [2025-01-22 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308078', 'tblTempUsageDetail_20' ) start [2025-01-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308078', 'tblTempUsageDetail_20' ) end [2025-01-22 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:35:22] Production.INFO: ==16977== Releasing lock... [2025-01-22 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:35:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-22 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:36:06 [end_date_ymd] => 2025-01-22 22:36:06 [RateCDR] => 1 ) [2025-01-22 22:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:36:06' and `end` < '2025-01-22 22:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:36:18] Production.INFO: count ==1308 [2025-01-22 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:36:06 - End Time 2025-01-22 22:36:06 [2025-01-22 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308083', 'tblTempUsageDetail_20' ) start [2025-01-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308083', 'tblTempUsageDetail_20' ) end [2025-01-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308083', 'tblTempVendorCDR_20' ) start [2025-01-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308083', 'tblTempVendorCDR_20' ) end [2025-01-22 22:36:19] Production.INFO: ProcessCDR(1,14308083,1,1,2) [2025-01-22 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308083', 'tblTempUsageDetail_20' ) start [2025-01-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308083', 'tblTempUsageDetail_20' ) end [2025-01-22 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:36:22] Production.INFO: ==17050== Releasing lock... [2025-01-22 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:36:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-22 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:37:05 [end_date_ymd] => 2025-01-22 22:37:05 [RateCDR] => 1 ) [2025-01-22 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:37:05' and `end` < '2025-01-22 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:37:17] Production.INFO: count ==1304 [2025-01-22 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:37:05 - End Time 2025-01-22 22:37:05 [2025-01-22 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308088', 'tblTempUsageDetail_20' ) start [2025-01-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308088', 'tblTempUsageDetail_20' ) end [2025-01-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308088', 'tblTempVendorCDR_20' ) start [2025-01-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308088', 'tblTempVendorCDR_20' ) end [2025-01-22 22:37:18] Production.INFO: ProcessCDR(1,14308088,1,1,2) [2025-01-22 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308088', 'tblTempUsageDetail_20' ) start [2025-01-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308088', 'tblTempUsageDetail_20' ) end [2025-01-22 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:37:21] Production.INFO: ==17158== Releasing lock... [2025-01-22 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:38:05 [end_date_ymd] => 2025-01-22 22:38:05 [RateCDR] => 1 ) [2025-01-22 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:38:05' and `end` < '2025-01-22 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:38:18] Production.INFO: count ==1303 [2025-01-22 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:38:05 - End Time 2025-01-22 22:38:05 [2025-01-22 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308093', 'tblTempUsageDetail_20' ) start [2025-01-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308093', 'tblTempUsageDetail_20' ) end [2025-01-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308093', 'tblTempVendorCDR_20' ) start [2025-01-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308093', 'tblTempVendorCDR_20' ) end [2025-01-22 22:38:19] Production.INFO: ProcessCDR(1,14308093,1,1,2) [2025-01-22 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308093', 'tblTempUsageDetail_20' ) start [2025-01-22 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308093', 'tblTempUsageDetail_20' ) end [2025-01-22 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:38:23] Production.INFO: ==17233== Releasing lock... [2025-01-22 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:39:05 [end_date_ymd] => 2025-01-22 22:39:05 [RateCDR] => 1 ) [2025-01-22 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:39:05' and `end` < '2025-01-22 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:39:18] Production.INFO: count ==1303 [2025-01-22 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:39:05 - End Time 2025-01-22 22:39:05 [2025-01-22 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308098', 'tblTempUsageDetail_20' ) start [2025-01-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308098', 'tblTempUsageDetail_20' ) end [2025-01-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308098', 'tblTempVendorCDR_20' ) start [2025-01-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308098', 'tblTempVendorCDR_20' ) end [2025-01-22 22:39:18] Production.INFO: ProcessCDR(1,14308098,1,1,2) [2025-01-22 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308098', 'tblTempUsageDetail_20' ) start [2025-01-22 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308098', 'tblTempUsageDetail_20' ) end [2025-01-22 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:39:23] Production.INFO: ==17306== Releasing lock... [2025-01-22 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:39:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:40:06 [end_date_ymd] => 2025-01-22 22:40:06 [RateCDR] => 1 ) [2025-01-22 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:40:06' and `end` < '2025-01-22 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:40:19] Production.INFO: count ==1288 [2025-01-22 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:40:06 - End Time 2025-01-22 22:40:06 [2025-01-22 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308104', 'tblTempUsageDetail_20' ) start [2025-01-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308104', 'tblTempUsageDetail_20' ) end [2025-01-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308104', 'tblTempVendorCDR_20' ) start [2025-01-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308104', 'tblTempVendorCDR_20' ) end [2025-01-22 22:40:19] Production.INFO: ProcessCDR(1,14308104,1,1,2) [2025-01-22 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308104', 'tblTempUsageDetail_20' ) start [2025-01-22 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308104', 'tblTempUsageDetail_20' ) end [2025-01-22 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:40:23] Production.INFO: ==17380== Releasing lock... [2025-01-22 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-22 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:41:05 [end_date_ymd] => 2025-01-22 22:41:05 [RateCDR] => 1 ) [2025-01-22 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:41:05' and `end` < '2025-01-22 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:41:17] Production.INFO: count ==1249 [2025-01-22 22:41:17] Production.ERROR: pbx CDR StartTime 2025-01-22 19:41:05 - End Time 2025-01-22 22:41:05 [2025-01-22 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308109', 'tblTempUsageDetail_20' ) start [2025-01-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308109', 'tblTempUsageDetail_20' ) end [2025-01-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308109', 'tblTempVendorCDR_20' ) start [2025-01-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308109', 'tblTempVendorCDR_20' ) end [2025-01-22 22:41:17] Production.INFO: ProcessCDR(1,14308109,1,1,2) [2025-01-22 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308109', 'tblTempUsageDetail_20' ) start [2025-01-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308109', 'tblTempUsageDetail_20' ) end [2025-01-22 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:41:20] Production.INFO: ==17452== Releasing lock... [2025-01-22 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:41:20] Production.INFO: 37 MB #Memory Used# [2025-01-22 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:42:05 [end_date_ymd] => 2025-01-22 22:42:05 [RateCDR] => 1 ) [2025-01-22 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:42:05' and `end` < '2025-01-22 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:42:18] Production.INFO: count ==1245 [2025-01-22 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:42:05 - End Time 2025-01-22 22:42:05 [2025-01-22 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308114', 'tblTempUsageDetail_20' ) start [2025-01-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308114', 'tblTempUsageDetail_20' ) end [2025-01-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308114', 'tblTempVendorCDR_20' ) start [2025-01-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308114', 'tblTempVendorCDR_20' ) end [2025-01-22 22:42:18] Production.INFO: ProcessCDR(1,14308114,1,1,2) [2025-01-22 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308114', 'tblTempUsageDetail_20' ) start [2025-01-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308114', 'tblTempUsageDetail_20' ) end [2025-01-22 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:42:21] Production.INFO: ==17523== Releasing lock... [2025-01-22 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:42:21] Production.INFO: 37 MB #Memory Used# [2025-01-22 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:43:05 [end_date_ymd] => 2025-01-22 22:43:05 [RateCDR] => 1 ) [2025-01-22 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:43:05' and `end` < '2025-01-22 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:43:18] Production.INFO: count ==1241 [2025-01-22 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:43:05 - End Time 2025-01-22 22:43:05 [2025-01-22 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308119', 'tblTempUsageDetail_20' ) start [2025-01-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308119', 'tblTempUsageDetail_20' ) end [2025-01-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308119', 'tblTempVendorCDR_20' ) start [2025-01-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308119', 'tblTempVendorCDR_20' ) end [2025-01-22 22:43:18] Production.INFO: ProcessCDR(1,14308119,1,1,2) [2025-01-22 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308119', 'tblTempUsageDetail_20' ) start [2025-01-22 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308119', 'tblTempUsageDetail_20' ) end [2025-01-22 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:43:21] Production.INFO: ==17592== Releasing lock... [2025-01-22 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:43:21] Production.INFO: 37 MB #Memory Used# [2025-01-22 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:44:05 [end_date_ymd] => 2025-01-22 22:44:05 [RateCDR] => 1 ) [2025-01-22 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:44:05' and `end` < '2025-01-22 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:44:19] Production.INFO: count ==1241 [2025-01-22 22:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:44:05 - End Time 2025-01-22 22:44:05 [2025-01-22 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308124', 'tblTempUsageDetail_20' ) start [2025-01-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308124', 'tblTempUsageDetail_20' ) end [2025-01-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308124', 'tblTempVendorCDR_20' ) start [2025-01-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308124', 'tblTempVendorCDR_20' ) end [2025-01-22 22:44:19] Production.INFO: ProcessCDR(1,14308124,1,1,2) [2025-01-22 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308124', 'tblTempUsageDetail_20' ) start [2025-01-22 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308124', 'tblTempUsageDetail_20' ) end [2025-01-22 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:44:24] Production.INFO: ==17663== Releasing lock... [2025-01-22 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:44:24] Production.INFO: 37 MB #Memory Used# [2025-01-22 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:45:05 [end_date_ymd] => 2025-01-22 22:45:05 [RateCDR] => 1 ) [2025-01-22 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:45:05' and `end` < '2025-01-22 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:45:18] Production.INFO: count ==1235 [2025-01-22 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:45:05 - End Time 2025-01-22 22:45:05 [2025-01-22 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308129', 'tblTempUsageDetail_20' ) start [2025-01-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308129', 'tblTempUsageDetail_20' ) end [2025-01-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308129', 'tblTempVendorCDR_20' ) start [2025-01-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308129', 'tblTempVendorCDR_20' ) end [2025-01-22 22:45:18] Production.INFO: ProcessCDR(1,14308129,1,1,2) [2025-01-22 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308129', 'tblTempUsageDetail_20' ) start [2025-01-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308129', 'tblTempUsageDetail_20' ) end [2025-01-22 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:45:21] Production.INFO: ==17736== Releasing lock... [2025-01-22 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:46:06 [end_date_ymd] => 2025-01-22 22:46:06 [RateCDR] => 1 ) [2025-01-22 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:46:06' and `end` < '2025-01-22 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:46:19] Production.INFO: count ==1233 [2025-01-22 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:46:06 - End Time 2025-01-22 22:46:06 [2025-01-22 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308134', 'tblTempUsageDetail_20' ) start [2025-01-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308134', 'tblTempUsageDetail_20' ) end [2025-01-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308134', 'tblTempVendorCDR_20' ) start [2025-01-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308134', 'tblTempVendorCDR_20' ) end [2025-01-22 22:46:19] Production.INFO: ProcessCDR(1,14308134,1,1,2) [2025-01-22 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308134', 'tblTempUsageDetail_20' ) start [2025-01-22 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308134', 'tblTempUsageDetail_20' ) end [2025-01-22 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:46:22] Production.INFO: ==17806== Releasing lock... [2025-01-22 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:47:05 [end_date_ymd] => 2025-01-22 22:47:05 [RateCDR] => 1 ) [2025-01-22 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:47:05' and `end` < '2025-01-22 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:47:18] Production.INFO: count ==1229 [2025-01-22 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:47:05 - End Time 2025-01-22 22:47:05 [2025-01-22 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308139', 'tblTempUsageDetail_20' ) start [2025-01-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308139', 'tblTempUsageDetail_20' ) end [2025-01-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308139', 'tblTempVendorCDR_20' ) start [2025-01-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308139', 'tblTempVendorCDR_20' ) end [2025-01-22 22:47:18] Production.INFO: ProcessCDR(1,14308139,1,1,2) [2025-01-22 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308139', 'tblTempUsageDetail_20' ) start [2025-01-22 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308139', 'tblTempUsageDetail_20' ) end [2025-01-22 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:47:21] Production.INFO: ==17876== Releasing lock... [2025-01-22 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:48:05 [end_date_ymd] => 2025-01-22 22:48:05 [RateCDR] => 1 ) [2025-01-22 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:48:05' and `end` < '2025-01-22 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:48:18] Production.INFO: count ==1224 [2025-01-22 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:48:05 - End Time 2025-01-22 22:48:05 [2025-01-22 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308142', 'tblTempUsageDetail_20' ) start [2025-01-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308142', 'tblTempUsageDetail_20' ) end [2025-01-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308142', 'tblTempVendorCDR_20' ) start [2025-01-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308142', 'tblTempVendorCDR_20' ) end [2025-01-22 22:48:18] Production.INFO: ProcessCDR(1,14308142,1,1,2) [2025-01-22 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308142', 'tblTempUsageDetail_20' ) start [2025-01-22 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308142', 'tblTempUsageDetail_20' ) end [2025-01-22 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:48:21] Production.INFO: ==17950== Releasing lock... [2025-01-22 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:49:05 [end_date_ymd] => 2025-01-22 22:49:05 [RateCDR] => 1 ) [2025-01-22 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:49:05' and `end` < '2025-01-22 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:49:17] Production.INFO: count ==1219 [2025-01-22 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-22 19:49:05 - End Time 2025-01-22 22:49:05 [2025-01-22 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308149', 'tblTempUsageDetail_20' ) start [2025-01-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308149', 'tblTempUsageDetail_20' ) end [2025-01-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308149', 'tblTempVendorCDR_20' ) start [2025-01-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308149', 'tblTempVendorCDR_20' ) end [2025-01-22 22:49:17] Production.INFO: ProcessCDR(1,14308149,1,1,2) [2025-01-22 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308149', 'tblTempUsageDetail_20' ) start [2025-01-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308149', 'tblTempUsageDetail_20' ) end [2025-01-22 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:49:21] Production.INFO: ==18020== Releasing lock... [2025-01-22 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:50:06 [end_date_ymd] => 2025-01-22 22:50:06 [RateCDR] => 1 ) [2025-01-22 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:50:06' and `end` < '2025-01-22 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:50:19] Production.INFO: count ==1214 [2025-01-22 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:50:06 - End Time 2025-01-22 22:50:06 [2025-01-22 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308154', 'tblTempUsageDetail_20' ) start [2025-01-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308154', 'tblTempUsageDetail_20' ) end [2025-01-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308154', 'tblTempVendorCDR_20' ) start [2025-01-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308154', 'tblTempVendorCDR_20' ) end [2025-01-22 22:50:19] Production.INFO: ProcessCDR(1,14308154,1,1,2) [2025-01-22 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308154', 'tblTempUsageDetail_20' ) start [2025-01-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308154', 'tblTempUsageDetail_20' ) end [2025-01-22 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:50:22] Production.INFO: ==18096== Releasing lock... [2025-01-22 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-22 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:51:05 [end_date_ymd] => 2025-01-22 22:51:05 [RateCDR] => 1 ) [2025-01-22 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:51:05' and `end` < '2025-01-22 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:51:18] Production.INFO: count ==1159 [2025-01-22 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:51:05 - End Time 2025-01-22 22:51:05 [2025-01-22 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308160', 'tblTempUsageDetail_20' ) start [2025-01-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308160', 'tblTempUsageDetail_20' ) end [2025-01-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308160', 'tblTempVendorCDR_20' ) start [2025-01-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308160', 'tblTempVendorCDR_20' ) end [2025-01-22 22:51:18] Production.INFO: ProcessCDR(1,14308160,1,1,2) [2025-01-22 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308160', 'tblTempUsageDetail_20' ) start [2025-01-22 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308160', 'tblTempUsageDetail_20' ) end [2025-01-22 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:51:23] Production.INFO: ==18167== Releasing lock... [2025-01-22 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:52:05 [end_date_ymd] => 2025-01-22 22:52:05 [RateCDR] => 1 ) [2025-01-22 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:52:05' and `end` < '2025-01-22 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:52:18] Production.INFO: count ==1153 [2025-01-22 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:52:05 - End Time 2025-01-22 22:52:05 [2025-01-22 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308165', 'tblTempUsageDetail_20' ) start [2025-01-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308165', 'tblTempUsageDetail_20' ) end [2025-01-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308165', 'tblTempVendorCDR_20' ) start [2025-01-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308165', 'tblTempVendorCDR_20' ) end [2025-01-22 22:52:18] Production.INFO: ProcessCDR(1,14308165,1,1,2) [2025-01-22 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308165', 'tblTempUsageDetail_20' ) start [2025-01-22 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308165', 'tblTempUsageDetail_20' ) end [2025-01-22 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:52:22] Production.INFO: ==18284== Releasing lock... [2025-01-22 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:52:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:53:05 [end_date_ymd] => 2025-01-22 22:53:05 [RateCDR] => 1 ) [2025-01-22 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:53:05' and `end` < '2025-01-22 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:53:19] Production.INFO: count ==1148 [2025-01-22 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:53:05 - End Time 2025-01-22 22:53:05 [2025-01-22 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308170', 'tblTempUsageDetail_20' ) start [2025-01-22 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308170', 'tblTempUsageDetail_20' ) end [2025-01-22 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308170', 'tblTempVendorCDR_20' ) start [2025-01-22 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308170', 'tblTempVendorCDR_20' ) end [2025-01-22 22:53:19] Production.INFO: ProcessCDR(1,14308170,1,1,2) [2025-01-22 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308170', 'tblTempUsageDetail_20' ) start [2025-01-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308170', 'tblTempUsageDetail_20' ) end [2025-01-22 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:53:22] Production.INFO: ==18355== Releasing lock... [2025-01-22 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:54:06 [end_date_ymd] => 2025-01-22 22:54:06 [RateCDR] => 1 ) [2025-01-22 22:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:54:06' and `end` < '2025-01-22 22:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:54:18] Production.INFO: count ==1145 [2025-01-22 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:54:06 - End Time 2025-01-22 22:54:06 [2025-01-22 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308175', 'tblTempUsageDetail_20' ) start [2025-01-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308175', 'tblTempUsageDetail_20' ) end [2025-01-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308175', 'tblTempVendorCDR_20' ) start [2025-01-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308175', 'tblTempVendorCDR_20' ) end [2025-01-22 22:54:18] Production.INFO: ProcessCDR(1,14308175,1,1,2) [2025-01-22 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308175', 'tblTempUsageDetail_20' ) start [2025-01-22 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308175', 'tblTempUsageDetail_20' ) end [2025-01-22 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:54:22] Production.INFO: ==18428== Releasing lock... [2025-01-22 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:55:05 [end_date_ymd] => 2025-01-22 22:55:05 [RateCDR] => 1 ) [2025-01-22 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:55:05' and `end` < '2025-01-22 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:55:17] Production.INFO: count ==1146 [2025-01-22 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:55:05 - End Time 2025-01-22 22:55:05 [2025-01-22 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308180', 'tblTempUsageDetail_20' ) start [2025-01-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308180', 'tblTempUsageDetail_20' ) end [2025-01-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308180', 'tblTempVendorCDR_20' ) start [2025-01-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308180', 'tblTempVendorCDR_20' ) end [2025-01-22 22:55:18] Production.INFO: ProcessCDR(1,14308180,1,1,2) [2025-01-22 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308180', 'tblTempUsageDetail_20' ) start [2025-01-22 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308180', 'tblTempUsageDetail_20' ) end [2025-01-22 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:55:21] Production.INFO: ==18502== Releasing lock... [2025-01-22 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:56:06 [end_date_ymd] => 2025-01-22 22:56:06 [RateCDR] => 1 ) [2025-01-22 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:56:06' and `end` < '2025-01-22 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:56:19] Production.INFO: count ==1150 [2025-01-22 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-22 19:56:06 - End Time 2025-01-22 22:56:06 [2025-01-22 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308185', 'tblTempUsageDetail_20' ) start [2025-01-22 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308185', 'tblTempUsageDetail_20' ) end [2025-01-22 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308185', 'tblTempVendorCDR_20' ) start [2025-01-22 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308185', 'tblTempVendorCDR_20' ) end [2025-01-22 22:56:19] Production.INFO: ProcessCDR(1,14308185,1,1,2) [2025-01-22 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308185', 'tblTempUsageDetail_20' ) start [2025-01-22 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308185', 'tblTempUsageDetail_20' ) end [2025-01-22 22:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:56:24] Production.INFO: ==18578== Releasing lock... [2025-01-22 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:56:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:57:06 [end_date_ymd] => 2025-01-22 22:57:06 [RateCDR] => 1 ) [2025-01-22 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:57:06' and `end` < '2025-01-22 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:57:20] Production.INFO: count ==1150 [2025-01-22 22:57:20] Production.ERROR: pbx CDR StartTime 2025-01-22 19:57:06 - End Time 2025-01-22 22:57:06 [2025-01-22 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308190', 'tblTempUsageDetail_20' ) start [2025-01-22 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308190', 'tblTempUsageDetail_20' ) end [2025-01-22 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308190', 'tblTempVendorCDR_20' ) start [2025-01-22 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308190', 'tblTempVendorCDR_20' ) end [2025-01-22 22:57:20] Production.INFO: ProcessCDR(1,14308190,1,1,2) [2025-01-22 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308190', 'tblTempUsageDetail_20' ) start [2025-01-22 22:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308190', 'tblTempUsageDetail_20' ) end [2025-01-22 22:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:57:25] Production.INFO: ==18649== Releasing lock... [2025-01-22 22:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:57:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:58:05 [end_date_ymd] => 2025-01-22 22:58:05 [RateCDR] => 1 ) [2025-01-22 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:58:05' and `end` < '2025-01-22 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:58:18] Production.INFO: count ==1150 [2025-01-22 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:58:05 - End Time 2025-01-22 22:58:05 [2025-01-22 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308195', 'tblTempUsageDetail_20' ) start [2025-01-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308195', 'tblTempUsageDetail_20' ) end [2025-01-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308195', 'tblTempVendorCDR_20' ) start [2025-01-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308195', 'tblTempVendorCDR_20' ) end [2025-01-22 22:58:18] Production.INFO: ProcessCDR(1,14308195,1,1,2) [2025-01-22 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308195', 'tblTempUsageDetail_20' ) start [2025-01-22 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308195', 'tblTempUsageDetail_20' ) end [2025-01-22 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:58:21] Production.INFO: ==18725== Releasing lock... [2025-01-22 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 19:59:05 [end_date_ymd] => 2025-01-22 22:59:05 [RateCDR] => 1 ) [2025-01-22 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 19:59:05' and `end` < '2025-01-22 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 22:59:18] Production.INFO: count ==1151 [2025-01-22 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 19:59:05 - End Time 2025-01-22 22:59:05 [2025-01-22 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308200', 'tblTempUsageDetail_20' ) start [2025-01-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308200', 'tblTempUsageDetail_20' ) end [2025-01-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308200', 'tblTempVendorCDR_20' ) start [2025-01-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308200', 'tblTempVendorCDR_20' ) end [2025-01-22 22:59:18] Production.INFO: ProcessCDR(1,14308200,1,1,2) [2025-01-22 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308200', 'tblTempUsageDetail_20' ) start [2025-01-22 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308200', 'tblTempUsageDetail_20' ) end [2025-01-22 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 22:59:22] Production.INFO: ==18801== Releasing lock... [2025-01-22 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 22:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:00:06 [end_date_ymd] => 2025-01-22 23:00:06 [RateCDR] => 1 ) [2025-01-22 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:00:06' and `end` < '2025-01-22 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:00:20] Production.INFO: count ==1149 [2025-01-22 23:00:20] Production.ERROR: pbx CDR StartTime 2025-01-22 20:00:06 - End Time 2025-01-22 23:00:06 [2025-01-22 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308206', 'tblTempUsageDetail_20' ) start [2025-01-22 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308206', 'tblTempUsageDetail_20' ) end [2025-01-22 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308206', 'tblTempVendorCDR_20' ) start [2025-01-22 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308206', 'tblTempVendorCDR_20' ) end [2025-01-22 23:00:20] Production.INFO: ProcessCDR(1,14308206,1,1,2) [2025-01-22 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308206', 'tblTempUsageDetail_20' ) start [2025-01-22 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308206', 'tblTempUsageDetail_20' ) end [2025-01-22 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:00:23] Production.INFO: ==18877== Releasing lock... [2025-01-22 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:01:05 [end_date_ymd] => 2025-01-22 23:01:05 [RateCDR] => 1 ) [2025-01-22 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:01:05' and `end` < '2025-01-22 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:01:18] Production.INFO: count ==1143 [2025-01-22 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:01:05 - End Time 2025-01-22 23:01:05 [2025-01-22 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308211', 'tblTempUsageDetail_20' ) start [2025-01-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308211', 'tblTempUsageDetail_20' ) end [2025-01-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308211', 'tblTempVendorCDR_20' ) start [2025-01-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308211', 'tblTempVendorCDR_20' ) end [2025-01-22 23:01:18] Production.INFO: ProcessCDR(1,14308211,1,1,2) [2025-01-22 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308211', 'tblTempUsageDetail_20' ) start [2025-01-22 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308211', 'tblTempUsageDetail_20' ) end [2025-01-22 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:01:22] Production.INFO: ==19042== Releasing lock... [2025-01-22 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:02:05 [end_date_ymd] => 2025-01-22 23:02:05 [RateCDR] => 1 ) [2025-01-22 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:02:05' and `end` < '2025-01-22 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:02:18] Production.INFO: count ==1144 [2025-01-22 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:02:05 - End Time 2025-01-22 23:02:05 [2025-01-22 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308216', 'tblTempUsageDetail_20' ) start [2025-01-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308216', 'tblTempUsageDetail_20' ) end [2025-01-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308216', 'tblTempVendorCDR_20' ) start [2025-01-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308216', 'tblTempVendorCDR_20' ) end [2025-01-22 23:02:18] Production.INFO: ProcessCDR(1,14308216,1,1,2) [2025-01-22 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308216', 'tblTempUsageDetail_20' ) start [2025-01-22 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308216', 'tblTempUsageDetail_20' ) end [2025-01-22 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:02:22] Production.INFO: ==19116== Releasing lock... [2025-01-22 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:02:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:03:05 [end_date_ymd] => 2025-01-22 23:03:05 [RateCDR] => 1 ) [2025-01-22 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:03:05' and `end` < '2025-01-22 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:03:18] Production.INFO: count ==1141 [2025-01-22 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:03:05 - End Time 2025-01-22 23:03:05 [2025-01-22 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308221', 'tblTempUsageDetail_20' ) start [2025-01-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308221', 'tblTempUsageDetail_20' ) end [2025-01-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308221', 'tblTempVendorCDR_20' ) start [2025-01-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308221', 'tblTempVendorCDR_20' ) end [2025-01-22 23:03:18] Production.INFO: ProcessCDR(1,14308221,1,1,2) [2025-01-22 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308221', 'tblTempUsageDetail_20' ) start [2025-01-22 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308221', 'tblTempUsageDetail_20' ) end [2025-01-22 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:03:22] Production.INFO: ==19190== Releasing lock... [2025-01-22 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:04:06 [end_date_ymd] => 2025-01-22 23:04:06 [RateCDR] => 1 ) [2025-01-22 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:04:06' and `end` < '2025-01-22 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:04:19] Production.INFO: count ==1141 [2025-01-22 23:04:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:04:06 - End Time 2025-01-22 23:04:06 [2025-01-22 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308226', 'tblTempUsageDetail_20' ) start [2025-01-22 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308226', 'tblTempUsageDetail_20' ) end [2025-01-22 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308226', 'tblTempVendorCDR_20' ) start [2025-01-22 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308226', 'tblTempVendorCDR_20' ) end [2025-01-22 23:04:19] Production.INFO: ProcessCDR(1,14308226,1,1,2) [2025-01-22 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308226', 'tblTempUsageDetail_20' ) start [2025-01-22 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308226', 'tblTempUsageDetail_20' ) end [2025-01-22 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:04:23] Production.INFO: ==19269== Releasing lock... [2025-01-22 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:04:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:05:05 [end_date_ymd] => 2025-01-22 23:05:05 [RateCDR] => 1 ) [2025-01-22 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:05:05' and `end` < '2025-01-22 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:05:17] Production.INFO: count ==1143 [2025-01-22 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-22 20:05:05 - End Time 2025-01-22 23:05:05 [2025-01-22 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308231', 'tblTempUsageDetail_20' ) start [2025-01-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308231', 'tblTempUsageDetail_20' ) end [2025-01-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308231', 'tblTempVendorCDR_20' ) start [2025-01-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308231', 'tblTempVendorCDR_20' ) end [2025-01-22 23:05:17] Production.INFO: ProcessCDR(1,14308231,1,1,2) [2025-01-22 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308231', 'tblTempUsageDetail_20' ) start [2025-01-22 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308231', 'tblTempUsageDetail_20' ) end [2025-01-22 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:05:22] Production.INFO: ==19419== Releasing lock... [2025-01-22 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:06:05 [end_date_ymd] => 2025-01-22 23:06:05 [RateCDR] => 1 ) [2025-01-22 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:06:05' and `end` < '2025-01-22 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:06:18] Production.INFO: count ==1146 [2025-01-22 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:06:05 - End Time 2025-01-22 23:06:05 [2025-01-22 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308236', 'tblTempUsageDetail_20' ) start [2025-01-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308236', 'tblTempUsageDetail_20' ) end [2025-01-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308236', 'tblTempVendorCDR_20' ) start [2025-01-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308236', 'tblTempVendorCDR_20' ) end [2025-01-22 23:06:18] Production.INFO: ProcessCDR(1,14308236,1,1,2) [2025-01-22 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308236', 'tblTempUsageDetail_20' ) start [2025-01-22 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308236', 'tblTempUsageDetail_20' ) end [2025-01-22 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:06:23] Production.INFO: ==19494== Releasing lock... [2025-01-22 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:07:04 [end_date_ymd] => 2025-01-22 23:07:04 [RateCDR] => 1 ) [2025-01-22 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:07:04' and `end` < '2025-01-22 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:07:16] Production.INFO: count ==1145 [2025-01-22 23:07:16] Production.ERROR: pbx CDR StartTime 2025-01-22 20:07:04 - End Time 2025-01-22 23:07:04 [2025-01-22 23:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308241', 'tblTempUsageDetail_20' ) start [2025-01-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308241', 'tblTempUsageDetail_20' ) end [2025-01-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308241', 'tblTempVendorCDR_20' ) start [2025-01-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308241', 'tblTempVendorCDR_20' ) end [2025-01-22 23:07:17] Production.INFO: ProcessCDR(1,14308241,1,1,2) [2025-01-22 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308241', 'tblTempUsageDetail_20' ) start [2025-01-22 23:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308241', 'tblTempUsageDetail_20' ) end [2025-01-22 23:07:19] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:07:19] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:07:19] Production.INFO: ==19570== Releasing lock... [2025-01-22 23:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:07:19] Production.INFO: 36.25 MB #Memory Used# [2025-01-22 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:08:05 [end_date_ymd] => 2025-01-22 23:08:05 [RateCDR] => 1 ) [2025-01-22 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:08:05' and `end` < '2025-01-22 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:08:18] Production.INFO: count ==1138 [2025-01-22 23:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:08:05 - End Time 2025-01-22 23:08:05 [2025-01-22 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308246', 'tblTempUsageDetail_20' ) start [2025-01-22 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308246', 'tblTempUsageDetail_20' ) end [2025-01-22 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308246', 'tblTempVendorCDR_20' ) start [2025-01-22 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308246', 'tblTempVendorCDR_20' ) end [2025-01-22 23:08:19] Production.INFO: ProcessCDR(1,14308246,1,1,2) [2025-01-22 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308246', 'tblTempUsageDetail_20' ) start [2025-01-22 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308246', 'tblTempUsageDetail_20' ) end [2025-01-22 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:08:22] Production.INFO: ==19757== Releasing lock... [2025-01-22 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:08:22] Production.INFO: 36 MB #Memory Used# [2025-01-22 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:09:05 [end_date_ymd] => 2025-01-22 23:09:05 [RateCDR] => 1 ) [2025-01-22 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:09:05' and `end` < '2025-01-22 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:09:18] Production.INFO: count ==1131 [2025-01-22 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:09:05 - End Time 2025-01-22 23:09:05 [2025-01-22 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308251', 'tblTempUsageDetail_20' ) start [2025-01-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308251', 'tblTempUsageDetail_20' ) end [2025-01-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308251', 'tblTempVendorCDR_20' ) start [2025-01-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308251', 'tblTempVendorCDR_20' ) end [2025-01-22 23:09:18] Production.INFO: ProcessCDR(1,14308251,1,1,2) [2025-01-22 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308251', 'tblTempUsageDetail_20' ) start [2025-01-22 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308251', 'tblTempUsageDetail_20' ) end [2025-01-22 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:09:21] Production.INFO: ==19833== Releasing lock... [2025-01-22 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:09:21] Production.INFO: 36 MB #Memory Used# [2025-01-22 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:10:05 [end_date_ymd] => 2025-01-22 23:10:05 [RateCDR] => 1 ) [2025-01-22 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:10:05' and `end` < '2025-01-22 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:10:18] Production.INFO: count ==1130 [2025-01-22 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:10:05 - End Time 2025-01-22 23:10:05 [2025-01-22 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308257', 'tblTempUsageDetail_20' ) start [2025-01-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308257', 'tblTempUsageDetail_20' ) end [2025-01-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308257', 'tblTempVendorCDR_20' ) start [2025-01-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308257', 'tblTempVendorCDR_20' ) end [2025-01-22 23:10:18] Production.INFO: ProcessCDR(1,14308257,1,1,2) [2025-01-22 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308257', 'tblTempUsageDetail_20' ) start [2025-01-22 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308257', 'tblTempUsageDetail_20' ) end [2025-01-22 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:10:21] Production.INFO: ==19911== Releasing lock... [2025-01-22 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:10:21] Production.INFO: 36 MB #Memory Used# [2025-01-22 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:11:05 [end_date_ymd] => 2025-01-22 23:11:05 [RateCDR] => 1 ) [2025-01-22 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:11:05' and `end` < '2025-01-22 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:11:18] Production.INFO: count ==1052 [2025-01-22 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:11:05 - End Time 2025-01-22 23:11:05 [2025-01-22 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308262', 'tblTempUsageDetail_20' ) start [2025-01-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308262', 'tblTempUsageDetail_20' ) end [2025-01-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308262', 'tblTempVendorCDR_20' ) start [2025-01-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308262', 'tblTempVendorCDR_20' ) end [2025-01-22 23:11:18] Production.INFO: ProcessCDR(1,14308262,1,1,2) [2025-01-22 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308262', 'tblTempUsageDetail_20' ) start [2025-01-22 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308262', 'tblTempUsageDetail_20' ) end [2025-01-22 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:11:22] Production.INFO: ==19987== Releasing lock... [2025-01-22 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:12:05 [end_date_ymd] => 2025-01-22 23:12:05 [RateCDR] => 1 ) [2025-01-22 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:12:05' and `end` < '2025-01-22 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:12:18] Production.INFO: count ==1050 [2025-01-22 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:12:05 - End Time 2025-01-22 23:12:05 [2025-01-22 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308263', 'tblTempUsageDetail_20' ) start [2025-01-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308263', 'tblTempUsageDetail_20' ) end [2025-01-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308263', 'tblTempVendorCDR_20' ) start [2025-01-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308263', 'tblTempVendorCDR_20' ) end [2025-01-22 23:12:18] Production.INFO: ProcessCDR(1,14308263,1,1,2) [2025-01-22 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308263', 'tblTempUsageDetail_20' ) start [2025-01-22 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308263', 'tblTempUsageDetail_20' ) end [2025-01-22 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:12:22] Production.INFO: ==20138== Releasing lock... [2025-01-22 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:12:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:13:05 [end_date_ymd] => 2025-01-22 23:13:05 [RateCDR] => 1 ) [2025-01-22 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:13:05' and `end` < '2025-01-22 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:13:18] Production.INFO: count ==1046 [2025-01-22 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:13:05 - End Time 2025-01-22 23:13:05 [2025-01-22 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308272', 'tblTempUsageDetail_20' ) start [2025-01-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308272', 'tblTempUsageDetail_20' ) end [2025-01-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308272', 'tblTempVendorCDR_20' ) start [2025-01-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308272', 'tblTempVendorCDR_20' ) end [2025-01-22 23:13:18] Production.INFO: ProcessCDR(1,14308272,1,1,2) [2025-01-22 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308272', 'tblTempUsageDetail_20' ) start [2025-01-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308272', 'tblTempUsageDetail_20' ) end [2025-01-22 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:13:21] Production.INFO: ==20213== Releasing lock... [2025-01-22 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:13:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:14:05 [end_date_ymd] => 2025-01-22 23:14:05 [RateCDR] => 1 ) [2025-01-22 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:14:05' and `end` < '2025-01-22 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:14:17] Production.INFO: count ==1042 [2025-01-22 23:14:17] Production.ERROR: pbx CDR StartTime 2025-01-22 20:14:05 - End Time 2025-01-22 23:14:05 [2025-01-22 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308277', 'tblTempUsageDetail_20' ) start [2025-01-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308277', 'tblTempUsageDetail_20' ) end [2025-01-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308277', 'tblTempVendorCDR_20' ) start [2025-01-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308277', 'tblTempVendorCDR_20' ) end [2025-01-22 23:14:17] Production.INFO: ProcessCDR(1,14308277,1,1,2) [2025-01-22 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308277', 'tblTempUsageDetail_20' ) start [2025-01-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308277', 'tblTempUsageDetail_20' ) end [2025-01-22 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:14:21] Production.INFO: ==20287== Releasing lock... [2025-01-22 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:14:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:15:05 [end_date_ymd] => 2025-01-22 23:15:05 [RateCDR] => 1 ) [2025-01-22 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:15:05' and `end` < '2025-01-22 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:15:19] Production.INFO: count ==1041 [2025-01-22 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:15:05 - End Time 2025-01-22 23:15:05 [2025-01-22 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308282', 'tblTempUsageDetail_20' ) start [2025-01-22 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308282', 'tblTempUsageDetail_20' ) end [2025-01-22 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308282', 'tblTempVendorCDR_20' ) start [2025-01-22 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308282', 'tblTempVendorCDR_20' ) end [2025-01-22 23:15:19] Production.INFO: ProcessCDR(1,14308282,1,1,2) [2025-01-22 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308282', 'tblTempUsageDetail_20' ) start [2025-01-22 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308282', 'tblTempUsageDetail_20' ) end [2025-01-22 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:15:22] Production.INFO: ==20439== Releasing lock... [2025-01-22 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:15:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:16:05 [end_date_ymd] => 2025-01-22 23:16:05 [RateCDR] => 1 ) [2025-01-22 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:16:05' and `end` < '2025-01-22 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:16:18] Production.INFO: count ==1040 [2025-01-22 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:16:05 - End Time 2025-01-22 23:16:05 [2025-01-22 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308287', 'tblTempUsageDetail_20' ) start [2025-01-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308287', 'tblTempUsageDetail_20' ) end [2025-01-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308287', 'tblTempVendorCDR_20' ) start [2025-01-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308287', 'tblTempVendorCDR_20' ) end [2025-01-22 23:16:18] Production.INFO: ProcessCDR(1,14308287,1,1,2) [2025-01-22 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308287', 'tblTempUsageDetail_20' ) start [2025-01-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308287', 'tblTempUsageDetail_20' ) end [2025-01-22 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:16:21] Production.INFO: ==20513== Releasing lock... [2025-01-22 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:16:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-22 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:17:05 [end_date_ymd] => 2025-01-22 23:17:05 [RateCDR] => 1 ) [2025-01-22 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:17:05' and `end` < '2025-01-22 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:17:19] Production.INFO: count ==1039 [2025-01-22 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:17:05 - End Time 2025-01-22 23:17:05 [2025-01-22 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308292', 'tblTempUsageDetail_20' ) start [2025-01-22 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308292', 'tblTempUsageDetail_20' ) end [2025-01-22 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308292', 'tblTempVendorCDR_20' ) start [2025-01-22 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308292', 'tblTempVendorCDR_20' ) end [2025-01-22 23:17:19] Production.INFO: ProcessCDR(1,14308292,1,1,2) [2025-01-22 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308292', 'tblTempUsageDetail_20' ) start [2025-01-22 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308292', 'tblTempUsageDetail_20' ) end [2025-01-22 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:17:22] Production.INFO: ==20590== Releasing lock... [2025-01-22 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:17:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:18:05 [end_date_ymd] => 2025-01-22 23:18:05 [RateCDR] => 1 ) [2025-01-22 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:18:05' and `end` < '2025-01-22 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:18:18] Production.INFO: count ==1036 [2025-01-22 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:18:05 - End Time 2025-01-22 23:18:05 [2025-01-22 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308297', 'tblTempUsageDetail_20' ) start [2025-01-22 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308297', 'tblTempUsageDetail_20' ) end [2025-01-22 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308297', 'tblTempVendorCDR_20' ) start [2025-01-22 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308297', 'tblTempVendorCDR_20' ) end [2025-01-22 23:18:19] Production.INFO: ProcessCDR(1,14308297,1,1,2) [2025-01-22 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308297', 'tblTempUsageDetail_20' ) start [2025-01-22 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308297', 'tblTempUsageDetail_20' ) end [2025-01-22 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:18:22] Production.INFO: ==20665== Releasing lock... [2025-01-22 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:19:05 [end_date_ymd] => 2025-01-22 23:19:05 [RateCDR] => 1 ) [2025-01-22 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:19:05' and `end` < '2025-01-22 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:19:18] Production.INFO: count ==1035 [2025-01-22 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:19:05 - End Time 2025-01-22 23:19:05 [2025-01-22 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308302', 'tblTempUsageDetail_20' ) start [2025-01-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308302', 'tblTempUsageDetail_20' ) end [2025-01-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308302', 'tblTempVendorCDR_20' ) start [2025-01-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308302', 'tblTempVendorCDR_20' ) end [2025-01-22 23:19:18] Production.INFO: ProcessCDR(1,14308302,1,1,2) [2025-01-22 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308302', 'tblTempUsageDetail_20' ) start [2025-01-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308302', 'tblTempUsageDetail_20' ) end [2025-01-22 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:19:21] Production.INFO: ==20737== Releasing lock... [2025-01-22 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:19:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:20:06 [end_date_ymd] => 2025-01-22 23:20:06 [RateCDR] => 1 ) [2025-01-22 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:20:06' and `end` < '2025-01-22 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:20:19] Production.INFO: count ==1028 [2025-01-22 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:20:06 - End Time 2025-01-22 23:20:06 [2025-01-22 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308308', 'tblTempUsageDetail_20' ) start [2025-01-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308308', 'tblTempUsageDetail_20' ) end [2025-01-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308308', 'tblTempVendorCDR_20' ) start [2025-01-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308308', 'tblTempVendorCDR_20' ) end [2025-01-22 23:20:19] Production.INFO: ProcessCDR(1,14308308,1,1,2) [2025-01-22 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308308', 'tblTempUsageDetail_20' ) start [2025-01-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308308', 'tblTempUsageDetail_20' ) end [2025-01-22 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:20:22] Production.INFO: ==20819== Releasing lock... [2025-01-22 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-22 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:21:06 [end_date_ymd] => 2025-01-22 23:21:06 [RateCDR] => 1 ) [2025-01-22 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:21:06' and `end` < '2025-01-22 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:21:19] Production.INFO: count ==986 [2025-01-22 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:21:06 - End Time 2025-01-22 23:21:06 [2025-01-22 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308313', 'tblTempUsageDetail_20' ) start [2025-01-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308313', 'tblTempUsageDetail_20' ) end [2025-01-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308313', 'tblTempVendorCDR_20' ) start [2025-01-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308313', 'tblTempVendorCDR_20' ) end [2025-01-22 23:21:19] Production.INFO: ProcessCDR(1,14308313,1,1,2) [2025-01-22 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308313', 'tblTempUsageDetail_20' ) start [2025-01-22 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308313', 'tblTempUsageDetail_20' ) end [2025-01-22 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:21:22] Production.INFO: ==20900== Releasing lock... [2025-01-22 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:21:22] Production.INFO: 35 MB #Memory Used# [2025-01-22 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:22:05 [end_date_ymd] => 2025-01-22 23:22:05 [RateCDR] => 1 ) [2025-01-22 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:22:05' and `end` < '2025-01-22 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:22:18] Production.INFO: count ==981 [2025-01-22 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:22:05 - End Time 2025-01-22 23:22:05 [2025-01-22 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308318', 'tblTempUsageDetail_20' ) start [2025-01-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308318', 'tblTempUsageDetail_20' ) end [2025-01-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308318', 'tblTempVendorCDR_20' ) start [2025-01-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308318', 'tblTempVendorCDR_20' ) end [2025-01-22 23:22:18] Production.INFO: ProcessCDR(1,14308318,1,1,2) [2025-01-22 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308318', 'tblTempUsageDetail_20' ) start [2025-01-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308318', 'tblTempUsageDetail_20' ) end [2025-01-22 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:22:21] Production.INFO: ==20974== Releasing lock... [2025-01-22 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:22:21] Production.INFO: 35 MB #Memory Used# [2025-01-22 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:23:05 [end_date_ymd] => 2025-01-22 23:23:05 [RateCDR] => 1 ) [2025-01-22 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:23:05' and `end` < '2025-01-22 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:23:18] Production.INFO: count ==977 [2025-01-22 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:23:05 - End Time 2025-01-22 23:23:05 [2025-01-22 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308323', 'tblTempUsageDetail_20' ) start [2025-01-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308323', 'tblTempUsageDetail_20' ) end [2025-01-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308323', 'tblTempVendorCDR_20' ) start [2025-01-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308323', 'tblTempVendorCDR_20' ) end [2025-01-22 23:23:18] Production.INFO: ProcessCDR(1,14308323,1,1,2) [2025-01-22 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308323', 'tblTempUsageDetail_20' ) start [2025-01-22 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308323', 'tblTempUsageDetail_20' ) end [2025-01-22 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:23:21] Production.INFO: ==21090== Releasing lock... [2025-01-22 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:23:21] Production.INFO: 35 MB #Memory Used# [2025-01-22 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:24:05 [end_date_ymd] => 2025-01-22 23:24:05 [RateCDR] => 1 ) [2025-01-22 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:24:05' and `end` < '2025-01-22 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:24:21] Production.INFO: count ==975 [2025-01-22 23:24:21] Production.ERROR: pbx CDR StartTime 2025-01-22 20:24:05 - End Time 2025-01-22 23:24:05 [2025-01-22 23:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308328', 'tblTempUsageDetail_20' ) start [2025-01-22 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308328', 'tblTempUsageDetail_20' ) end [2025-01-22 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308328', 'tblTempVendorCDR_20' ) start [2025-01-22 23:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308328', 'tblTempVendorCDR_20' ) end [2025-01-22 23:24:21] Production.INFO: ProcessCDR(1,14308328,1,1,2) [2025-01-22 23:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308328', 'tblTempUsageDetail_20' ) start [2025-01-22 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308328', 'tblTempUsageDetail_20' ) end [2025-01-22 23:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:24:24] Production.INFO: ==21167== Releasing lock... [2025-01-22 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:24:24] Production.INFO: 35 MB #Memory Used# [2025-01-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:25:05 [end_date_ymd] => 2025-01-22 23:25:05 [RateCDR] => 1 ) [2025-01-22 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:25:05' and `end` < '2025-01-22 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:25:18] Production.INFO: count ==971 [2025-01-22 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:25:05 - End Time 2025-01-22 23:25:05 [2025-01-22 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308333', 'tblTempUsageDetail_20' ) start [2025-01-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308333', 'tblTempUsageDetail_20' ) end [2025-01-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308333', 'tblTempVendorCDR_20' ) start [2025-01-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308333', 'tblTempVendorCDR_20' ) end [2025-01-22 23:25:18] Production.INFO: ProcessCDR(1,14308333,1,1,2) [2025-01-22 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308333', 'tblTempUsageDetail_20' ) start [2025-01-22 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308333', 'tblTempUsageDetail_20' ) end [2025-01-22 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:25:21] Production.INFO: ==21247== Releasing lock... [2025-01-22 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:25:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:26:05 [end_date_ymd] => 2025-01-22 23:26:05 [RateCDR] => 1 ) [2025-01-22 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:26:05' and `end` < '2025-01-22 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:26:18] Production.INFO: count ==967 [2025-01-22 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:26:05 - End Time 2025-01-22 23:26:05 [2025-01-22 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308338', 'tblTempUsageDetail_20' ) start [2025-01-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308338', 'tblTempUsageDetail_20' ) end [2025-01-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308338', 'tblTempVendorCDR_20' ) start [2025-01-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308338', 'tblTempVendorCDR_20' ) end [2025-01-22 23:26:18] Production.INFO: ProcessCDR(1,14308338,1,1,2) [2025-01-22 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308338', 'tblTempUsageDetail_20' ) start [2025-01-22 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308338', 'tblTempUsageDetail_20' ) end [2025-01-22 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:26:21] Production.INFO: ==21321== Releasing lock... [2025-01-22 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:26:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:27:06 [end_date_ymd] => 2025-01-22 23:27:06 [RateCDR] => 1 ) [2025-01-22 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:27:06' and `end` < '2025-01-22 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:27:19] Production.INFO: count ==968 [2025-01-22 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:27:06 - End Time 2025-01-22 23:27:06 [2025-01-22 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308343', 'tblTempUsageDetail_20' ) start [2025-01-22 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308343', 'tblTempUsageDetail_20' ) end [2025-01-22 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308343', 'tblTempVendorCDR_20' ) start [2025-01-22 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308343', 'tblTempVendorCDR_20' ) end [2025-01-22 23:27:19] Production.INFO: ProcessCDR(1,14308343,1,1,2) [2025-01-22 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308343', 'tblTempUsageDetail_20' ) start [2025-01-22 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308343', 'tblTempUsageDetail_20' ) end [2025-01-22 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:27:22] Production.INFO: ==21395== Releasing lock... [2025-01-22 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:28:05 [end_date_ymd] => 2025-01-22 23:28:05 [RateCDR] => 1 ) [2025-01-22 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:28:05' and `end` < '2025-01-22 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:28:17] Production.INFO: count ==962 [2025-01-22 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-22 20:28:05 - End Time 2025-01-22 23:28:05 [2025-01-22 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308348', 'tblTempUsageDetail_20' ) start [2025-01-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308348', 'tblTempUsageDetail_20' ) end [2025-01-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308348', 'tblTempVendorCDR_20' ) start [2025-01-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308348', 'tblTempVendorCDR_20' ) end [2025-01-22 23:28:18] Production.INFO: ProcessCDR(1,14308348,1,1,2) [2025-01-22 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308348', 'tblTempUsageDetail_20' ) start [2025-01-22 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308348', 'tblTempUsageDetail_20' ) end [2025-01-22 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:28:21] Production.INFO: ==21470== Releasing lock... [2025-01-22 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:29:04 [end_date_ymd] => 2025-01-22 23:29:04 [RateCDR] => 1 ) [2025-01-22 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` >= '2025-01-22 20:29:04' and `end` < '2025-01-22 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 ,'') [2025-01-22 23:29:18] Production.INFO: count ==959 [2025-01-22 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:29:04 - End Time 2025-01-22 23:29:04 [2025-01-22 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308353', 'tblTempUsageDetail_20' ) start [2025-01-22 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308353', 'tblTempUsageDetail_20' ) end [2025-01-22 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308353', 'tblTempVendorCDR_20' ) start [2025-01-22 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308353', 'tblTempVendorCDR_20' ) end [2025-01-22 23:29:18] Production.INFO: ProcessCDR(1,14308353,1,1,2) [2025-01-22 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308353', 'tblTempUsageDetail_20' ) start [2025-01-22 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308353', 'tblTempUsageDetail_20' ) end [2025-01-22 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:29:21] Production.INFO: ==21545== Releasing lock... [2025-01-22 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:30:06 [end_date_ymd] => 2025-01-22 23:30:06 [RateCDR] => 1 ) [2025-01-22 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:30:06' and `end` < '2025-01-22 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:30:19] Production.INFO: count ==957 [2025-01-22 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:30:06 - End Time 2025-01-22 23:30:06 [2025-01-22 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308359', 'tblTempUsageDetail_20' ) start [2025-01-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308359', 'tblTempUsageDetail_20' ) end [2025-01-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308359', 'tblTempVendorCDR_20' ) start [2025-01-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308359', 'tblTempVendorCDR_20' ) end [2025-01-22 23:30:19] Production.INFO: ProcessCDR(1,14308359,1,1,2) [2025-01-22 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308359', 'tblTempUsageDetail_20' ) start [2025-01-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308359', 'tblTempUsageDetail_20' ) end [2025-01-22 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:30:22] Production.INFO: ==21617== Releasing lock... [2025-01-22 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:30:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-22 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:31:05 [end_date_ymd] => 2025-01-22 23:31:05 [RateCDR] => 1 ) [2025-01-22 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:31:05' and `end` < '2025-01-22 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:31:18] Production.INFO: count ==911 [2025-01-22 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:31:05 - End Time 2025-01-22 23:31:05 [2025-01-22 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308364', 'tblTempUsageDetail_20' ) start [2025-01-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308364', 'tblTempUsageDetail_20' ) end [2025-01-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308364', 'tblTempVendorCDR_20' ) start [2025-01-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308364', 'tblTempVendorCDR_20' ) end [2025-01-22 23:31:18] Production.INFO: ProcessCDR(1,14308364,1,1,2) [2025-01-22 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308364', 'tblTempUsageDetail_20' ) start [2025-01-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308364', 'tblTempUsageDetail_20' ) end [2025-01-22 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:31:21] Production.INFO: ==21696== Releasing lock... [2025-01-22 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:31:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:32:05 [end_date_ymd] => 2025-01-22 23:32:05 [RateCDR] => 1 ) [2025-01-22 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:32:05' and `end` < '2025-01-22 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:32:18] Production.INFO: count ==908 [2025-01-22 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:32:05 - End Time 2025-01-22 23:32:05 [2025-01-22 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308369', 'tblTempUsageDetail_20' ) start [2025-01-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308369', 'tblTempUsageDetail_20' ) end [2025-01-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308369', 'tblTempVendorCDR_20' ) start [2025-01-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308369', 'tblTempVendorCDR_20' ) end [2025-01-22 23:32:18] Production.INFO: ProcessCDR(1,14308369,1,1,2) [2025-01-22 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308369', 'tblTempUsageDetail_20' ) start [2025-01-22 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308369', 'tblTempUsageDetail_20' ) end [2025-01-22 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:32:21] Production.INFO: ==21771== Releasing lock... [2025-01-22 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:32:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:33:05 [end_date_ymd] => 2025-01-22 23:33:05 [RateCDR] => 1 ) [2025-01-22 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:33:05' and `end` < '2025-01-22 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:33:19] Production.INFO: count ==908 [2025-01-22 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:33:05 - End Time 2025-01-22 23:33:05 [2025-01-22 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308374', 'tblTempUsageDetail_20' ) start [2025-01-22 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308374', 'tblTempUsageDetail_20' ) end [2025-01-22 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308374', 'tblTempVendorCDR_20' ) start [2025-01-22 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308374', 'tblTempVendorCDR_20' ) end [2025-01-22 23:33:19] Production.INFO: ProcessCDR(1,14308374,1,1,2) [2025-01-22 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308374', 'tblTempUsageDetail_20' ) start [2025-01-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308374', 'tblTempUsageDetail_20' ) end [2025-01-22 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:33:22] Production.INFO: ==21846== Releasing lock... [2025-01-22 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:33:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:34:05 [end_date_ymd] => 2025-01-22 23:34:05 [RateCDR] => 1 ) [2025-01-22 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:34:05' and `end` < '2025-01-22 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:34:18] Production.INFO: count ==910 [2025-01-22 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:34:05 - End Time 2025-01-22 23:34:05 [2025-01-22 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308379', 'tblTempUsageDetail_20' ) start [2025-01-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308379', 'tblTempUsageDetail_20' ) end [2025-01-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308379', 'tblTempVendorCDR_20' ) start [2025-01-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308379', 'tblTempVendorCDR_20' ) end [2025-01-22 23:34:18] Production.INFO: ProcessCDR(1,14308379,1,1,2) [2025-01-22 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308379', 'tblTempUsageDetail_20' ) start [2025-01-22 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308379', 'tblTempUsageDetail_20' ) end [2025-01-22 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:34:21] Production.INFO: ==21920== Releasing lock... [2025-01-22 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:34:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:35:06 [end_date_ymd] => 2025-01-22 23:35:06 [RateCDR] => 1 ) [2025-01-22 23:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:35:06' and `end` < '2025-01-22 23:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:35:18] Production.INFO: count ==909 [2025-01-22 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:35:06 - End Time 2025-01-22 23:35:06 [2025-01-22 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308384', 'tblTempUsageDetail_20' ) start [2025-01-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308384', 'tblTempUsageDetail_20' ) end [2025-01-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308384', 'tblTempVendorCDR_20' ) start [2025-01-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308384', 'tblTempVendorCDR_20' ) end [2025-01-22 23:35:18] Production.INFO: ProcessCDR(1,14308384,1,1,2) [2025-01-22 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308384', 'tblTempUsageDetail_20' ) start [2025-01-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308384', 'tblTempUsageDetail_20' ) end [2025-01-22 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:35:22] Production.INFO: ==21993== Releasing lock... [2025-01-22 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:35:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:36:05 [end_date_ymd] => 2025-01-22 23:36:05 [RateCDR] => 1 ) [2025-01-22 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:36:05' and `end` < '2025-01-22 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:36:19] Production.INFO: count ==907 [2025-01-22 23:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:36:05 - End Time 2025-01-22 23:36:05 [2025-01-22 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308389', 'tblTempUsageDetail_20' ) start [2025-01-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308389', 'tblTempUsageDetail_20' ) end [2025-01-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308389', 'tblTempVendorCDR_20' ) start [2025-01-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308389', 'tblTempVendorCDR_20' ) end [2025-01-22 23:36:19] Production.INFO: ProcessCDR(1,14308389,1,1,2) [2025-01-22 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308389', 'tblTempUsageDetail_20' ) start [2025-01-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308389', 'tblTempUsageDetail_20' ) end [2025-01-22 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:36:22] Production.INFO: ==22062== Releasing lock... [2025-01-22 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:36:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:37:06 [end_date_ymd] => 2025-01-22 23:37:06 [RateCDR] => 1 ) [2025-01-22 23:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:37:06' and `end` < '2025-01-22 23:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:37:18] Production.INFO: count ==907 [2025-01-22 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:37:06 - End Time 2025-01-22 23:37:06 [2025-01-22 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308394', 'tblTempUsageDetail_20' ) start [2025-01-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308394', 'tblTempUsageDetail_20' ) end [2025-01-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308394', 'tblTempVendorCDR_20' ) start [2025-01-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308394', 'tblTempVendorCDR_20' ) end [2025-01-22 23:37:19] Production.INFO: ProcessCDR(1,14308394,1,1,2) [2025-01-22 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308394', 'tblTempUsageDetail_20' ) start [2025-01-22 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308394', 'tblTempUsageDetail_20' ) end [2025-01-22 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:37:22] Production.INFO: ==22133== Releasing lock... [2025-01-22 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:37:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:38:05 [end_date_ymd] => 2025-01-22 23:38:05 [RateCDR] => 1 ) [2025-01-22 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:38:05' and `end` < '2025-01-22 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:38:18] Production.INFO: count ==909 [2025-01-22 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:38:05 - End Time 2025-01-22 23:38:05 [2025-01-22 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308399', 'tblTempUsageDetail_20' ) start [2025-01-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308399', 'tblTempUsageDetail_20' ) end [2025-01-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308399', 'tblTempVendorCDR_20' ) start [2025-01-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308399', 'tblTempVendorCDR_20' ) end [2025-01-22 23:38:18] Production.INFO: ProcessCDR(1,14308399,1,1,2) [2025-01-22 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308399', 'tblTempUsageDetail_20' ) start [2025-01-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308399', 'tblTempUsageDetail_20' ) end [2025-01-22 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:38:22] Production.INFO: ==22205== Releasing lock... [2025-01-22 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:38:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:39:05 [end_date_ymd] => 2025-01-22 23:39:05 [RateCDR] => 1 ) [2025-01-22 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:39:05' and `end` < '2025-01-22 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:39:18] Production.INFO: count ==909 [2025-01-22 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:39:05 - End Time 2025-01-22 23:39:05 [2025-01-22 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308404', 'tblTempUsageDetail_20' ) start [2025-01-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308404', 'tblTempUsageDetail_20' ) end [2025-01-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308404', 'tblTempVendorCDR_20' ) start [2025-01-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308404', 'tblTempVendorCDR_20' ) end [2025-01-22 23:39:18] Production.INFO: ProcessCDR(1,14308404,1,1,2) [2025-01-22 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308404', 'tblTempUsageDetail_20' ) start [2025-01-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308404', 'tblTempUsageDetail_20' ) end [2025-01-22 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:39:21] Production.INFO: ==22336== Releasing lock... [2025-01-22 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:39:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:40:06 [end_date_ymd] => 2025-01-22 23:40:06 [RateCDR] => 1 ) [2025-01-22 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:40:06' and `end` < '2025-01-22 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:40:19] Production.INFO: count ==910 [2025-01-22 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:40:06 - End Time 2025-01-22 23:40:06 [2025-01-22 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308410', 'tblTempUsageDetail_20' ) start [2025-01-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308410', 'tblTempUsageDetail_20' ) end [2025-01-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308410', 'tblTempVendorCDR_20' ) start [2025-01-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308410', 'tblTempVendorCDR_20' ) end [2025-01-22 23:40:19] Production.INFO: ProcessCDR(1,14308410,1,1,2) [2025-01-22 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308410', 'tblTempUsageDetail_20' ) start [2025-01-22 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308410', 'tblTempUsageDetail_20' ) end [2025-01-22 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:40:22] Production.INFO: ==22457== Releasing lock... [2025-01-22 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:40:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:41:04 [end_date_ymd] => 2025-01-22 23:41:04 [RateCDR] => 1 ) [2025-01-22 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:41:04' and `end` < '2025-01-22 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:41:19] Production.INFO: count ==911 [2025-01-22 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:41:04 - End Time 2025-01-22 23:41:04 [2025-01-22 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308415', 'tblTempUsageDetail_20' ) start [2025-01-22 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308415', 'tblTempUsageDetail_20' ) end [2025-01-22 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308415', 'tblTempVendorCDR_20' ) start [2025-01-22 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308415', 'tblTempVendorCDR_20' ) end [2025-01-22 23:41:19] Production.INFO: ProcessCDR(1,14308415,1,1,2) [2025-01-22 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308415', 'tblTempUsageDetail_20' ) start [2025-01-22 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308415', 'tblTempUsageDetail_20' ) end [2025-01-22 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:41:22] Production.INFO: ==22553== Releasing lock... [2025-01-22 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:41:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:42:05 [end_date_ymd] => 2025-01-22 23:42:05 [RateCDR] => 1 ) [2025-01-22 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:42:05' and `end` < '2025-01-22 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:42:19] Production.INFO: count ==907 [2025-01-22 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:42:05 - End Time 2025-01-22 23:42:05 [2025-01-22 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308420', 'tblTempUsageDetail_20' ) start [2025-01-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308420', 'tblTempUsageDetail_20' ) end [2025-01-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308420', 'tblTempVendorCDR_20' ) start [2025-01-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308420', 'tblTempVendorCDR_20' ) end [2025-01-22 23:42:19] Production.INFO: ProcessCDR(1,14308420,1,1,2) [2025-01-22 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308420', 'tblTempUsageDetail_20' ) start [2025-01-22 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308420', 'tblTempUsageDetail_20' ) end [2025-01-22 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:42:22] Production.INFO: ==22623== Releasing lock... [2025-01-22 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:43:05 [end_date_ymd] => 2025-01-22 23:43:05 [RateCDR] => 1 ) [2025-01-22 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:43:05' and `end` < '2025-01-22 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:43:18] Production.INFO: count ==900 [2025-01-22 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:43:05 - End Time 2025-01-22 23:43:05 [2025-01-22 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308425', 'tblTempUsageDetail_20' ) start [2025-01-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308425', 'tblTempUsageDetail_20' ) end [2025-01-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308425', 'tblTempVendorCDR_20' ) start [2025-01-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308425', 'tblTempVendorCDR_20' ) end [2025-01-22 23:43:18] Production.INFO: ProcessCDR(1,14308425,1,1,2) [2025-01-22 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308425', 'tblTempUsageDetail_20' ) start [2025-01-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308425', 'tblTempUsageDetail_20' ) end [2025-01-22 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:43:21] Production.INFO: ==22695== Releasing lock... [2025-01-22 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:43:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:44:05 [end_date_ymd] => 2025-01-22 23:44:05 [RateCDR] => 1 ) [2025-01-22 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:44:05' and `end` < '2025-01-22 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:44:18] Production.INFO: count ==901 [2025-01-22 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:44:05 - End Time 2025-01-22 23:44:05 [2025-01-22 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308430', 'tblTempUsageDetail_20' ) start [2025-01-22 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308430', 'tblTempUsageDetail_20' ) end [2025-01-22 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308430', 'tblTempVendorCDR_20' ) start [2025-01-22 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308430', 'tblTempVendorCDR_20' ) end [2025-01-22 23:44:19] Production.INFO: ProcessCDR(1,14308430,1,1,2) [2025-01-22 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308430', 'tblTempUsageDetail_20' ) start [2025-01-22 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308430', 'tblTempUsageDetail_20' ) end [2025-01-22 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:44:22] Production.INFO: ==22766== Releasing lock... [2025-01-22 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:44:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:45:05 [end_date_ymd] => 2025-01-22 23:45:05 [RateCDR] => 1 ) [2025-01-22 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:45:05' and `end` < '2025-01-22 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:45:18] Production.INFO: count ==907 [2025-01-22 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:45:05 - End Time 2025-01-22 23:45:05 [2025-01-22 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308435', 'tblTempUsageDetail_20' ) start [2025-01-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308435', 'tblTempUsageDetail_20' ) end [2025-01-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308435', 'tblTempVendorCDR_20' ) start [2025-01-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308435', 'tblTempVendorCDR_20' ) end [2025-01-22 23:45:18] Production.INFO: ProcessCDR(1,14308435,1,1,2) [2025-01-22 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308435', 'tblTempUsageDetail_20' ) start [2025-01-22 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308435', 'tblTempUsageDetail_20' ) end [2025-01-22 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:45:23] Production.INFO: ==22836== Releasing lock... [2025-01-22 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:45:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:46:05 [end_date_ymd] => 2025-01-22 23:46:05 [RateCDR] => 1 ) [2025-01-22 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:46:05' and `end` < '2025-01-22 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:46:17] Production.INFO: count ==907 [2025-01-22 23:46:17] Production.ERROR: pbx CDR StartTime 2025-01-22 20:46:05 - End Time 2025-01-22 23:46:05 [2025-01-22 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308440', 'tblTempUsageDetail_20' ) start [2025-01-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308440', 'tblTempUsageDetail_20' ) end [2025-01-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308440', 'tblTempVendorCDR_20' ) start [2025-01-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308440', 'tblTempVendorCDR_20' ) end [2025-01-22 23:46:17] Production.INFO: ProcessCDR(1,14308440,1,1,2) [2025-01-22 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308440', 'tblTempUsageDetail_20' ) start [2025-01-22 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308440', 'tblTempUsageDetail_20' ) end [2025-01-22 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:46:20] Production.INFO: ==22912== Releasing lock... [2025-01-22 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:46:20] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:47:05 [end_date_ymd] => 2025-01-22 23:47:05 [RateCDR] => 1 ) [2025-01-22 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:47:05' and `end` < '2025-01-22 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:47:18] Production.INFO: count ==907 [2025-01-22 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:47:05 - End Time 2025-01-22 23:47:05 [2025-01-22 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308445', 'tblTempUsageDetail_20' ) start [2025-01-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308445', 'tblTempUsageDetail_20' ) end [2025-01-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308445', 'tblTempVendorCDR_20' ) start [2025-01-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308445', 'tblTempVendorCDR_20' ) end [2025-01-22 23:47:18] Production.INFO: ProcessCDR(1,14308445,1,1,2) [2025-01-22 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308445', 'tblTempUsageDetail_20' ) start [2025-01-22 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308445', 'tblTempUsageDetail_20' ) end [2025-01-22 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:47:23] Production.INFO: ==23000== Releasing lock... [2025-01-22 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:47:23] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:48:05 [end_date_ymd] => 2025-01-22 23:48:05 [RateCDR] => 1 ) [2025-01-22 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:48:05' and `end` < '2025-01-22 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:48:19] Production.INFO: count ==905 [2025-01-22 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:48:05 - End Time 2025-01-22 23:48:05 [2025-01-22 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308450', 'tblTempUsageDetail_20' ) start [2025-01-22 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308450', 'tblTempUsageDetail_20' ) end [2025-01-22 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308450', 'tblTempVendorCDR_20' ) start [2025-01-22 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308450', 'tblTempVendorCDR_20' ) end [2025-01-22 23:48:19] Production.INFO: ProcessCDR(1,14308450,1,1,2) [2025-01-22 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308450', 'tblTempUsageDetail_20' ) start [2025-01-22 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308450', 'tblTempUsageDetail_20' ) end [2025-01-22 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:48:22] Production.INFO: ==23087== Releasing lock... [2025-01-22 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:48:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:49:05 [end_date_ymd] => 2025-01-22 23:49:05 [RateCDR] => 1 ) [2025-01-22 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:49:05' and `end` < '2025-01-22 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:49:18] Production.INFO: count ==903 [2025-01-22 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:49:05 - End Time 2025-01-22 23:49:05 [2025-01-22 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308455', 'tblTempUsageDetail_20' ) start [2025-01-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308455', 'tblTempUsageDetail_20' ) end [2025-01-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308455', 'tblTempVendorCDR_20' ) start [2025-01-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308455', 'tblTempVendorCDR_20' ) end [2025-01-22 23:49:18] Production.INFO: ProcessCDR(1,14308455,1,1,2) [2025-01-22 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308455', 'tblTempUsageDetail_20' ) start [2025-01-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308455', 'tblTempUsageDetail_20' ) end [2025-01-22 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:49:21] Production.INFO: ==23166== Releasing lock... [2025-01-22 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:49:21] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:50:05 [end_date_ymd] => 2025-01-22 23:50:05 [RateCDR] => 1 ) [2025-01-22 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:50:05' and `end` < '2025-01-22 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:50:19] Production.INFO: count ==897 [2025-01-22 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:50:05 - End Time 2025-01-22 23:50:05 [2025-01-22 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308460', 'tblTempUsageDetail_20' ) start [2025-01-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308460', 'tblTempUsageDetail_20' ) end [2025-01-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308460', 'tblTempVendorCDR_20' ) start [2025-01-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308460', 'tblTempVendorCDR_20' ) end [2025-01-22 23:50:19] Production.INFO: ProcessCDR(1,14308460,1,1,2) [2025-01-22 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308460', 'tblTempUsageDetail_20' ) start [2025-01-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308460', 'tblTempUsageDetail_20' ) end [2025-01-22 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:50:22] Production.INFO: ==23239== Releasing lock... [2025-01-22 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-22 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:51:05 [end_date_ymd] => 2025-01-22 23:51:05 [RateCDR] => 1 ) [2025-01-22 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:51:05' and `end` < '2025-01-22 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:51:19] Production.INFO: count ==860 [2025-01-22 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:51:05 - End Time 2025-01-22 23:51:05 [2025-01-22 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308466', 'tblTempUsageDetail_20' ) start [2025-01-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308466', 'tblTempUsageDetail_20' ) end [2025-01-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308466', 'tblTempVendorCDR_20' ) start [2025-01-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308466', 'tblTempVendorCDR_20' ) end [2025-01-22 23:51:19] Production.INFO: ProcessCDR(1,14308466,1,1,2) [2025-01-22 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308466', 'tblTempUsageDetail_20' ) start [2025-01-22 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308466', 'tblTempUsageDetail_20' ) end [2025-01-22 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:51:22] Production.INFO: ==23313== Releasing lock... [2025-01-22 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-22 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:52:05 [end_date_ymd] => 2025-01-22 23:52:05 [RateCDR] => 1 ) [2025-01-22 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:52:05' and `end` < '2025-01-22 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:52:18] Production.INFO: count ==850 [2025-01-22 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:52:05 - End Time 2025-01-22 23:52:05 [2025-01-22 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308471', 'tblTempUsageDetail_20' ) start [2025-01-22 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308471', 'tblTempUsageDetail_20' ) end [2025-01-22 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308471', 'tblTempVendorCDR_20' ) start [2025-01-22 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308471', 'tblTempVendorCDR_20' ) end [2025-01-22 23:52:19] Production.INFO: ProcessCDR(1,14308471,1,1,2) [2025-01-22 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308471', 'tblTempUsageDetail_20' ) start [2025-01-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308471', 'tblTempUsageDetail_20' ) end [2025-01-22 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:52:22] Production.INFO: ==23382== Releasing lock... [2025-01-22 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:53:05 [end_date_ymd] => 2025-01-22 23:53:05 [RateCDR] => 1 ) [2025-01-22 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:53:05' and `end` < '2025-01-22 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:53:19] Production.INFO: count ==843 [2025-01-22 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:53:05 - End Time 2025-01-22 23:53:05 [2025-01-22 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308476', 'tblTempUsageDetail_20' ) start [2025-01-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308476', 'tblTempUsageDetail_20' ) end [2025-01-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308476', 'tblTempVendorCDR_20' ) start [2025-01-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308476', 'tblTempVendorCDR_20' ) end [2025-01-22 23:53:19] Production.INFO: ProcessCDR(1,14308476,1,1,2) [2025-01-22 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308476', 'tblTempUsageDetail_20' ) start [2025-01-22 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308476', 'tblTempUsageDetail_20' ) end [2025-01-22 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:53:22] Production.INFO: ==23451== Releasing lock... [2025-01-22 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:54:05 [end_date_ymd] => 2025-01-22 23:54:05 [RateCDR] => 1 ) [2025-01-22 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:54:05' and `end` < '2025-01-22 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:54:18] Production.INFO: count ==845 [2025-01-22 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:54:05 - End Time 2025-01-22 23:54:05 [2025-01-22 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308481', 'tblTempUsageDetail_20' ) start [2025-01-22 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308481', 'tblTempUsageDetail_20' ) end [2025-01-22 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308481', 'tblTempVendorCDR_20' ) start [2025-01-22 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308481', 'tblTempVendorCDR_20' ) end [2025-01-22 23:54:18] Production.INFO: ProcessCDR(1,14308481,1,1,2) [2025-01-22 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308481', 'tblTempUsageDetail_20' ) start [2025-01-22 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308481', 'tblTempUsageDetail_20' ) end [2025-01-22 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:54:23] Production.INFO: ==23566== Releasing lock... [2025-01-22 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:55:05 [end_date_ymd] => 2025-01-22 23:55:05 [RateCDR] => 1 ) [2025-01-22 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:55:05' and `end` < '2025-01-22 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:55:18] Production.INFO: count ==842 [2025-01-22 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:55:05 - End Time 2025-01-22 23:55:05 [2025-01-22 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308486', 'tblTempUsageDetail_20' ) start [2025-01-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308486', 'tblTempUsageDetail_20' ) end [2025-01-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308486', 'tblTempVendorCDR_20' ) start [2025-01-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308486', 'tblTempVendorCDR_20' ) end [2025-01-22 23:55:18] Production.INFO: ProcessCDR(1,14308486,1,1,2) [2025-01-22 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308486', 'tblTempUsageDetail_20' ) start [2025-01-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308486', 'tblTempUsageDetail_20' ) end [2025-01-22 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:55:21] Production.INFO: ==23640== Releasing lock... [2025-01-22 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:56:06 [end_date_ymd] => 2025-01-22 23:56:06 [RateCDR] => 1 ) [2025-01-22 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:56:06' and `end` < '2025-01-22 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:56:19] Production.INFO: count ==842 [2025-01-22 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-22 20:56:06 - End Time 2025-01-22 23:56:06 [2025-01-22 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308491', 'tblTempUsageDetail_20' ) start [2025-01-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308491', 'tblTempUsageDetail_20' ) end [2025-01-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308491', 'tblTempVendorCDR_20' ) start [2025-01-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308491', 'tblTempVendorCDR_20' ) end [2025-01-22 23:56:19] Production.INFO: ProcessCDR(1,14308491,1,1,2) [2025-01-22 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308491', 'tblTempUsageDetail_20' ) start [2025-01-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308491', 'tblTempUsageDetail_20' ) end [2025-01-22 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:56:22] Production.INFO: ==23720== Releasing lock... [2025-01-22 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:57:06 [end_date_ymd] => 2025-01-22 23:57:06 [RateCDR] => 1 ) [2025-01-22 23:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:57:06' and `end` < '2025-01-22 23:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:57:18] Production.INFO: count ==841 [2025-01-22 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:57:06 - End Time 2025-01-22 23:57:06 [2025-01-22 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308496', 'tblTempUsageDetail_20' ) start [2025-01-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308496', 'tblTempUsageDetail_20' ) end [2025-01-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308496', 'tblTempVendorCDR_20' ) start [2025-01-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308496', 'tblTempVendorCDR_20' ) end [2025-01-22 23:57:18] Production.INFO: ProcessCDR(1,14308496,1,1,2) [2025-01-22 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308496', 'tblTempUsageDetail_20' ) start [2025-01-22 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308496', 'tblTempUsageDetail_20' ) end [2025-01-22 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:57:21] Production.INFO: ==23798== Releasing lock... [2025-01-22 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:57:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:58:05 [end_date_ymd] => 2025-01-22 23:58:05 [RateCDR] => 1 ) [2025-01-22 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:58:05' and `end` < '2025-01-22 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:58:17] Production.INFO: count ==840 [2025-01-22 23:58:17] Production.ERROR: pbx CDR StartTime 2025-01-22 20:58:05 - End Time 2025-01-22 23:58:05 [2025-01-22 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308501', 'tblTempUsageDetail_20' ) start [2025-01-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308501', 'tblTempUsageDetail_20' ) end [2025-01-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308501', 'tblTempVendorCDR_20' ) start [2025-01-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308501', 'tblTempVendorCDR_20' ) end [2025-01-22 23:58:17] Production.INFO: ProcessCDR(1,14308501,1,1,2) [2025-01-22 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308501', 'tblTempUsageDetail_20' ) start [2025-01-22 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308501', 'tblTempUsageDetail_20' ) end [2025-01-22 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:58:22] Production.INFO: ==23872== Releasing lock... [2025-01-22 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-22 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 20:59:05 [end_date_ymd] => 2025-01-22 23:59:05 [RateCDR] => 1 ) [2025-01-22 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 20:59:05' and `end` < '2025-01-22 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-22 23:59:18] Production.INFO: count ==838 [2025-01-22 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 20:59:05 - End Time 2025-01-22 23:59:05 [2025-01-22 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308506', 'tblTempUsageDetail_20' ) start [2025-01-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308506', 'tblTempUsageDetail_20' ) end [2025-01-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308506', 'tblTempVendorCDR_20' ) start [2025-01-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308506', 'tblTempVendorCDR_20' ) end [2025-01-22 23:59:19] Production.INFO: ProcessCDR(1,14308506,1,1,2) [2025-01-22 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-22 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308506', 'tblTempUsageDetail_20' ) start [2025-01-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308506', 'tblTempUsageDetail_20' ) end [2025-01-22 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-22 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-22 23:59:22] Production.INFO: ==23950== Releasing lock... [2025-01-22 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-22 23:59:22] Production.INFO: 33.5 MB #Memory Used#